/v1/holds/{reservationId}/confirm
POST
/v1/holds/{reservationId}/confirm
const url = 'http://localhost:8787/v1/holds/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/confirm';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"guestVerificationToken":"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/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/confirm \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "guestVerificationToken": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”reservationId
required
string format: uuid
Request Body
Section titled “Request Body”Media typeapplication/json
object
guestVerificationToken
required
string
Examplegenerated
{ "guestVerificationToken": "example"}Responses
Section titled “Responses”The reservation, now confirmed (idempotent — re-confirming an already-confirmed hold returns the same result).
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"}Invalid/expired guest-verification token, or one scoped to a different reservation.
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "hold_not_found"}No such hold for this tenant.
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "hold_not_found"}The hold is not in a state that can be confirmed (e.g. already cancelled/expired), or payment is required first.
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "hold_not_found"}