Skip to main content

Nice to have

offer_updated

When it fires​

This event is triggered when an offer of the loyalty programme is created or updated.

Payload fields​

FieldTypeDescription
eventStringThe name of the webhook event.
shoppingHubIdStringProgramme id (Spaycial).
shoppingHubExternalIdStringProgramme id in your system.
offerObjectThe offer that was created or updated.
offer.idStringThe offer identifier.
offer.statusStringThe status of the offer: created or updated.
offer.startDateDateThe offer's start date-time (RFC 3339 full-date format).
offer.endDateDateThe offer's end date-time (RFC 3339 full-date format).
offer.nameStringThe offer's name.
offer.teaserStringThe offer's teaser.
offer.rewardTypeStringThe type of benefit unlocked by this offer: LTRY (lottery), RFND (refund in cashback), GIFT_CARD (gift card).
offer.offerTypeStringThe kind of purchase trigger the offer looks for: welcome, frequency, referral, average.
offer.rewardLabelStringThe offer's reward description.
offer.rewardValueStringThe offer's reward value.
offer.conditionLabelStringThe condition to complete the offer, as a label.
offer.conditionValueStringThe condition to complete the offer, as a value.
offer.activeBooleanWhether the offer is active.

Example​

{
"event": "offer_updated",
"shoppingHubExternalId": "90890289082",
"shoppingHubId": "492f0b39-c205-4fb2-a225-70e042df3fdb",
"offer": {
"id": "4f284506-f8e8-486a-994a-2fa0f62838e5",
"status": "created",
"startDate": "2023-05-31T22:00:00.000Z",
"endDate": "2023-06-30T22:00:00.000Z",
"name": "June 2023 offer",
"teaser": "Offre du mois de juin",
"offerType": "frequency",
"rewardType": "RFND",
"rewardLabel": "10 €",
"rewardValue": "10.00",
"conditionLabel": "Recevez 10€ pour 80€ d'achats cumulés",
"conditionValue": "80.00",
"active": true
}
}