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

更新商家現有的通知訂閱。