Skip to main content
POST
cURL

Authorizations

x-api-key
string
header
required

Your Recoup API key. Learn more.

Body

application/json

Card-on-file session parameters

successUrl
string<uri>
required

The URL Stripe redirects to after the card is saved.

Example:

"https://chat.recoupable.dev?card=saved"

Response

Card-on-file session created successfully

id
string
required

The checkout session ID.

Example:

"cs_test_a1b2c3d4e5f6g7h8i9j0"

url
string<uri>
required

The hosted checkout URL. Redirect to this URL to complete Checkout.

Example:

"https://checkout.stripe.com/pay/cs_test_a1b2c3d4e5f6g7h8i9j0"