Reference
Cancel subscription
Ends the subscription when the period ends; the organization then moves to Free.
DELETE
bearerheader
AuthorizationBearer <token>org*stringThe plan and usage.
application/json- response
enabled*booleanWhether this server bills at all.
plan*Planunlimited when the server does not bill, as when self-hosted.
Value in
"free""launch""scale""enterprise""unlimited"name*stringstatus*|The subscription's status in Stripe.
period_start*|An ISO 8601 time.
period_end*|An ISO 8601 time.
next_plan*|The plan the subscription moves to when the period ends.
Value in
"launch""scale"nullcancel_at_period_end*booleanpast_due_since*|An ISO 8601 time.
minimum_cents*integer|nullusage_cents*integerThe usage of the period so far.
estimate_cents*integerThe usage or the minimum, whichever is more.
meters*array<>stored*indexes*files*Bytes stored by the organization's filesystems.
filesystems*features*array<>plans*array<>customer*booleanWhether the portal can be opened.
curl -X DELETE 'https://example.com/v1/orgs/string/billing/subscription'Example Response
{ "enabled": true, "plan": "free", "name": "string", "status": "string", "period_start": "string", "period_end": "string", "next_plan": "launch", "cancel_at_period_end": true, "past_due_since": "string", "minimum_cents": 0, "usage_cents": 0, "estimate_cents": 0, "meters": [ { "meter": "storage", "name": "string", "quantity": 0, "unit": "string", "price": "string", "amount_cents": 0, "limit": 0 } ], "stored": { "gb": 0, "limit_gb": 0 }, "indexes": { "count": 0, "limit": 0 }, "files": { "gb": 0, "limit_gb": 0 }, "filesystems": { "count": 0, "limit": 0 }, "features": [ "pinning" ], "plans": [ { "plan": "free", "name": "string", "minimum_cents": 0, "storage_gb": 0, "features": [ "pinning" ] } ], "customer": true}