POST consumer-billing/change-plan
POST /api/v1/consumer-billing/change-plan
Handles a requested change to the current subscription plan.
Authenticate with a portal session token.
Request body
application/json object
expected_charge_centsintegerRange: at least 0planstring requiredpreviewbooleanpreview_idstringLength: at most 255 characters. Pattern:^[A-Za-z0-9_]+$proration_dateinteger
Generated sample
{
"expected_charge_cents": 0,
"plan": "string",
"preview": true,
"preview_id": "string",
"proration_date": 0
}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.
402 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
403 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.