Cancels a specific booking by its Booking Id.
Book for Work API (1.0.0)
Welcome to Book for Work API! Before reading the documentation please make sure you read the tab Getting Started.
All endpoints require HMAC-SHA256 signature authentication via the Authorization header:
Format: Authorization: API-Key={key},Signature={hmac_signature}, Timestamp={unix_timestamp}
Steps to generate signature:
- Generate the current Unix timestamp (UTC, seconds).
- Create the signing message by concatenating the following values in this exact order with no separators:
{api_key}{secret}{timestamp} - Generate an HMAC-SHA256 signature using the API secret as the HMAC key.
- Encode the signature as a hexadecimal string.
- Include the API key, signature, and timestamp in the
Authorizationheader.
Requests are rejected if the timestamp differs from the server time by more than 5 minutes.
- https://api-docs.bookforwork.com/api/v1/cancel
- BFW API Production serverhttps://bookforwork.com/cancel
- BFW API Staging serverhttps://staging.bookforwork.com/cancel
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api-docs.bookforwork.com/api/v1/cancel?booking_id=0' \
-H 'authorization: API-Key=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0,Signature=d8e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3,Timestamp=1234567890'{ "status": "OK", "message": "Sorry! We couldn't find your booking with ID: 90." }
- https://api-docs.bookforwork.com/api/v1/retrieve
- BFW API Production serverhttps://bookforwork.com/retrieve
- BFW API Staging serverhttps://staging.bookforwork.com/retrieve
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-docs.bookforwork.com/api/v1/retrieve?booking_id=0' \
-H 'authorization: API-Key=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0,Signature=d8e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3,Timestamp=1234567890'Successful booking details retrieval list
Penalty date for booking cancelation
Penalty date for booking cancelation
Pricing information
Whether this is a package rate. Package rates must be sold together with a transport service (ex. flight, rental car, train, etc.)
Dynamic custom fields can be added up to 10 fields in type string. These fields can be added for reconciliation purposes and they will be added to the invoices (ex. Order Number: 37484).
Dynamic custom fields can be added up to 10 fields in type string. These fields can be added for reconciliation purposes and they will be added to the invoices (ex. Order Number: 37484).
{ "booking_id": 938, "status": "CONFIRMED", "guest_contact_number": "39 56323232", "email": "francesca.mario@gmail.com", "check_in": "2025-12-24", "check_out": "2025-12-27", "cancel_policy": true, "penalty_date": "2025-12-18", "price": { "total_amount": "626.34", "currency": "USD", "payment_status": "PAID" }, "package": true, "created_at": "2025-12-15", "custom_fields": { "custom_field_1": "Value 1", "custom_field_2": "Value 2" }, "rooms": [ { … } ] }