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 ของการกำหนดค่าการแจ้งเตือน สร้างโดย Content API เมื่อสร้าง NotificationSubscription ใหม่ account แสดงรหัสผู้ขายของผู้ขายที่เป็นเจ้าของการกําหนดค่า รูปแบบ: accounts/{account}/notificationsubscriptions/{notificationSubscription}
|
registeredEvent |
enum (NotificationEventType )
เหตุการณ์ที่ผู้ขายต้องการรับการแจ้งเตือน
|
callBackUri |
string
URL ที่จะใช้ในการส่งการแจ้งเตือนไปยังผู้ขาย
|
ฟิลด์สหภาพ interested_in interested_in ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้เท่านั้น
|
allManagedAccounts |
boolean
หากค่านี้เป็น True บัญชีที่ส่งคําขอจะได้รับการแจ้งเตือนเกี่ยวกับเหตุการณ์ที่ระบุสําหรับบัญชีที่จัดการทั้งหมด (อาจเป็นบัญชีย่อยหรือบัญชีที่ลิงก์อื่นๆ) รวมถึงบัญชีที่เพิ่มใหม่ทุกวัน
|
targetAccount |
string
name ของบัญชีที่ต้องการรับการแจ้งเตือน รูปแบบ: accounts/{account}
|
NotificationEventType
แสดงประเภทเหตุการณ์ที่ผู้ขายสนใจรับการแจ้งเตือน
Enum |
NOTIFICATION_EVENT_TYPE_UNSPECIFIED |
ไม่ได้ระบุประเภทเหตุการณ์การแจ้งเตือน |
PRODUCT_STATUS_CHANGE |
การแจ้งเตือนการเปลี่ยนแปลงสถานะผลิตภัณฑ์ เช่น เมื่อผลิตภัณฑ์ไม่ได้รับอนุมัติ |
เมธอด |
|
สร้างการสมัครรับการแจ้งเตือนสําหรับธุรกิจ |
|
ลบการสมัครรับการแจ้งเตือนสำหรับผู้ขาย |
|
รับการสมัครรับการแจ้งเตือนสําหรับบัญชี |
|
รับการสมัครรับการแจ้งเตือนทั้งหมดสำหรับผู้ขาย |
|
อัปเดตการสมัครรับการแจ้งเตือนที่มีอยู่สำหรับผู้ขาย |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-24 UTC
[null,null,["อัปเดตล่าสุด 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"]]