Index
NotificationsApiService
(interface)Attribute
(enum)CreateNotificationSubscriptionRequest
(message)DeleteNotificationSubscriptionRequest
(message)GetNotificationSubscriptionRequest
(message)ListNotificationSubscriptionsRequest
(message)ListNotificationSubscriptionsResponse
(message)NotificationSubscription
(message)NotificationSubscription.NotificationEventType
(enum)ProductChange
(message)ProductStatusChangeMessage
(message)Resource
(enum)UpdateNotificationSubscriptionRequest
(message)
NotificationsApiService
Service to manage notification subscriptions for merchants
CreateNotificationSubscription |
---|
Creates a notification subscription for a business. For standalone or subaccounts accounts, the business can create a subscription for self. For MCAs, the business can create a subscription for all managed accounts or for a specific subaccount. We will allow the following types of notification subscriptions to exist together (per business as a subscriber per event type):
we will not allow (per business as a subscriber per event type):
|
DeleteNotificationSubscription |
---|
Deletes a notification subscription for a merchant.
|
GetNotificationSubscription |
---|
Gets notification subscriptions for an account.
|
ListNotificationSubscriptions |
---|
Gets all the notification subscriptions for a merchant.
|
UpdateNotificationSubscription |
---|
Updates an existing notification subscription for a merchant.
|
Attribute
Enum to specify the attribute in the resource that is being changed to notify the merchant about.
Enums | |
---|---|
ATTRIBUTE_UNSPECIFIED |
Unspecified attribute |
STATUS |
Status of the changed entity |
CreateNotificationSubscriptionRequest
Request message for the CreateNotificationSubscription method.
Fields | |
---|---|
parent |
Required. The merchant account that owns the new notification subscription. Format: |
notification_subscription |
Required. The notification subscription to create. |
DeleteNotificationSubscriptionRequest
Request message for the DeleteNotificationSubscription method.
Fields | |
---|---|
name |
Required. The name of the notification subscription to be deleted. |
GetNotificationSubscriptionRequest
Request message for the GetNotificationSubscription method.
Fields | |
---|---|
name |
Required. The |
ListNotificationSubscriptionsRequest
Request message for the ListNotificationSubscription method.
Fields | |
---|---|
parent |
Required. The merchant account who owns the notification subscriptions. Format: |
page_size |
The maximum number of notification subscriptions to return in a page. The default value for |
page_token |
Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token. |
ListNotificationSubscriptionsResponse
Response message for the ListNotificationSubscription method.
Fields | |
---|---|
notification_subscriptions[] |
The list of notification subscriptions requested by the merchant. |
next_page_token |
A token, which can be sent as |
NotificationSubscription
Represents a notification subscription owned by a Merchant account.
Fields | |
---|---|
name |
Output only. The |
registered_event |
The event that the merchant wants to be notified about. |
call_back_uri |
URL to be used to push the notification to the merchant. |
Union field
|
|
all_managed_accounts |
If this value is true, the requesting account is notified of the specified event for all managed accounts (can be subaccounts or other linked accounts) including newly added accounts on a daily basis. |
target_account |
The |
NotificationEventType
Represents the event type that the merchant is interested in receiving notifications for.
Enums | |
---|---|
NOTIFICATION_EVENT_TYPE_UNSPECIFIED |
Notifications event type is unspecified. |
PRODUCT_STATUS_CHANGE |
Notification of product status changes, for example when product becomes disapproved. |
ProductChange
The change that happened to the product including old value, new value, country code as the region code and reporting context.
Fields | |
---|---|
old_value |
The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : ( |
new_value |
The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : ( |
region_code |
Countries that have the change (if applicable). Represented in the ISO 3166 format. |
reporting_context |
Reporting contexts that have the change (if applicable). Currently this field supports only ( |
ProductStatusChangeMessage
The message that the merchant will receive to notify about product status change event
Fields | |
---|---|
changes[] |
A message to describe the change that happened to the product |
account |
The target account that owns the entity that changed. Format : |
managing_account |
The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : |
resource_type |
The resource that changed, in this case it will always be |
attribute |
The attribute in the resource that changed, in this case it will be always |
resource_id |
The product id. |
resource |
The product name. Format: |
expiration_time |
Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event. |
event_time |
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. |
Resource
Enum to specify the resource that is being changed to notify the merchant about.
Enums | |
---|---|
RESOURCE_UNSPECIFIED |
Unspecified resource |
PRODUCT |
Resource type : product |
UpdateNotificationSubscriptionRequest
Request message for the UpdateNotificationSubscription method.
Fields | |
---|---|
notification_subscription |
Required. The new version of the notification subscription that should be updated. |
update_mask |
List of fields being updated. |