billing

GET /v1/subscriptions/{subscriptionId}/term

Whether this subscription can switch to yearly billing now, and its price.

All billing endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

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

NameTypeRequiredWhat it is
subscriptionId (path)UuidYesThe live monthly subscription to move to annual billing.

Response

NameTypeRequiredWhat it is
availablebooleanYes—
reasonstring<, not_monthly, free, no_price, subscription_not_live, renewal_unpaid, billing_rail>YesEmpty when available; otherwise one stable code.
currencystringYesISO 4217 currency of every figure.
intervalstringYesThe term switched to (annual), empty when not available.
annual_price_minorintegerYes—
saving_minorintegerYesTwelve of the customer's monthly price less the annual price, never negative.
new_period_endstringYesThe date the annual term would run to.
quoteSitePlanQuoteYesWhat the switch takes today (total_minor), with the unused part credited.

Errors this endpoint can return

401 · 403 · 404 · 429