post
https://www.pelcro.com/api/v1/sdk/customer/setupIntent
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Create a Stripe SetupIntent for the authenticated customer and return its client_secret. Your front end passes that secret to Stripe.js to confirm and save a card off-session — including any SCA / 3D Secure step — without charging it. The customer is taken from the JWT, so no customer fields are needed in the request.
Example:
curl --request POST \
--url 'https://www.pelcro.com/api/v1/sdk/customer/setupIntent?site_id=1232' \
--header 'Authorization: Bearer <JWT>' \
--header 'Accept: application/json'Important Behaviors
- Requires the account to have an active Stripe connected account; otherwise the endpoint returns
422. payment_method_typesreflects the gateway's enabled capabilities —cardalways, plusbacs_debitorus_bank_accountwhen those are enabled on the account.- The response is a Stripe session-shaped object; for card setup the relevant fields are
client_secretandstatus(most other fields arenull).
