Index
NotificationsApiService(interface)CreateNotificationSubscriptionRequest(message)DeleteNotificationSubscriptionRequest(message)GetNotificationSubscriptionRequest(message)ListNotificationSubscriptionsRequest(message)ListNotificationSubscriptionsResponse(message)NotificationSubscription(message)NotificationSubscription.NotificationEventType(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. See Decode notifications for information on how to decode the notification payload and how to interpret its contents. 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.
|
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.
See Decode notifications for information on how to decode the notification payload and how to interpret its contents.
| 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. |
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. |