v20

latestOpenAPI 3.0.0raw.githubusercontent.com2026-07-214885191.3 KB
Checkout Sessions

Create a checkout session

Creates a hosted checkout session for a customer to purchase a product plan. Returns a session ID and checkout URL for redirect.

post/v1/sdk/checkout-sessions

Request body

customerRefstring required
planRefstring
productRefstring
purpose'credit_topup'
returnUrlstring

Response

Checkout session created

checkoutUrlstring required

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

sessionIdstring required

Checkout session ID/token

Example response

{
  "checkoutUrl": "https://solvapay.com/customer/checkout?id=e3f1c2d4b6a89f001122334455667788",
  "sessionId": "e3f1c2d4b6a89f001122334455667788"
}