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 商品状态发生变化的通知,例如当商品遭拒批时。

方法

create

为商家创建通知订阅。

delete

删除商家的通知订阅。

get

获取账号的通知订阅。

list

获取商家的所有通知订阅。

patch

更新商家的现有通知订阅。