מייצג מינוי לקבלת התראות שנמצא בבעלות של חשבון מוכר.
ייצוג ב-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 מייצג את מספר חשבון Merchant של המוכר שבבעלותו ההגדרה. פורמט: accounts/{account}/notificationsubscriptions/{notificationSubscription}
הערך של interested_in יכול להיות רק אחת מהאפשרויות הבאות:
allManagedAccounts
boolean
אם הערך הזה הוא True, החשבון המבקש יקבל התראה על האירוע שצוין בכל החשבונות המנוהלים (יכולים להיות אלה חשבונות משנה או חשבונות מקושרים אחרים), כולל חשבונות שנוספו לאחרונה, על בסיס יומי.
targetAccount
string
name של החשבון שעבורו רוצים לקבל התראות. פורמט: accounts/{account}
NotificationEventType
מייצג את סוג האירוע שהמוכר מעוניין לקבל עליו התראות.
טיפוסים בני מנייה (enum)
NOTIFICATION_EVENT_TYPE_UNSPECIFIED
סוג האירוע של ההתראות לא צוין.
PRODUCT_STATUS_CHANGE
התראות על שינויים בסטטוס המוצר, למשל כשהמוצר נדחה.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 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"]]