Persist the payment method from a just-confirmed SetupIntent.
Call this immediately after Stripe's client-side confirmSetup resolves so the saved card is readable on the very next GET, instead of waiting on the setup_intent.succeeded webhook. The webhook remains the durable fallback; whichever lands second is a no-op.
Returns the same payload as GET .../auto-top-up/.
The caller's id is never trusted on its own: the SetupIntent is re-read from Stripe and must be tagged metadata.auto_top_up=true, carry this org's metadata.organization_id, sit on this org's Stripe customer, and be succeeded with a payment method attached.
Request
- The document declares no server URL.
- Auth: one of:
- HTTP bearer
- API key in cookie sessionid
- API key in header X-Session-Token
Headers
Required if using Cookie-based or X-Session-Token authentication methods.
Request body
Response
Changes
- ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status
- ○
- ○
endpoint added
- ○