Booking Create
Create a Booking
Endpoint
POST /api/v1/client/bookingsExample curl
curlcurl "/api/v1/client/bookings" \
-H "accept: application/json" \
-H "content-type: application/json" \
-H "origin: https://docs.hostelmate.co" \
--data-raw '{
"booking": {
"id": "e7b7f6bb-6c0c-4e2c-9b3e-9c6f2a1c0a77",
"dates": [
{ "date": "2025-11-05", "amount": 250 },
{ "date": "2025-11-06", "amount": 250 },
{ "date": "2025-11-07", "amount": 250 }
]
},
"room": "92b6f8b8-6ea2-4e0e-9b7b-3e2f9b6a7c2d",
"guest": {
"id": "f1b2c3d4-5678-49ab-9cde-112233445566",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone": "+971500000000",
"country_code": "AE",
"address": {
"line1": "Sheikh Zayed Rd",
"city": "Dubai",
"postal_code": "00000",
"country_code": "AE"
}
},
"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