billing

GET /v1/subscriptions/{subscriptionId}/close

What closing this plan now would mean.

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.payment.manage 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}/close \
  -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

A read that changes nothing: how many sites on the plan would go offline at once, the paid-until date that is given up, and the 30-day money-back offer when it applies (owner answer A260: Zinn® credit, once per customer per product line). Requires billing.payment.manage; another tenant's plan is 404.

Parameters

NameTypeRequiredWhat it is
subscriptionId (path)UuidYesThe plan to close now.

Response

NameTypeRequiredWhat it is
subscription_idUuidYesUUIDv7 identifier — sortable by creation time.
statusSubscriptionStatusYesA subscription's lifecycle state.
closablebooleanYesFalse when the plan has already ended.
paid_untilstringYesThe end of the period already paid for, given up by closing now.
sitesintegerYesSites on this plan that go offline at once.
money_backobjectYes—

Errors this endpoint can return

401 · 403 · 404 · 429