Checkout Sessions
Create a checkout session
Changed onCreates a hosted checkout session for a customer to purchase a product plan, or to top up credits (purpose: "credit_topup", which skips productRef). Returns a session ID and checkout URL for redirect.
post/v1/sdk/checkout-sessions
Request
- Base URLhttps://api.solvapay.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Checkout session created
Example response
{
"checkoutUrl": "https://solvapay.com/customer/checkout?id=e3f1c2d4b6a89f001122334455667788",
"sessionId": "e3f1c2d4b6a89f001122334455667788"
}Changes
- warning
the
request property's maxLength was set to20 - warning
the
request property's maxLength was set to20 - warning
the
request property's maxLength was set to20
- warning
- info
the endpoint scheme security
SecretKeywas added to the API - info
the endpoint scheme security
bearerwas removed from the API
- info