client_secret to the elements’ handleNextAction, or poll Retrieve status for how far the setup has gone and what is outstanding. Once it reaches succeeded, payment_method_id names the saved method and Create Payment charges it.
Endpoints
Attributes
string
required
Setup intent ID, prefixed
sint_.string | null
required
The account the payment method is saved for, prefixed
biz_.string | null
required
The checkout configuration this setup was created through, prefixed
ch_.
Null for a setup created through this API rather than a hosted checkout.string | null
required
The credential a buyer’s surface presents to poll this setup and set its
return URL — hand it to the elements’
handleNextAction. Only on setups
created through this API, and always null in list responses — retrieve the
setup intent for it.string
required
When the setup intent was created, as an ISO 8601 timestamp.
object | null
required
Why the setup ended where it did, or
null when nothing has failed. Present on canceled — a buyer who abandoned carries no code, one refused by the provider does. Dropped once the setup succeeds.string | null
required
The buyer’s member record on the account, prefixed
mber_. Null without the
member:basic:read permission, unless the caller is the buyer.object | null
required
Your own key-value data attached when the setup intent was created.
object | null
required
The method behind this setup shaped for display: a buyer-facing name, the standard icon set, and the card’s brand, last four, issuer identification number, and expiry when it was a card. Null until a method was collected.
Properties
Properties
object | null
required
Card payments only: the card’s network, last four, and issuer identification number.
Properties
Properties
string | null
required
The network identifier (
visa, amex, …), matching card.networks entries
and saved card payment methods. Null when the vault did not record the
network.number | null
required
The card’s expiry month, 1 to 12. Null when the vault did not record it.
number | null
required
The card’s four-digit expiry year. Null when the vault did not record it.
string | null
required
The issuer identification number, also called the BIN: the card’s leading six
or eight digits, which identify the issuing bank. Null when the processor did
not report it.
string | null
required
The card’s last four digits, when captured.
string
required
Buyer-facing instrument name — “Visa •••• 4242” when the card surfaced, else
the method’s own name (“Klarna”).
object
required
The standard icon set: square and card shapes, each in light and dark colorways.
Properties
Properties
object
required
The credit-card-proportioned tile (48x30).
Properties
Properties
object
required
object
required
The square tile (32x32).
Properties
Properties
object
required
number | null
required
Installment methods only: how many payments the charge splits into. Data, not
copy — compose and translate the label client-side.
string
required
The payment method type identifier, e.g.
card, klarna, apple_pay.string | null
required
The saved payment method, prefixed
payt_, ready to charge with Create
Payment. Null until the setup has succeeded.string | null
required
The kind of instrument being saved, for example
card or us_bank_account.string | null
required
Where the buyer lands after completing an off-site step, or
null to leave
them where they are.string
required
How far the setup has got. A 201 or 200 means we answered, not that the method was saved — always branch on this.
requires_action — the buyer has a step outstanding; hand client_secret to the elements or poll Retrieve setup status. processing — the processor is deciding. succeeded — the method is saved, and only this one means saved. canceled — abandoned or refused; see last_setup_error.Available options: processing, succeeded, canceled, requires_actionboolean
required
True when the buyer completed 3D Secure while saving this payment method.
string
required
When the setup intent was last updated, as an ISO 8601 timestamp.
object | null
required
The user saving the payment method. Null when the buyer is a company rather than a user.
Properties
Properties
string
required
User ID, prefixed
user_.string | null
required
Display name.
object
required
Avatar wrapper; its
url is always present, using a generated placeholder when the user set no picture.Properties
Properties
string
required
Avatar image URL. Always present — a generated placeholder when the user set no picture.
string
required
Public username.
SetupIntent

