Step 2 -- Attach a confirmed Stripe PaymentMethod to the account
Called after client-side Stripe.js confirmation of the SetupIntent. Saves the PM to account_payment_methods and optionally links the Stripe customer. Idempotent via Idempotency-Key header.
Authorizations
API key issued per entity via Settings > Developers > API Keys.
Each key carries scopes (e.g. orders:read, products:write).
Bearer token format: Authorization: Bearer ark_live_ent_Test keys use ark_test_ent_. Both are issued per entity
via Settings > Developers > API Keys.
Headers
Client-generated unique key for idempotent POST/PATCH/DELETE operations. Alias for the Idempotency parameter. Max 255 chars. On retry with the same key, the original response is returned without re-executing the operation. Keys expire after 24 hours.
255Path Parameters
Account ID
Stripe PaymentMethod ID (e.g. pm_xyz)
Body
Response
Payment method attached
A reusable payment instrument stored on an account (card, ACH bank account, etc.).
payment_method credit_card, debit_card, ach, wire, check_on_file, store_credit ACH microdeposit-verified or card-AVS-verified.
visa, mastercard, amex, etc.
checking / savings (ACH only).

