Create Monthly Switch Portal
Changed onSwitch an annual Team subscription to monthly.
Paid annual subscribers get Stripe's confirmation UI: the server does not mutate the subscription; Stripe shows the exact unused-time credit and applies the update only after the customer explicitly confirms it.
TRIALING annual subscribers (deal-link 30-day opt-out window) are switched directly with trial_end="now": monthly has no trial by policy, so the switch ends the window and charges the first $499 immediately. The console button states the charge; error_if_incomplete keeps the subscription unchanged if the card declines.
Request
- Base URLhttps://api.codag.ai (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Changes
- breaking
added the pattern
^[A-Za-z0-9_-]+$to the request property - info
api operation id
monthly_switch_portal_api_billing_monthly_switch_portal_postremoved and replaced withcreate_monthly_switch_portal_api_billing_monthly_switch_portal_post - info
the response property
became required for the status - info
response property
portal_urllist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response200
- breaking
- breaking
the response property
became optional for the status - breaking
response property
portal_urllist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - info
api operation id
create_monthly_switch_portal_api_billing_monthly_switch_portal_postremoved and replaced withmonthly_switch_portal_api_billing_monthly_switch_portal_post - info
removed the pattern
^[A-Za-z0-9_-]+$from the request property
- breaking