Search for available rooms across multiple properties.
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.
Download OpenAPI description
Overview
Book for Work
Languages
Servers
https://api-docs.bookforwork.com/api/v1
BFW API Production server
https://bookforwork.com
BFW API Staging server
https://staging.bookforwork.com
- https://api-docs.bookforwork.com/api/v1/properties/availability
- BFW API Production serverhttps://bookforwork.com/properties/availability
- BFW API Staging serverhttps://staging.bookforwork.com/properties/availability
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-docs.bookforwork.com/api/v1/properties/availability?checkin=2019-08-24&checkout=2019-08-24&property_id=0&occupancy=string' \
-H 'authorization: API-Key=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0,Signature=d8e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3,Timestamp=1234567890'Response
application/json
{ "properties": [ { … } ], "warnings": [ "228934", "3849405", "2839404" ] }