curl --request POST \
--url https://api.example.com/v1/sdk/checkout-sessions \
--header 'Content-Type: application/json' \
--data '
{
"customerRef": "<string>",
"productRef": "<string>",
"planRef": "<string>",
"returnUrl": "<string>",
"purpose": "credit_topup"
}
'{
"sessionId": "e3f1c2d4b6a89f001122334455667788",
"checkoutUrl": "https://solvapay.com/customer/checkout?id=e3f1c2d4b6a89f001122334455667788"
}Creates a hosted checkout session for a customer to purchase a product plan. Returns a session ID and checkout URL for redirect.
curl --request POST \
--url https://api.example.com/v1/sdk/checkout-sessions \
--header 'Content-Type: application/json' \
--data '
{
"customerRef": "<string>",
"productRef": "<string>",
"planRef": "<string>",
"returnUrl": "<string>",
"purpose": "credit_topup"
}
'{
"sessionId": "e3f1c2d4b6a89f001122334455667788",
"checkoutUrl": "https://solvapay.com/customer/checkout?id=e3f1c2d4b6a89f001122334455667788"
}Checkout session created