Skip to main content

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​

FieldTypeDescription
eventStringThe name of the webhook event.
eventTypeStringThe type of event: created, validated or rejected.
customerObjectThe member concerned.
customer.idStringSpaycial's member id.
customer.externalIdStringYour member id.
initialTransactionObjectThe initial transaction that changed.
initialTransaction.idStringThe initial transaction identifier.
initialTransaction.amountNumberThe amount of the initial transaction.
initialTransaction.storeExternalIdString, nullableThe 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.googlePlaceIdString, optionalThe store's Google place id, present only when storeExternalId is null.
initialTransaction.storeNameString, optionalThe store's name, present only when storeExternalId is null.
initialTransaction.statusStringThe status of the initial transaction: created, validated or rejected.
initialTransaction.rejectionReasonStringThe 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.transactionDateStringThe date of the transaction, declared by you (YYYY-MM-DD).
initialTransaction.transactionIdString, nullableThe id of the transaction in our system, provided only if automatically matched.
initialTransaction.dateStringThe 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"
}
}