REST Resource: accounts.notificationsubscriptions

Ressource: NotificationSubscription

Représente un abonnement aux notifications appartenant à un compte marchand.

Représentation 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.
}
Champs
name

string

Uniquement en sortie. Le name de la configuration de notification. Générées par Content API lors de la création d'un NotificationSubscription. account représente l'ID du marchand propriétaire de la configuration. Format: accounts/{account}/notificationsubscriptions/{notificationSubscription}

registeredEvent

enum (NotificationEventType)

Événement pour lequel le marchand souhaite être averti.

callBackUri

string

URL à utiliser pour envoyer la notification au marchand.

Champ d'union interested_in.

interested_in ne peut être qu'un des éléments suivants :

allManagedAccounts

boolean

Si cette valeur est définie sur "true", le compte à l'origine de la demande est informé chaque jour de l'événement spécifié pour tous les comptes gérés (il peut s'agir de sous-comptes ou d'autres comptes associés), y compris les nouveaux comptes.

targetAccount

string

Le name du compte pour lequel vous souhaitez recevoir des notifications. Format: accounts/{account}

NotificationEventType

Représente le type d'événement pour lequel le marchand souhaite recevoir des notifications.

Enums
NOTIFICATION_EVENT_TYPE_UNSPECIFIED Le type d'événement de notifications n'est pas spécifié.
PRODUCT_STATUS_CHANGE Notification de changement de l'état d'un produit, par exemple lorsqu'il est refusé

Méthodes

create

Crée un abonnement aux notifications pour un marchand.

delete

Supprime un abonnement aux notifications pour un marchand.

get

Récupère les abonnements aux notifications pour un compte.

list

Récupère tous les abonnements aux notifications d'un marchand.

patch

Met à jour un abonnement aux notifications existant pour un marchand.