Biểu thị một gói thuê bao thông báo do Tài khoản người bán sở hữu.
Biểu diễn dưới dạng 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.}
Trường
name
string
Chỉ có đầu ra. name của cấu hình thông báo. Được Content API tạo khi tạo một NotificationSubscription mới. account đại diện cho mã người bán của người bán sở hữu cấu hình. Định dạng: accounts/{account}/notificationsubscriptions/{notificationSubscription}
interested_in chỉ có thể là một trong những giá trị sau:
allManagedAccounts
boolean
Nếu giá trị này là true, thì tài khoản yêu cầu sẽ được thông báo về sự kiện đã chỉ định cho tất cả tài khoản được quản lý (có thể là tài khoản phụ hoặc tài khoản được liên kết khác), bao gồm cả tài khoản mới thêm hằng ngày.
targetAccount
string
name của tài khoản mà bạn muốn nhận thông báo. Định dạng: accounts/{account}
NotificationEventType
Biểu thị loại sự kiện mà người bán muốn nhận thông báo.
Enum
NOTIFICATION_EVENT_TYPE_UNSPECIFIED
Loại sự kiện thông báo chưa được chỉ định.
PRODUCT_STATUS_CHANGE
Thông báo về các thay đổi về trạng thái sản phẩm, chẳng hạn như khi sản phẩm bị từ chối.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2024-11-24 UTC."],[[["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"]]