Booking Create
Create a Booking
Endpoint
POST /api/v1/client/bookingsExample curl
curlcurl "https://api.hostelmate.co/api/v1/client/bookings" \
-X POST \
-H "X-API-Key: <your_api_key>" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: <unique-uuid>" \
-d '{
"booking": {
"id": "e7b7f6bb-6c0c-4e2c-9b3e-9c6f2a1c0a77",
"dates": [
{ "date": "2025-11-05", "amount": 25000 },
{ "date": "2025-11-06", "amount": 25000 },
{ "date": "2025-11-07", "amount": 25000 }
]
},
"room": "92b6f8b8-6ea2-4e0e-9b7b-3e2f9b6a7c2d",
"guest": {
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone": "+447712345678",
"country_code": "GB"
},
"notes": "Late arrival around 22:00"
}'Request Payload
Field
Type
Description
Field
Type
Description
Field
Type
Description
Field
Type
Description
Field
Type
Description
Response (201 Created)
Validation Rules
Error Codes
HTTP
Code
Description
Last updated