/v1/holds
POST
/v1/holds
const url = 'http://localhost:8787/v1/holds';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"partySize":1,"signedQuoteToken":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8787/v1/holds \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "partySize": 1, "signedQuoteToken": "example" }'Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Media typeapplication/json
object
partySize
integer
signedQuoteToken
required
string
Examplegenerated
{ "partySize": 1, "signedQuoteToken": "example"}Responses
Section titled “Responses”The SAME reservation a prior request with this Idempotency-Key already created.
Media typeapplication/json
object
createdAt
required
string
currency
required
string
endsAt
required
string
holdExpiresAt
required
string | null
id
required
string format: uuid
ratePlanId
required
string | null format: uuid
resourceId
required
string format: uuid
startsAt
required
string
state
required
string
totalMinorUnits
required
string
Example
{ "state": "pending"}A new held reservation.
Media typeapplication/json
object
createdAt
required
string
currency
required
string
endsAt
required
string
holdExpiresAt
required
string | null
id
required
string format: uuid
ratePlanId
required
string | null format: uuid
resourceId
required
string format: uuid
startsAt
required
string
state
required
string
totalMinorUnits
required
string
Example
{ "state": "pending"}Missing Idempotency-Key header, or an invalid/expired/tampered quote token.
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "idempotency_key_required"}The resource+window is locked by a concurrent hold attempt, or already booked.
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "idempotency_key_required"}