Nice to have
initial_transaction_update
When it fires
This event is triggered when the status of an initial transaction changes. It is either:
- created (when first submitted via Send an initial transaction)
- validated (when the store is properly set up in our system)
- rejected (when we cannot set up the store, with a rejection reason)
Payload fields
| Field | Type | Description |
|---|---|---|
event | String | The name of the webhook event. |
eventType | String | The type of event: created, validated or rejected. |
customer | Object | The member concerned. |
customer.id | String | Spaycial's member id. |
customer.externalId | String | Your member id. |
initialTransaction | Object | The initial transaction that changed. |
initialTransaction.id | String | The initial transaction identifier. |
initialTransaction.amount | Number | The amount of the initial transaction. |
initialTransaction.storeExternalId | String, nullable | The store id in your repository. Null when the store was created in the field with no client identifier available yet; see googlePlaceId and storeName in that case. |
initialTransaction.googlePlaceId | String, optional | The store's Google place id, present only when storeExternalId is null. |
initialTransaction.storeName | String, optional | The store's name, present only when storeExternalId is null. |
initialTransaction.status | String | The status of the initial transaction: created, validated or rejected. |
initialTransaction.rejectionReason | String | The rejection reason of the initial transaction, if rejected. Possible values: purchaseNotFound (the transaction could not be found in our system), bankConsentExpired (the bank consent has expired). |
initialTransaction.transactionDate | String | The date of the transaction, declared by you (YYYY-MM-DD). |
initialTransaction.transactionId | String, nullable | The id of the transaction in our system, provided only if automatically matched. |
initialTransaction.date | String | The date the initial transaction was created (ISO 8601 format). |
Example
{
"event": "initial_transaction_update",
"eventType": "validated",
"customer": {
"id": "398f0b39-c205-4fb2-a225-70e042df3fdb",
"externalId": "4564564564654"
},
"initialTransaction": {
"id": "b73dbe2b-b1d6-46f0-8e0c-3ff122de3c62",
"amount": 25.5,
"storeExternalId": "29894111110",
"status": "validated",
"rejectionReason": null,
"transactionDate": "2025-01-15",
"transactionId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"date": "2025-01-15T10:30:00.000Z"
}
}
{
"event": "initial_transaction_update",
"eventType": "rejected",
"customer": {
"id": "398f0b39-c205-4fb2-a225-70e042df3fdb",
"externalId": "4564564564654"
},
"initialTransaction": {
"id": "b73dbe2b-b1d6-46f0-8e0c-3ff122de3c62",
"amount": 25.5,
"storeExternalId": "29894111110",
"status": "rejected",
"rejectionReason": "purchaseNotFound",
"transactionDate": "2025-01-15",
"transactionId": null,
"date": "2025-01-15T10:30:00.000Z"
}
}