L’événement de type B2C user subscription updated est déclenché lorsqu’un abonnement est mis à jour dans l’ERP ou la CDP. Cet événement garantit que tous les services concernés sont informés de la modification d’un abonnement, leur permettant de prendre les mesures appropriées, telles que s’assurer que l’abonnement mis à jour est bien synchronisé dans les bases de données des différents systèmes.
Architecture diagram
Schema (JSON)
schema.json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "B2CUserSubscriptionUpdated",
"type": "object",
"properties": {
"subscriberId": {
"type": "string",
"format": "uuid",
"description": "The unique identifier of the subscriber for which the subscription was updated."
},
"subscriptionId": {
"type": "string",
"format": "uuid",
"description": "The unique identifier of the subscription that was updated."
},
"type": {
"type": "string",
"enum": ["ERP", "InApp", "Prospect", "Partner"],
"description": "The type of the subscription (ERP, InApp, Prospect, Partner,...)."
},
"changes": {
"type": "array",
"description": "A list of entities that were changed.",
"items": {
"type": "object",
"properties": {
"address": {
"type": "string",
"format": "uuid",
"description": "The unique identifier of the updated address."
},
"movement": {
"type": "string",
"format": "uuid",
"description": "The unique identifier of the updated movement."
},
"payment": {
"type": "string",
"format": "uuid",
"description": "The unique identifier of the updated payment method."
}
},
"additionalProperties": false
}
},
"updatedDate": {
"type": "string",
"format": "date-time",
"description": "The date and time when the subscription was updated."
}
},
"required": ["subscriberId", "subscriptionId", "changes", "updatedDate"],
"additionalProperties": false
}