POST consumer-billing/checkout
POST /api/v1/consumer-billing/checkout
Creates a checkout session for a selected subscription plan.
Authenticate with a portal session token.
Request body
application/json object
cancel_urlstring (uri) requiredLength: at most 2048 charactersplanstring requiredsuccess_urlstring (uri) requiredLength: at most 2048 characters
Generated sample
{
"cancel_url": "https://example.com",
"plan": "string",
"success_url": "https://example.com"
}Responses
200 Successful response.
application/json object
Any keys are accepted.
401 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
409 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
422 The request failed validation.
application/json object
Any keys are accepted.
429 The route throttle limit was exceeded.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string
502 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.