Price check for a specific availability search by its Option ID. Option ID should be chosen among Room IDs returned by the search endpoint inside Room objects. If there is a price change status you will see the change in the pricing and null otherwise.
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/price-check
- BFW API Production serverhttps://bookforwork.com/price-check
- BFW API Staging serverhttps://staging.bookforwork.com/price-check
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-docs.bookforwork.com/api/v1/price-check?option_id=string' \
-H 'authorization: API-Key=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0,Signature=d8e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3,Timestamp=1234567890'{ "status": "AVAILABLE", "price": { "currency": "EUR", "net": "358.25", "sales_taxes": "0.00", "taxes": "57.10", "without_tax": "301.15" }, "booking_id": "41db9a7889ffac6b771de3141f2f923c9f655bbab0e415ead9a464e519edf5c0" }
List of rooms with guest details.
Lead guest first name. Type - String.
Guest email address. Type - String.
Guest email address. Type - String.
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).
- https://api-docs.bookforwork.com/api/v1/booking
- BFW API Production serverhttps://bookforwork.com/booking
- BFW API Staging serverhttps://staging.bookforwork.com/booking
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api-docs.bookforwork.com/api/v1/booking?option_id=string' \
-H 'Content-Type: application/json' \
-H 'authorization: API-Key=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0,Signature=d8e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3,Timestamp=1234567890' \
-d '{
"room_detail": [
{
"lead_first_name": "Francesca",
"lead_last_name": "Mario",
"notes": "Top floor or away from street."
}
],
"phone_number_prefix": "0039",
"phone_number": "3632323278",
"email": "francesca.mario@gmail.com",
"custom_fields": {
"custom_field_1": "value 1",
"custom_field_2": "value 2"
}
}'{ "status": "PROCESSING", "booking_id": "626" }