SUBSCRIPTION_INACTIVE
The organization's subscription is not active, so every operation is refused, reads included, except reading the current user and the organization and the data export. context.reason says why (trial_ended, not_paid, cancelled or payer_stopped, an open list) and context.export_until the last day the data can still be exported.
Typical cause
The trial ended without a plan, a payment is overdue, the subscription was cancelled, or the accounting firm that paid for it stopped. While the subscription is switched off, no request is refused this way.
Fix
- Stop retrying: the same request fails the same way.
- Export the data if it is needed, and ask an owner to reopen the subscription in the app.
Where it comes from
Any operation can answer it (HTTP 402).
Related
{
"error": {
"code": "SUBSCRIPTION_INACTIVE",
"message": "…",
"request_id": "req_01JB4Z0K3Q7V8W9X0Y1Z2A3B4C",
"doc_url": "https://developers.tracken.ee/errors/SUBSCRIPTION_INACTIVE"
}
}code, never on message, which is developer-facing English and may change. Field problems are in details, each with a JSON Pointer; the figures for your own text are in context. Quote request_id when you contact support.tracken contacts list …
# exits 13 and prints the code, the message, each field problem and the request idimport { isApiError } from "@tracken/sdk";
try {
await tracken.contacts.list(…);
} catch (error) {
if (!isApiError(error, "SUBSCRIPTION_INACTIVE")) throw error;
// Stop retrying: the same request fails the same way.
}