EndpointsStart adding a card

Billing accounts

Start adding a card

Returns a Stripe embedded Checkout session in setup mode for this account. Cards only: Apple Pay, Google Pay and Link are not offered. The card is verified, not charged. The account becomes ACTIVE when Stripe reports the setup complete; on an ACTIVE card account the new card replaces the old one. Limited per account; an invoice account answers 409.

POST/billing_accounts/{billing_account}:startPaymentSetup
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

Optional caller-supplied idempotency key. Any non-empty key up to 64 characters is accepted. Endpoint-specific documentation describes how the key is used.

Required string length: 1 - 64

Example: "create-prod-2026-05-07"

billing_accountstringrequired

Required string length: 3 - 54

Response

application/json

PaymentSetupSession

client_secretstringrequired

Required string length: 1 - 512

ui_modeenum<string>required

Available options: embedded_page

publishable_keystringrequired

Pattern: ^pk_(live|test)_[A-Za-z0-9]+$

expires_atintegerrequired

Unix timestamp (seconds)

Required range: 0 <= x <= 9007199254740991