Lower the tier, cancel at the end of the period or switch to the spending cap right away; raising the tier, resuming a plan that is set to end or switching to top-ups from the card returns a confirmUrl for a person to confirm

Changes the plan without charging the card. These apply immediately, because they never raise what can be charged: lowering tier (it takes effect from the next period, nextTier shows it), cancelAtPeriodEnd: true (no further charge, the credit stays usable until periodEnd) and exhaustionMode: "cap" (also turns auto top-up off). Raising tier, cancelAtPeriodEnd: false on a plan that is set to end (resuming it) and exhaustionMode: "topup" do NOT apply: the call returns 409 subscription_confirmation_required and nothing in the request changes. The error body carries confirmUrl, a link to the portal page where a person signed in to the account confirms the change; the link is valid for 24 hours and works once. Send changes that need confirmation one per request. A request that changes nothing (resuming a plan that is not set to end, topup while top-ups already run) succeeds without a confirmation.

patch/v1/subscription

Request

  • Base URL: https://volai.cz
  • URL: https://volai.cz/v1/subscription
  • Auth: HTTP bearer

Request body

tier'490' | '990' | '1990'

Tier to switch to from the next period (nextTier shows it); the current period and its credit stay as they are. A lower tier applies immediately; a higher one returns 409 subscription_confirmation_required with a confirmUrl for a person to confirm.

cancelAtPeriodEndboolean

true cancels at the end of the period: no further charge and the credit stays usable until periodEnd. false resumes a plan that is set to end and returns 409 subscription_confirmation_required with a confirmUrl; it changes nothing when the plan is not set to end.

exhaustionMode'topup' | 'cap'

cap switches to the spending cap right away and turns auto top-up off. topup (buying credit with the saved card once the monthly credit is used up) returns 409 subscription_confirmation_required with a confirmUrl unless top-ups already run.

Response

Updated monthly plan

Changes

No recorded changes to this operation across all 1 revision of this API.