Skip to main content

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​

FieldTypeDescription
eventStringThe name of the webhook event.
receiptIdUuidThe id of the receipt.
statusStringThe status that has been updated. Possible values: pending, validated, rejected.
customerIdStringSpaycial's member id.
customerExternalIdStringThe member's external identifier (your identifier for this member).
shoppingHubIdStringProgramme id (Spaycial).
shoppingHubExternalIdStringProgramme id in your system.
rejectionReasonString, nullableThe 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"
}