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_ |
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_ |
The maximum number of notification subscriptions to return in a page. The default value for |
page_ |
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_ |
The list of notification subscriptions requested by the merchant. |
next_ |
A token, which can be sent as |
NotificationSubscription
Represents a notification subscription owned by a Merchant account.
Fields | |
---|---|
name |
Output only. The |
registered_ |
The event that the merchant wants to be notified about. |
call_ |
URL to be used to push the notification to the merchant. |
Union field
|
|
all_ |
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_ |
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_ |
The old value of the changed resource or attribute. |
new_ |
The new value of the changed resource or attribute. |
region_ |
Countries that have the change (if applicable) |
reporting_ |
Reporting contexts that have the change (if applicable) |
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_ |
The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : |
resource_ |
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_ |
The product id. |
resource |
The product name. Format: |
expiration_ |
The product expiration time. This field will not bet set if the notification is sent for a product deletion event. |
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_ |
Required. The new version of the notification subscription that should be updated. |
update_ |
List of fields being updated. |