Webhook event

TransactionCreatedEvent

The ExternalTransactionCreatedEvent webhook notifies subscribers when a financial transaction has been successfully created and recorded within the Sodtrack platform.

Sodtrack sends POST with Content-Type: application/json to the endpoint configured for your tenant. See webhooks overview for delivery and security guidance.

Payload

Payload
{
  "timestamp": "string",
  "userTriggererEmail": "string",
  "externalTransaction": {
    "createdDate": "Date",
    "id": "number",
    "reference": "string",
    "extraInfo": "string",
    "amount": "number",
    "status": "string",
    "type": "string",
    "currency": {
      "id": "number",
      "name": "string"
    },
    "shoppingCartId": "number",
    "bookingTransactionMovements": [
      {
        "bookingId": "number",
        "bookingReference": "string",
        "currency": {
          "id": "number",
          "name": "string"
        },
        "addonMovement": [
          {
            "addonId": "number",
            "reference": "string",
            "amount": "number",
            "quantityAdjustment": "number"
          }
        ],
        "serviceMovement": {
          "addonId": "number",
          "sku": [
            "string"
          ],
          "amount": "number",
          "quantityAdjustment": "number"
        }
      }
    ],
    "dynamicFormSnapshotFields": [
      {
        "reference": "string",
        "value": "string"
      }
    ]
  }
}

Purpose

The ExternalTransactionCreatedEvent webhook notifies subscribers when a financial transaction has been successfully created and recorded within the Sodtrack platform.

The transaction is recorded with all associated booking and addon movements, enabling comprehensive financial tracking.

Integrating this webhook allows client systems to automatically:

  • Synchronize payment records,

  • Trigger financial workflows (e.g., accounting updates, invoice generation, revenue recognition, reconciliation), and

  • Maintain real-time financial consistency with Sodtrack.


Trigger Condition

This webhook is triggered when:

  1. A financial transaction (payment or refund) is successfully created and validated in the Sodtrack system, and

  2. The transaction is associated with a shopping cart and includes all related booking and addon movements.


Example Use Cases

  • Automatically synchronize payment and refund records in external accounting systems, ERPs, or financial platforms.

  • Trigger post-transaction workflows such as invoice generation, receipt delivery, or revenue recognition.

  • Maintain synchronized financial records between Sodtrack and third-party systems.

  • Track payment status and reconcile transactions across multiple sources.

  • Generate financial reports and analytics based on transaction patterns.


Body

FieldTypeDescriptionAlways
createdDateDateDate/time when the external transaction was created.
idnumberUnique transaction identifier.
referencestringTransaction external reference.
extraInfostringAdditional information or context provided by external system.
amountnumberTransaction amount in the selected currency.
statusstringCurrent transaction status.
typestringTransaction type (paymentrefund).
currency.idnumberCurrency identifier.
currency.namestringCurrency name.
shoppingCartIdnumberIdentifier linking the transaction to a shopping cart/stage.

💸 externalTransaction.bookingTransactionMovements[]

TypeDescriptionAlways
bookingIdnumberAffected booking identifier.
bookingReferencestringBooking external reference.
currency.idnumberCurrency identifier for this movement.
currency.namestringCurrency name for this movement.

🔹 bookingTransactionMovements[].addonMovement[] (optional array)

FieldTypeDescriptionAlways
addonIdnumberIdentifier of the add-on affected.
referencestringAdd-on external reference.
amountnumberMonetary adjustment affecting this add-on.
quantityAdjustmentnumberAdded/removed add-on units.

🔹 bookingTransactionMovements[].serviceMovement (optional)

TypeDescriptionAlways
addonIdnumberIdentifier of the service variant addon (if applicable).
skustring[]SKUs associated with the service movement.
amountnumberMonetary adjustment affecting the service.
quantityAdjustmentnumberAdded/removed service quantity.

📝 externalTransaction.dynamicFormSnapshotFields[]

FieldTypeDescriptionAlways
referencestringDynamic field external reference.
valuestringCaptured value at the moment of the transaction.