Skip to main content
POST
Create a checkout session

Authorizations

Authorization
string
header
required

Provider secret API key (sk_live_… / sk_test_…) supplied as a Bearer token.

Body

application/json
customerRef
string
required
Required string length: 1 - 20
planRef
string
Maximum string length: 20
productRef
string
Required string length: 1 - 20
purpose
enum<string>
Available options:
credit_topup
returnUrl
string

Response

Checkout session created

checkoutUrl
string
required

Full checkout URL based on backend configuration (ready to redirect customer)

Example:

"https://solvapay.com/customer/checkout?id=e3f1c2d4b6a89f001122334455667788"

sessionId
string
required

Checkout session ID/token

Example:

"e3f1c2d4b6a89f001122334455667788"