ProductStatusChangeMessage
The message that the merchant will receive to notify about product status change event
JSON representation |
{
"changes": [
{
object (ProductChange )
}
],
"account": string,
"managingAccount": string,
"resourceType": enum (Resource ),
"attribute": enum (Attribute ),
"resourceId": string,
"resource": string,
"expirationTime": string,
"eventTime": string
} |
Fields |
changes[] |
object (ProductChange )
A message to describe the change that happened to the product
|
account |
string
The target account that owns the entity that changed. Format : accounts/{merchantId}
|
managingAccount |
string
The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : accounts/{service_provider_id}
|
resourceType |
enum (Resource )
The resource that changed, in this case it will always be Product .
|
attribute |
enum (Attribute )
The attribute in the resource that changed, in this case it will be always Status .
|
resourceId |
string
The product id.
|
resource |
string
The product name. Format: accounts/{account}/products/{product}
|
expirationTime |
string (Timestamp format)
Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
eventTime |
string (Timestamp format)
The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-12 UTC.
[null,null,["Last updated 2025-03-12 UTC."],[[["This documentation outlines the JSON notification merchants receive for product status change events."],["The notification includes details like the change type, account information, resource type, and a timestamp."],["`ProductChange` object provides details on the specific product change within the notification."],["The `resource`, `resourceId`, and `attribute` fields pinpoint the product and the specific attribute (status) affected."],["While `expirationTime` is included, it's omitted for product deletion events."]]],["The merchant receives a notification about a product status change. This includes an array of `changes` objects detailing the modifications, the `account` and `managingAccount` IDs, and the `resourceType`, which is always \"Product.\" The `attribute` is consistently \"Status.\" The message also provides the `resourceId` (product ID), the product `resource` name, and the `expirationTime`. This notification's core purpose is to inform the merchant about the changes for the specific product.\n"]]