Skip to main content
POST
/
v1
/
sdk
/
checkout-sessions
Create a checkout session
curl --request POST \
  --url https://api.example.com/v1/sdk/checkout-sessions \
  --header 'Content-Type: application/json' \
  --data '
{
  "customerRef": "<string>",
  "planRef": "<string>",
  "productRef": "<string>",
  "returnUrl": "<string>"
}
'
{
  "checkoutUrl": "https://solvapay.com/customer/checkout?id=e3f1c2d4b6a89f001122334455667788",
  "sessionId": "e3f1c2d4b6a89f001122334455667788"
}

Documentation Index

Fetch the complete documentation index at: https://docs.solvapay.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
customerRef
string
required
Minimum string length: 1
planRef
string
productRef
string
Minimum string length: 1
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"