Skip to main content

Update booking status

Method PUT

https://my.easyweek.io/api/public/v2/bookings/{booking_uuid}/status

Description: This endpoint is utilized to update the status of an existing booking. By specifying a new status UUID, the booking's current status can be changed to reflect its latest state within the booking lifecycle.

Example Request

curl -i -X PUT \
https://my.easyweek.io/api/public/v2/bookings/{booking_uuid}/status \
-H 'Authorization: Bearer <YOUR_SECRET>' \
-H 'Workspace: <YOUR_WORKSPACE>'

Request body

{
"status_uuid": "87720786-2e2c-4df8-a9f3-7719be6b41c8"
}

Path Parameters

  • booking_uuid (string, required): The unique identifier of the booking whose status needs to be updated.

Body Parameters

  • status_uuid (string, required): The UUID of the new status to be applied to the booking. This should correspond to one of the status types defined in the system.

By sending a request to this endpoint with the appropriate booking_uuid and a new status_uuid, the system will record the change and update the booking accordingly. This function is essential for dynamic booking management and ensuring that the booking's progress is accurately tracked and communicated.

Example Response

{
"uuid": "ceeabc63-7502-4158-b27e-7d051ce36c24",
"location_uuid": "123b2980-3506-4f8c-abce-97e1ab653406",
"start_time": "2023-12-21T10:00:00Z",
"end_time": "2023-12-21T10:30:00Z",
"timezone": "Europe/Berlin",
"duration": {
"value": 30,
"label": "minutes",
"iso_8601": "PT30M"
},
"quantity": 1,
"slots_count": 1,
"cancel_reason": null,
"canceled_by": null,
"is_canceled": false,
"is_completed": false,
"public_notes": "Hello world",
"currency": "EUR",
"policy": {
"policy_text": null,
"is_cancelable": true,
"cancellation_offset": 0,
"cancellation_text": null,
"is_changeable": true,
"change_offset": 0,
"change_text": null
},
"links": [
{
"type": "ical",
"link": "https://my.easyweek.io/api/notifications/bookings/6005979/icalendar"
},
{
"type": "google_meet",
"link": ""
},
{
"type": "zoom",
"link": ""
},
{
"type": "microsoft_teams",
"link": ""
}
],
"order": {
"tax": [],
"subtotal": 10000,
"subtotal_formatted": "€100.00",
"amount_paid": 0,
"amount_paid_formatted": "€0.00",
"total": 10000,
"total_formatted": "€100.00"
},
"ordered_services": [
{
"uuid": "1e5851a6-eb6b-4b3c-a328-66cfbe1ac965",
"timezone": "Europe/Berlin",
"reserved_on": "2023-12-21T10:00:00Z",
"reserved_until": "2023-12-21T10:30:00Z",
"quantity": 1,
"name": "Beard trim",
"currency": "EUR",
"price": 10000,
"price_formatted": "€100.00",
"discount": 0,
"discount_formatted": "€0.00",
"original_price": 10000,
"original_price_formatted": "€100.00",
"tax_name": null,
"tax_value": null,
"duration": {
"value": 30,
"label": "minutes",
"iso_8601": "PT30M"
},
"original_duration": {
"value": 30,
"label": "minutes",
"iso_8601": "PT30M"
}
}
]
}