Skip to content

Stripe: Confirmation tokens schemas

9 Stripe schemas with complete fields and constraints.

← Confirmation tokens operations · All schemas

Retrieve a Confirmation Token — response body

FieldTypePresenceDescription and constraints
$objectRootConfirmationTokens help transport client side data collected by Stripe JS over
to your server for confirming a PaymentIntent or SetupIntent. If the confirmation
is successful, values present on the ConfirmationToken are written onto the Intent.

To learn more about how to use ConfirmationToken, visit the related guides:
- [Finalize payments on the server](https://docs.stripe.com/payments/finalize-payments-on-the-server)
- [Build two-step confirmation](https://docs.stripe.com/payments/build-a-two-step-confirmation).
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
expires_atJSONOptional
expires_at (anyOf 1)JSONAlternative
expires_at (anyOf 1) (anyOf 1)integerAlternativeTime at which this ConfirmationToken expires and can no longer be used to confirm a PaymentIntent or SetupIntent.
Format: unix-time
expires_at (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
expires_at (anyOf 2)nullAlternative
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
mandate_dataJSONOptional
mandate_data (anyOf 1)JSONAlternativeData used for generating a Mandate.
mandate_data (anyOf 1) (anyOf 1)ModelAlternativeExpand Retrieve a Confirmation Token — response body — mandate data Data used for generating a Mandate Data used for generating a Mandate
mandate_data (anyOf 2)nullAlternative
metadataJSONOptional
metadata (anyOf 1)objectAlternativeSet of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Additional keys: see wildcard field
metadata (anyOf 1).*stringAdditional keysMaximum length: 500
metadata (anyOf 2)nullAlternative
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: confirmation_token
payment_intentJSONOptional
payment_intent (anyOf 1)stringAlternativeID of the PaymentIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
Maximum length: 5000
payment_intent (anyOf 2)nullAlternative
payment_method_optionsJSONOptional
payment_method_options (anyOf 1)JSONAlternativePayment-method-specific configuration for this ConfirmationToken.
payment_method_options (anyOf 1) (anyOf 1)ModelAlternativeExpand Retrieve a Confirmation Token — response body — payment method options value Payment-method-specific configuration
payment_method_options (anyOf 2)nullAlternative
payment_method_previewJSONOptional
payment_method_preview (anyOf 1)JSONAlternativePayment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken.
payment_method_preview (anyOf 1) (anyOf 1)ModelAlternativeExpand Retrieve a ConfirmationToken — response body — payment_method_preview / value / allow_redisplay: always, limited, unspecified
payment_method_preview (anyOf 2)nullAlternative
return_urlJSONOptional
return_url (anyOf 1)stringAlternativeReturn URL used to confirm the Intent.
Maximum length: 5000
return_url (anyOf 2)nullAlternative
setup_future_usageJSONOptional
setup_future_usage (anyOf 1)stringAlternativeIndicates that you intend to make future payments with this ConfirmationToken's payment method.

The presence of this property will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.
Known values: off_session, on_session
setup_future_usage (anyOf 2)nullAlternative
setup_intentJSONOptional
setup_intent (anyOf 1)stringAlternativeID of the SetupIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
Maximum length: 5000
setup_intent (anyOf 2)nullAlternative
shippingJSONOptional
shipping (anyOf 1)JSONAlternativeShipping information collected on this ConfirmationToken.
shipping (anyOf 1) (anyOf 1)ModelAlternativeExpand Retrieve a Confirmation Token — response body — shipping value address, name, phone
shipping (anyOf 2)nullAlternative
use_stripe_sdkbooleanRequired within parentIndicates whether the Stripe SDK is used to handle confirmation flow. Defaults to `true` on ConfirmationToken.

Referenced models: Retrieve a Confirmation Token — response body — mandate data Data used for generating a Mandate Data used for generating a Mandate, Retrieve a Confirmation Token — response body — payment method options value Payment-method-specific configuration, Retrieve a ConfirmationToken — response body — payment_method_preview / value / allow_redisplay: always, limited, unspecified, Retrieve a Confirmation Token — response body — shipping value address, name, phone

Retrieve a Confirmation Token — response body — mandate data Data used for generating a Mandate Data used for generating a Mandate

FieldTypePresenceDescription and constraints
$objectRootData used for generating a Mandate.
customer_acceptanceModelRequired within parentExpand Retrieve a Confirmation Token — response body — mandate data Data used for generating a Mandate Data used for generating a Mandate customer acceptance

Referenced models: Retrieve a Confirmation Token — response body — mandate data Data used for generating a Mandate Data used for generating a Mandate customer acceptance

Retrieve a Confirmation Token — response body — mandate data Data used for generating a Mandate Data used for generating a Mandate customer acceptance

FieldTypePresenceDescription and constraints
$objectRootThis hash contains details about the customer acceptance of the Mandate.
onlineJSONOptional
online (anyOf 1)JSONAlternativeIf this is a Mandate accepted online, this hash contains details about the online acceptance.
online (anyOf 1) (anyOf 1)ModelAlternativeExpand Retrieve a Confirmation Token — response body — mandate data Data used for generating a Mandate Data used for generating a Mandate customer acceptance online value ip address, user agent
online (anyOf 2)nullAlternative
typestringRequired within parentThe type of customer acceptance information included with the Mandate.
Maximum length: 5000

Referenced models: Retrieve a Confirmation Token — response body — mandate data Data used for generating a Mandate Data used for generating a Mandate customer acceptance online value ip address, user agent

Retrieve a Confirmation Token — response body — mandate data Data used for generating a Mandate Data used for generating a Mandate customer acceptance online value ip address, user agent

FieldTypePresenceDescription and constraints
$objectRootThis hash contains details about the online acceptance.
ip_addressJSONOptional
ip_address (anyOf 1)stringAlternativeThe IP address from which the Mandate was accepted by the customer.
Maximum length: 5000
ip_address (anyOf 2)nullAlternative
user_agentJSONOptional
user_agent (anyOf 1)stringAlternativeThe user agent of the browser from which the Mandate was accepted by the customer.
Maximum length: 5000
user_agent (anyOf 2)nullAlternative

Retrieve a Confirmation Token — response body — payment method options value Payment-method-specific configuration

FieldTypePresenceDescription and constraints
$objectRootPayment-method-specific configuration
cardJSONOptional
card (anyOf 1)JSONAlternativeThis hash contains the card payment method options.
card (anyOf 1) (anyOf 1)ModelAlternativeExpand Retrieve a Confirmation Token — response body — payment method options value Payment-method-specific configuration card This hash contains the card payment method options This hash contains the card payment method options
card (anyOf 2)nullAlternative

Referenced models: Retrieve a Confirmation Token — response body — payment method options value Payment-method-specific configuration card This hash contains the card payment method options This hash contains the card payment method options

Retrieve a Confirmation Token — response body — payment method options value Payment-method-specific configuration card This hash contains the card payment method options This hash contains the card payment method options

FieldTypePresenceDescription and constraints
$objectRootThis hash contains the card payment method options.
cvc_tokenJSONOptional
cvc_token (anyOf 1)stringAlternativeThe `cvc_update` Token collected from the Payment Element.
Maximum length: 5000
cvc_token (anyOf 2)nullAlternative
installmentsModelOptionalExpand Retrieve a Confirmation Token — response body — payment method options value Payment-method-specific configuration card This hash contains the card payment method options This hash contains the card payment method options installments

Referenced models: Retrieve a Confirmation Token — response body — payment method options value Payment-method-specific configuration card This hash contains the card payment method options This hash contains the card payment method options installments

Retrieve a Confirmation Token — response body — payment method options value Payment-method-specific configuration card This hash contains the card payment method options This hash contains the card payment method options installments

FieldTypePresenceDescription and constraints
$objectRootInstallment configuration for payments.
planModelOptionalExpand Cancel a PaymentIntent — response body — payment_method_options / value / acss_debit, affirm, afterpay_clearpay, alipay, alma, amazon_pay, au_becs_debit, bacs_debit, bancontact, billie, bizum, blik, boleto, card, card_present, cashapp, crypto, customer_balance, eps, fpx, giropay, grabpay, ideal, interac_present, kakao_pay, klarna, konbini, kr_card, link, mb_way, mobilepay, multibanco, naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, payco, paynow, paypal, paypay, payto, pix, promptpay, revolut_pay, samsung_pay, satispay, scalapay, sepa_debit, sequra, sofort, sunbit, swish, twint, upi, us_bank_account, wechat_pay, zip / eps / capture_method: automatic delayed, manual, manual preferred, setup future usage: none, off session, on session, verification method: automatic, instant, microdeposits installments plan

Referenced models: Cancel a PaymentIntent — response body — payment_method_options / value / acss_debit, affirm, afterpay_clearpay, alipay, alma, amazon_pay, au_becs_debit, bacs_debit, bancontact, billie, bizum, blik, boleto, card, card_present, cashapp, crypto, customer_balance, eps, fpx, giropay, grabpay, ideal, interac_present, kakao_pay, klarna, konbini, kr_card, link, mb_way, mobilepay, multibanco, naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, payco, paynow, paypal, paypay, payto, pix, promptpay, revolut_pay, samsung_pay, satispay, scalapay, sepa_debit, sequra, sofort, sunbit, swish, twint, upi, us_bank_account, wechat_pay, zip / eps / capture_method: automatic delayed, manual, manual preferred, setup future usage: none, off session, on session, verification method: automatic, instant, microdeposits installments plan

Retrieve a Confirmation Token — response body — shipping value address, name, phone

FieldTypePresenceDescription and constraints
$objectRoot
addressModelRequired within parentExpand Create a Location — response body — address
namestringRequired within parentRecipient name.
Maximum length: 5000
phoneJSONOptional
phone (anyOf 1)stringAlternativeRecipient phone (including extension).
Maximum length: 5000
phone (anyOf 2)nullAlternative

Referenced models: Create a Location — response body — address

Retrieve a ConfirmationToken — response body — payment_method_preview / value / allow_redisplay: always, limited, unspecified

FieldTypePresenceDescription and constraints
$objectRootDetails of the PaymentMethod collected by Payment Element
acss_debitModelOptionalExpand Create a Payment Method — response body — acss debit
affirmModelOptionalExpand Create a Payment Method — response body — zip
afterpay_clearpayModelOptionalExpand Create a Payment Method — response body — zip
alipayModelOptionalExpand Create a Payment Method — response body — zip
allow_redisplaystringOptionalThis field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
Known values: always, limited, unspecified
almaModelOptionalExpand Create a Payment Method — response body — zip
amazon_payModelOptionalExpand Create a Payment Method — response body — zip
au_becs_debitModelOptionalExpand Create a Payment Method — response body — au becs debit
bacs_debitModelOptionalExpand Create a Payment Method — response body — bacs debit
bancontactModelOptionalExpand Create a Payment Method — response body — zip
billieModelOptionalExpand Create a Payment Method — response body — zip
billing_detailsModelRequired within parentExpand Create a charge — response body — billing details
bizumModelOptionalExpand Create a Payment Method — response body — bizum
blikModelOptionalExpand Create a Payment Method — response body — blik
boletoModelOptionalExpand Create a Payment Method — response body — boleto
cardModelOptionalExpand Create a Payment Method — response body — card
card_presentModelOptionalExpand Create a Payment Method — response body — card present
cashappModelOptionalExpand Create a Payment Method — response body — cashapp
cryptoModelOptionalExpand Create a Payment Method — response body — zip
customerJSONOptional
customer (anyOf 1)JSONAlternativeThe ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
customer (anyOf 1) (anyOf 1)stringAlternativeMaximum length: 5000
customer (anyOf 1) (anyOf 2)ModelAlternativeExpand Create a customer — response body
customer (anyOf 2)nullAlternative
customer_accountJSONOptional
customer_account (anyOf 1)stringAlternativeMaximum length: 5000
customer_account (anyOf 2)nullAlternative
customer_balanceModelOptionalExpand Create a Payment Method — response body — zip
epsModelOptionalExpand Create a Payment Method — response body — eps
fpxModelOptionalExpand Create a Payment Method — response body — fpx
giropayModelOptionalExpand Create a Payment Method — response body — zip
grabpayModelOptionalExpand Create a Payment Method — response body — zip
idealModelOptionalExpand Create a Payment Method — response body — ideal
interac_presentModelOptionalExpand Create a Payment Method — response body — interac present
kakao_payModelOptionalExpand Create a Payment Method — response body — zip
klarnaModelOptionalExpand Create a Payment Method — response body — klarna
konbiniModelOptionalExpand Create a Payment Method — response body — zip
kr_cardModelOptionalExpand Create a Payment Method — response body — kr card
linkModelOptionalExpand Create a Payment Method — response body — link
mb_wayModelOptionalExpand Create a Payment Method — response body — zip
mobilepayModelOptionalExpand Create a Payment Method — response body — zip
multibancoModelOptionalExpand Create a Payment Method — response body — zip
naver_payModelOptionalExpand Create a Payment Method — response body — naver pay
nz_bank_accountModelOptionalExpand Create a Payment Method — response body — nz bank account
oxxoModelOptionalExpand Create a Payment Method — response body — zip
p24ModelOptionalExpand Create a Payment Method — response body — p24
pay_by_bankModelOptionalExpand Create a Payment Method — response body — zip
paycoModelOptionalExpand Create a Payment Method — response body — zip
paynowModelOptionalExpand Create a Payment Method — response body — zip
paypalModelOptionalExpand Create a Payment Method — response body — paypal
paypayModelOptionalExpand Create a Payment Method — response body — zip
paytoModelOptionalExpand Create a Payment Method — response body — payto
pixModelOptionalExpand Create a Payment Method — response body — pix
promptpayModelOptionalExpand Create a Payment Method — response body — zip
revolut_payModelOptionalExpand Create a Payment Method — response body — zip
samsung_payModelOptionalExpand Create a Payment Method — response body — zip
satispayModelOptionalExpand Create a Payment Method — response body — zip
scalapayModelOptionalExpand Create a Payment Method — response body — zip
sepa_debitModelOptionalExpand Create a Payment Method — response body — sepa debit
sequraModelOptionalExpand Create a Payment Method — response body — zip
sofortModelOptionalExpand Create a Payment Method — response body — sofort
sunbitModelOptionalExpand Create a Payment Method — response body — zip
swishModelOptionalExpand Create a Payment Method — response body — zip
twintModelOptionalExpand Create a Payment Method — response body — zip
typestringRequired within parentThe type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
Known values: acss_debit, affirm, afterpay_clearpay, alipay, alma, amazon_pay, au_becs_debit, bacs_debit, bancontact, billie, bizum, blik, boleto, card, card_present, cashapp, crypto, custom, customer_balance, eps, fpx, giropay, grabpay, ideal, interac_present, kakao_pay, klarna, konbini, kr_card, link, mb_way, mobilepay, multibanco, naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, payco, paynow, paypal, paypay, payto, pix, promptpay, revolut_pay, samsung_pay, satispay, scalapay, sepa_debit, sequra, sofort, sunbit, swish, twint, upi, us_bank_account, wechat_pay, zip
upiModelOptionalExpand Create a Payment Method — response body — upi
us_bank_accountModelOptionalExpand Create a Payment Method — response body — us bank account
wechat_payModelOptionalExpand Create a Payment Method — response body — zip
zipModelOptionalExpand Create a Payment Method — response body — zip

Referenced models: Create a Payment Method — response body — zip, Create a charge — response body — billing details, Create a customer — response body, Create a Payment Method — response body — acss debit, Create a Payment Method — response body — au becs debit, Create a Payment Method — response body — bacs debit, Create a Payment Method — response body — bizum, Create a Payment Method — response body — blik, Create a Payment Method — response body — boleto, Create a Payment Method — response body — card, Create a Payment Method — response body — card present, Create a Payment Method — response body — cashapp, Create a Payment Method — response body — eps, Create a Payment Method — response body — fpx, Create a Payment Method — response body — ideal, Create a Payment Method — response body — interac present, Create a Payment Method — response body — klarna, Create a Payment Method — response body — kr card, Create a Payment Method — response body — link, Create a Payment Method — response body — naver pay, Create a Payment Method — response body — nz bank account, Create a Payment Method — response body — p24, Create a Payment Method — response body — paypal, Create a Payment Method — response body — payto, Create a Payment Method — response body — pix, Create a Payment Method — response body — sepa debit, Create a Payment Method — response body — sofort, Create a Payment Method — response body — upi, Create a Payment Method — response body — us bank account

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.