Authorization: Bearer ********************
curl --location --request POST '/v1/booking/hotel-bookings' \
--header 'Content-Type: text/plain' \
--data-raw '{
"data": {
"offerId": "{{hotelOfferId}}",
"guests": [
{
"id": 1,
"name": {
"title": "MR",
"firstName": "BOB",
"lastName": "SMITH"
},
"contact": {
"phone": "+33679278416",
"email": "bob.smith@email.com"
}
}
],
"payments": [
{
"id": 1,
"method": "creditCard",
"card": {
"vendorCode": "VI",
"cardNumber": "4111111111111111",
"expiryDate": "2026-08"
}
}
],
"rooms": [
{
"guestIds": [
1
],
"paymentId": 1,
"specialRequest": "I will arrive at midnight"
}
]
}
}'
{}