curl --request POST \
--url https://api.example.com/v1/ui/checkout-sessions \
--header 'Content-Type: application/json' \
--data '
{
"customerRef": "<string>",
"productRef": "<string>",
"planRef": "<string>",
"returnUrl": "<string>",
"purpose": "credit_topup"
}
'{
"id": "507f1f77bcf86cd799439011",
"sessionId": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
"amount": 2999,
"currency": "USD",
"status": "active",
"checkoutUrl": "https://solvapay.com/customer/checkout?id=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"
}curl --request POST \
--url https://api.example.com/v1/ui/checkout-sessions \
--header 'Content-Type: application/json' \
--data '
{
"customerRef": "<string>",
"productRef": "<string>",
"planRef": "<string>",
"returnUrl": "<string>",
"purpose": "credit_topup"
}
'{
"id": "507f1f77bcf86cd799439011",
"sessionId": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
"amount": 2999,
"currency": "USD",
"status": "active",
"checkoutUrl": "https://solvapay.com/customer/checkout?id=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"
}Checkout session created successfully
Checkout session ID
"507f1f77bcf86cd799439011"
Public session ID used in checkout URL
"a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"
Amount in cents
2999
Currency code
"USD"
Session status
"active"
Checkout URL to open the checkout page
"https://solvapay.com/customer/checkout?id=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"