Discussions

Ask a Question
Back to All

Create booking via API

Hey,
I am unable to create brooking via Lodgify API -
my request is to this endpoint - https://api.lodgify.com/v1/reservation/booking-

curl --location 'https://api.lodgify.com/v1/reservation/booking'
--header 'X-ApiKey: XXXXXXXXXXXXXX'
--header 'accept: application/json'
--header 'content-type: application/*+json'
--data-raw '{
"guest": {
"name": "Sam Smith",
"email": "[email protected]",
"phone": "+14334223432",
"country_code": "CA"
},
"status": "Booked",
"property_id": 573494,
"arrival": "2024-05-01",
"departure": "2024-05-03",
"bookability": "InstantBooking",
"origin": "manual",
"total": 300,
"currency_code": "USD",
"source_text": "Manual",
"rooms": [
{
"room_type_id": 640210,
"people": 3,
"key_code": ""
}
]
}'

it is throwing error -
{
"message": "BookingSettings #650324 not found.",
"code": 666,
"correlation_id": "0HN33128E7UK6:00000003",
"event_id": null
}

Thanks
Vivek