/v1/holds/{reservationId}/payment-intent
POST
/v1/holds/{reservationId}/payment-intent
const url = 'http://localhost:8787/v1/holds/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/payment-intent';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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/payment-intent \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”reservationId
required
string format: uuid
Responses
Section titled “Responses”The SAME (still-open) PaymentIntent this reservation already has.
Media typeapplication/json
object
amountMinorUnits
required
string
clientSecret
required
string
currency
required
string
reservationId
required
string format: uuid
state
required
string
stripePaymentIntentId
required
string
Example
{ "state": "requires_payment"}A new Stripe PaymentIntent for this HELD reservation.
Media typeapplication/json
object
amountMinorUnits
required
string
clientSecret
required
string
currency
required
string
reservationId
required
string format: uuid
state
required
string
stripePaymentIntentId
required
string
Example
{ "state": "requires_payment"}Missing Idempotency-Key header.
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"}No such reservation 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": "idempotency_key_required"}The reservation isn’t held, the tenant has no usable Stripe Connect account, or it’s already paid.
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"}