REST Resource: accounts.notificationsubscriptions
资源:NotificationSubscription
JSON 表示法 |
{
"name": string,
"registeredEvent": enum (NotificationEventType ),
"callBackUri": string,
// Union field interested_in can be only one of the following:
"allManagedAccounts": boolean,
"targetAccount": string
// End of list of possible types for union field interested_in .
} |
字段 |
name |
string
仅限输出。通知配置的 name 。在创建新的 NotificationSubscription 时由 Content API 生成。account 代表拥有相应配置的商家的商家 ID。格式:accounts/{account}/notificationsubscriptions/{notificationSubscription}
|
registeredEvent |
enum (NotificationEventType )
商家希望接收通知的事件。
|
callBackUri |
string
用于向商家推送通知的网址。
|
联合字段 interested_in 。 interested_in 只能是下列其中一项:
|
allManagedAccounts |
boolean
如果此值为 true,系统会每天向请求账号发送有关所有受管账号(可以是子账号或其他关联账号,包括新添加的账号)的指定事件通知。
|
targetAccount |
string
您要接收通知的账号的 name 。格式:accounts/{account}
|
NotificationEventType
枚举 |
NOTIFICATION_EVENT_TYPE_UNSPECIFIED |
通知事件类型未指定。 |
PRODUCT_STATUS_CHANGE |
商品状态变化通知,例如商品被拒批时。 |
方法 |
|
为商家创建通知订阅。 |
|
删除商家的通知订阅。 |
|
获取账号的通知订阅。 |
|
获取商家的所有通知订阅。 |
|
更新商家的现有通知订阅。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-24。
[null,null,["最后更新时间 (UTC):2024-11-24。"],[[["NotificationSubscription enables merchants to receive notifications about specific events related to their account."],["Merchants can configure which events trigger notifications, such as product status changes, and provide a callback URL to receive them."],["The API offers methods to create, delete, retrieve, and update notification subscriptions."],["It allows merchants to receive notifications for events occurring on all managed accounts or a specific target account."]]],["Merchants can create `NotificationSubscription` resources to receive updates about specific events. Each subscription includes a `name`, a `registeredEvent` (e.g., `PRODUCT_STATUS_CHANGE`), and a `callBackUri` for notification delivery. Merchants can specify if they want to receive events regarding `allManagedAccounts` or a `targetAccount`. Available methods include `create`, `delete`, `get`, `list`, and `patch` for managing these subscriptions. Notification event type can be `PRODUCT_STATUS_CHANGE` or `NOTIFICATION_EVENT_TYPE_UNSPECIFIED`.\n"]]