Skip to main content
GET
Error

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Ionic-Account
string
required

The connected merchant selected when the token was created.

Pattern: ^mer_[A-Za-z0-9]{14}$

Path Parameters

id
string
required

The ct_... ID returned by ionic.createConfirmationToken().

Pattern: ^ct_[A-Za-z0-9]{24}$

Response

The ConfirmationToken object, without an enclosing data or confirmationToken property.

id
string
required

The ct_... ID to pass as confirmation_token when confirming a PaymentIntent.

Pattern: ^ct_[A-Za-z0-9]{24}$
object
enum<string>
required

Always confirmation_token.

Available options:
confirmation_token
status
enum<string>
required

ready means unused; consumed means assigned to one payment attempt; invalidated means canceled by resuming card editing; expired means not used before its deadline. Consumed does not mean paid.

Available options:
ready,
consumed,
invalidated,
expired
livemode
boolean
required

False for test mode, true for live mode. Must match the PaymentIntent.

currency
enum<string>
required

Currency selected when creating the card-field session. Must match the PaymentIntent.

Available options:
usd,
eur,
gbp
expires_at
integer<int64>
required

Last time an unused token can start a payment, in Unix seconds. At most 10 minutes after creation and no later than the field session expiry. Payments already started remain recoverable.

payment_intent
string | null
required

The pi_... ID of the PaymentIntent this token was used to confirm, or null if it has not been used. The ID remains set if the payment is pending, declines, or fails. Check the PaymentIntent's status for the payment outcome.

payment_method_preview
object
required
setup_future_usage
enum<string>

off_session when the buyer agreed to save the card; omitted otherwise. To save it, confirm with a PaymentIntent that has a customer and setup_future_usage off_session. Otherwise confirmation returns 409 CONFIRMATION_TOKEN_SETUP_FUTURE_USAGE_MISMATCH before charging.

Available options:
off_session