Skip to content

/v1/holds/{reservationId}/payment-intent

POST
/v1/holds/{reservationId}/payment-intent
curl --request POST \
--url http://localhost:8787/v1/holds/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/payment-intent \
--header 'Authorization: Bearer <token>'
reservationId
required
string format: uuid

The SAME (still-open) PaymentIntent this reservation already has.

Media typeapplication/json
object
amountMinorUnits
required
string
/^\d+$/
clientSecret
required
string
currency
required
string
>= 3 characters <= 3 characters
reservationId
required
string format: uuid
state
required
string
Allowed values: requires_payment requires_action processing succeeded failed refunded
stripePaymentIntentId
required
string
Example
{
"state": "requires_payment"
}

A new Stripe PaymentIntent for this HELD reservation.

Media typeapplication/json
object
amountMinorUnits
required
string
/^\d+$/
clientSecret
required
string
currency
required
string
>= 3 characters <= 3 characters
reservationId
required
string format: uuid
state
required
string
Allowed values: requires_payment requires_action processing succeeded failed refunded
stripePaymentIntentId
required
string
Example
{
"state": "requires_payment"
}

Missing Idempotency-Key header.

Media typeapplication/problem+json
object
code
required
string
Allowed values: idempotency_key_required reservation_not_found reservation_not_holdable stripe_not_configured already_paid
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
Allowed values: idempotency_key_required reservation_not_found reservation_not_holdable stripe_not_configured already_paid
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
Allowed values: idempotency_key_required reservation_not_found reservation_not_holdable stripe_not_configured already_paid
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{
"code": "idempotency_key_required"
}