BookingCancelledEvent
The BookingCancelledEvent webhook notifies subscribers when a booking has been cancelled within the Sodtrack platform.
POST with Content-Type: application/json to the endpoint configured for your tenant. See webhooks overview for delivery and security guidance.Payload
{
"timestamp": "string",
"userTriggererEmail": "string",
"booking": {
"id": "number",
"reference": "string",
"createdDate": "Date",
"serviceVariantTotalPrice": "number",
"serviceVariantTotalCost": "number",
"serviceName": "string",
"totalAddonsCost": "number",
"totalAddonsPrice": "number",
"totalAddonsDuration": "number",
"status": "string",
"variantDuration": "number",
"transportCost": "number",
"quantity": "number",
"date": "Date",
"doneDate": "Date",
"periodStartTime": "Date",
"periodEndTime": "Date",
"finalCost": "number",
"finalPrice": "number",
"totalDuration": "number",
"category": {
"id": "number",
"name": "string"
},
"saleChannel": {
"id": "number",
"name": "string"
},
"shoppingCartId": "number",
"serviceVariant": {
"id": "number",
"name": "string",
"skus": [
{
"id": "number",
"sku": "string"
}
]
},
"addons": [
{
"id": "number",
"quantity": "number",
"name": "string",
"duration": "number",
"totalCost": "number",
"totalPrice": "number",
"unitCost": "number",
"unitPrice": "number"
}
],
"products": [
{
"id": "number",
"quantity": "number",
"productPromisedDeliveryDate": "Date",
"sku": "string",
"name": "string",
"description": "string",
"price": "number",
"unit": {
"id": "number",
"serialNumber": "string"
}
}
],
"dynamicFieldValues": [
{
"id": "number",
"value": "string"
}
],
"dynamicFormFields": [
{
"reference": "string",
"value": "string"
}
]
},
"customer": {
"id": "number",
"name": "string",
"identificationNumber": "string",
"lastName": "string",
"email": "string",
"phoneNumber": "string"
},
"address": {
"id": "number",
"coordinates": {
"lng": "number",
"lat": "number"
},
"address": "string",
"formattedAddress": "string",
"areas": [
{
"id": "number",
"name": "string",
"reference": ""
}
]
},
"professional": {
"id": "number",
"isCompany": "boolean",
"reference": "string",
"name": "string",
"lastName": "string",
"email": "string",
"phoneNumber": "string"
}
}Purpose
The BookingCancelledEvent webhook notifies subscribers when a booking has been cancelled within the Sodtrack platform.
This event is triggered when a booking's lifecycle is terminated before completion — typically when a customer cancels the service request, an administrator cancels the booking, or the booking is cancelled due to an incident resolution.
Once triggered, the booking transitions to the “cancelled” status and ceases active processing.
Integrating this webhook allows client systems to automatically synchronize booking cancellations, trigger post-cancellation workflows (e.g., refund processing, resource reallocation, inventory updates, or customer communication), and maintain real-time operational consistency with Sodtrack.
Trigger Condition
This webhook is triggered when:
-
A booking's status transitions to
"cancelled", and -
The booking cancellation is successfully recorded in the Sodtrack system.
Only bookings that have been properly cancelled and validated by the system generate this event.
Example Use Cases
-
Automatically update booking statuses in external CRMs, ERPs, or scheduling systems to reflect cancellations.
-
Trigger post-cancellation workflows such as refund processing, provider compensation calculations, or resource reallocation.
-
Maintain synchronized cancellation records between Sodtrack and third-party platforms.
-
Initiate customer communication workflows (e.g., cancellation confirmations, feedback requests).
-
Update inventory and availability management systems to free up previously allocated resources.
Body
The body of this webhook inherits the standard Sodtrack webhook structure, which includes:
-
The common shared webhook fields
-
The booking objects