索引
- NotificationsApiService(接口)
- Attribute(枚举)
- CreateNotificationSubscriptionRequest(消息)
- DeleteNotificationSubscriptionRequest(消息)
- GetNotificationSubscriptionRequest(消息)
- ListNotificationSubscriptionsRequest(消息)
- ListNotificationSubscriptionsResponse(消息)
- NotificationSubscription(消息)
- NotificationSubscription.NotificationEventType(枚举)
- ProductChange(消息)
- ProductStatusChangeMessage(消息)
- Resource(枚举)
- UpdateNotificationSubscriptionRequest(消息)
NotificationsApiService
用于为商家管理通知订阅的服务
| CreateNotificationSubscription | 
|---|
| 
 为商家创建通知订阅。对于独立账号或子账号,商家可以自行创建订阅。对于 MCA,企业可以为所有受管账号或特定子账号创建订阅。 我们将允许以下类型的通知订阅共存(每项事件类型对应一个订阅方,每个企业一个订阅方): 
 我们不允许(每个事件类型,每个商家作为订阅者): 
 
 | 
| DeleteNotificationSubscription | 
|---|
| 
 删除商家的通知订阅。 
 | 
| GetNotificationSubscription | 
|---|
| 
 获取账号的通知订阅。 
 | 
| ListNotificationSubscriptions | 
|---|
| 
 获取商家的所有通知订阅。 
 | 
| UpdateNotificationSubscription | 
|---|
| 
 更新商家的现有通知订阅。 
 | 
属性
用于指定要更改的资源中的属性,以便通知商家。
| 枚举 | |
|---|---|
| ATTRIBUTE_UNSPECIFIED | 未指定属性 | 
| STATUS | 更改的实体的状态 | 
CreateNotificationSubscriptionRequest
CreateNotificationSubscription 方法的请求消息。
| 字段 | |
|---|---|
| parent | 
 必需。拥有新通知订阅的商家账号。格式: | 
| notification_ | 必需。要创建的通知订阅。 | 
DeleteNotificationSubscriptionRequest
DeleteNotificationSubscription 方法的请求消息。
| 字段 | |
|---|---|
| name | 
 必需。要删除的通知订阅的名称。 | 
GetNotificationSubscriptionRequest
GetNotificationSubscription 方法的请求消息。
| 字段 | |
|---|---|
| name | 
 必需。通知订阅的  | 
ListNotificationSubscriptionsRequest
ListNotificationSubscription 方法的请求消息。
| 字段 | |
|---|---|
| parent | 
 必需。拥有通知订阅的商家账号。格式: | 
| page_ | 
 在一个页面中返回的通知订阅的数量上限。 | 
| page_ | 
 用于检索后续页面的令牌(如果提供)。所有其他参数都必须与提供页面令牌的原始调用匹配。 | 
ListNotificationSubscriptionsResponse
ListNotificationSubscription 方法的响应消息。
| 字段 | |
|---|---|
| notification_ | 商家请求的通知订阅列表。 | 
| next_ | 
 可作为  | 
NotificationSubscription
表示商家账号拥有的通知订阅。
| 字段 | |
|---|---|
| name | 
 仅限输出。通知配置的  | 
| registered_ | 商家希望接收通知的事件。 | 
| call_ | 
 用于向商家推送通知的网址。 | 
| 联合字段  
 | |
| all_ | 
 如果此值为 true,系统会每天向请求账号发送有关所有受管账号(可以是子账号或其他关联账号,包括新添加的账号)的指定事件通知。 | 
| target_ | 
 您要接收通知的账号的  | 
NotificationEventType
表示商家有兴趣接收通知的事件类型。
| 枚举 | |
|---|---|
| NOTIFICATION_EVENT_TYPE_UNSPECIFIED | 通知事件类型未指定。 | 
| PRODUCT_STATUS_CHANGE | 商品状态变化通知,例如商品被拒登时。 | 
ProductChange
商品发生的更改,包括旧值、新值、国家/地区代码(作为地区代码)和报告上下文。
| 字段 | |
|---|---|
| old_ | 
 更改的资源或属性的旧值。 | 
| new_ | 
 更改的资源或属性的新值。 | 
| region_ | 
 发生变更的国家/地区(如果适用) | 
| reporting_ | 发生更改的报告上下文(如果适用) | 
ProductStatusChangeMessage
商家将收到的商品状态变更事件通知消息
| 字段 | |
|---|---|
| changes[] | 用于说明商品发生的变化的消息 | 
| account | 
 拥有发生更改的实体的目标账号。格式: | 
| managing_ | 
 用于管理商家账号的账号。如果是独立账号,则可以与商家 ID 相同。格式: | 
| resource_ | 发生更改的资源,在本例中始终为  | 
| attribute | 资源中发生更改的属性,在本例中始终为  | 
| resource_ | 
 商品 ID。 | 
| resource | 
 商品名称。格式: | 
| expiration_ | 商品的到期时间。如果为商品删除事件发送通知,系统不会设置此字段。 | 
资源
用于指定要更改的资源以通知商家的枚举。
| 枚举 | |
|---|---|
| RESOURCE_UNSPECIFIED | 未指定资源 | 
| PRODUCT | 资源类型:商品 | 
UpdateNotificationSubscriptionRequest
UpdateNotificationSubscription 方法的请求消息。
| 字段 | |
|---|---|
| notification_ | 必需。应更新的通知订阅的新版本。 | 
| update_ | 要更新的字段的列表。 |