Must haveThe outcome of a receipt can only reach the member through your app: for programmes that use the API, Spaycial rarely has the member's email.
receipt_updated
When it fires
This event is triggered when a receipt's status is updated.
Payload fields
| Field | Type | Description |
|---|---|---|
event | String | The name of the webhook event. |
receiptId | Uuid | The id of the receipt. |
status | String | The status that has been updated. Possible values: pending, validated, rejected. |
customerId | String | Spaycial's member id. |
customerExternalId | String | The member's external identifier (your identifier for this member). |
shoppingHubId | String | Programme id (Spaycial). |
shoppingHubExternalId | String | Programme id in your system. |
rejectionReason | String, nullable | The rejection reason. Possible values: beforeRegistration, duplicate, incomplete, notATicket, outOfMall, notInClientReferential, unknown, or null. |
Example
{
"event": "receipt_updated",
"receiptId": "d7d4bad0-f7c0-4427-9305-fa5c9394e211",
"status": "rejected",
"customerId": "c84c33cf-62c6-4a44-8692-973cc0cc420c",
"customerExternalId": "87316292",
"shoppingHubId": "f24b4d97-8d70-4133-b685-732c69b87884",
"shoppingHubExternalId": "654564561",
"rejectionReason": "incomplete"
}