billing
GET /v1/subscriptions/{subscriptionId}/term
Whether this subscription can switch to yearly billing now, and its price.
Authentication
Send an API key as a bearer token. The key must carry the billing.view permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X GET https://api.zinndigital.com/v1/subscriptions/{subscriptionId}/term \
-H "Authorization: Bearer zdk_live_…"Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
The quote behind every "Pay yearly and save" prompt (P1-086). Takes no money and writes no row. available is false with ONE reason code when the switch is not sold: not_monthly (already annual; annual back to monthly is chosen at renewal, never mid-term), free (comped, free or $0), no_price (the plan is not sold annually in the subscription's currency), subscription_not_live, renewal_unpaid (pay the renewal first) or billing_rail (billed through a PayPal agreement). When available, quote.total_minor is what the switch takes today: the annual price less the unused part of the current paid window (rounded in the customer's favour), plus tax. saving_minor is twelve of the customer's own monthly price less the annual price, never negative. new_period_end is a year from now. Integer minor units. Requires billing.view. 404 for a subscription in another tenant as well as for one that does not exist.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
subscriptionId (path) | Uuid | Yes | The live monthly subscription to move to annual billing. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
available | boolean | Yes | — |
reason | string<, not_monthly, free, no_price, subscription_not_live, renewal_unpaid, billing_rail> | Yes | Empty when available; otherwise one stable code. |
currency | string | Yes | ISO 4217 currency of every figure. |
interval | string | Yes | The term switched to (annual), empty when not available. |
annual_price_minor | integer | Yes | — |
saving_minor | integer | Yes | Twelve of the customer's monthly price less the annual price, never negative. |
new_period_end | string | Yes | The date the annual term would run to. |
quote | SitePlanQuote | Yes | What the switch takes today (total_minor), with the unused part credited. |
Errors this endpoint can return
401 · 403 · 404 · 429