Representa una suscripción a notificaciones que pertenece a una cuenta de comerciante.
Representación 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.}
Campos
name
string
Solo salida. El name de la configuración de notificaciones. Lo genera Content API cuando se crea un NotificationSubscription nuevo. account representa el ID del comerciante que es propietario de la configuración. Formato: accounts/{account}/notificationsubscriptions/{notificationSubscription}
Es el evento sobre el que el comercio desea recibir notificaciones.
callBackUri
string
Es la URL que se usará para enviar la notificación al comercio.
Campo de unión interested_in.
interested_in puede ser una de las siguientes opciones:
allManagedAccounts
boolean
Si este valor es verdadero, la cuenta solicitante recibirá una notificación diaria del evento especificado para todas las cuentas administradas (pueden ser cuentas secundarias o de otro tipo vinculadas), incluidas las cuentas recién agregadas.
targetAccount
string
El name de la cuenta para la que quieres recibir notificaciones. Formato: accounts/{account}
NotificationEventType
Representa el tipo de evento para el que al comercio le interesa recibir notificaciones.
Enumeraciones
NOTIFICATION_EVENT_TYPE_UNSPECIFIED
No se especificó el tipo de evento de notificaciones.
PRODUCT_STATUS_CHANGE
Notificación de cambios en el estado del producto, por ejemplo, cuando se rechaza un producto.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 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"]]