billing
GET /v1/subscriptions/{subscriptionId}/close
What closing this plan now would mean.
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
| Name | Type | Required | What it is |
|---|---|---|---|
subscriptionId (path) | Uuid | Yes | The plan to close now. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
subscription_id | Uuid | Yes | UUIDv7 identifier — sortable by creation time. |
status | SubscriptionStatus | Yes | A subscription's lifecycle state. |
closable | boolean | Yes | False when the plan has already ended. |
paid_until | string | Yes | The end of the period already paid for, given up by closing now. |
sites | integer | Yes | Sites on this plan that go offline at once. |
money_back | object | Yes | — |
Errors this endpoint can return
401 · 403 · 404 · 429