Rappresenta un abbonamento alle notifiche di proprietà di un account commerciante.
Rappresentazione 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.}
Campi
name
string
Solo output. Il name della configurazione di notifica. Generato dall'API Content al momento della creazione di un nuovo NotificationSubscription. account rappresenta l'ID commerciante del commerciante proprietario della configurazione. Formato: accounts/{account}/notificationsubscriptions/{notificationSubscription}
L'evento per cui il commerciante vuole ricevere una notifica.
callBackUri
string
URL da utilizzare per inviare la notifica al commerciante.
Campo unione interested_in.
interested_in può essere solo uno dei seguenti:
allManagedAccounts
boolean
Se questo valore è true, all'account che effettua la richiesta viene inviata una notifica giornaliera dell'evento specificato per tutti gli account gestiti (possono essere subaccount o altri account collegati), inclusi gli account appena aggiunti.
targetAccount
string
Il name dell'account per cui vuoi ricevere le notifiche. Formato: accounts/{account}
NotificationEventType
Rappresenta il tipo di evento per cui il commerciante è interessato a ricevere notifiche.
Enum
NOTIFICATION_EVENT_TYPE_UNSPECIFIED
Il tipo di evento Notifiche non è specificato.
PRODUCT_STATUS_CHANGE
Notifica delle modifiche dello stato del prodotto, ad esempio quando il prodotto non viene approvato.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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"]]