ErrorsSpecific
HTTP 404Specific
BILLING_PLAN_NOT_FOUND
The Tracken Accounts app shows a person this for it:
This billing plan could not be found.
Where it comes from
These 9 operations name it:
- GETGet the billing formula cataloggetBillingFormulaCatalog
- POSTCreate a billing plancreateBillingPlan
- GETGet a billing plangetBillingPlan
- PATCHUpdate a billing planupdateBillingPlan
- DELDelete a billing plandeleteBillingPlan
- POSTApprove a billing planapproveBillingPlan
- POSTArchive a billing planarchiveBillingPlan
- POSTUnarchive a billing planunarchiveBillingPlan
- POSTCreate a billing runcreateBillingRun
404The envelope
{
"error": {
"code": "BILLING_PLAN_NOT_FOUND",
"message": "…",
"request_id": "req_01JB4Z0K3Q7V8W9X0Y1Z2A3B4C",
"doc_url": "https://developers.tracken.ee/errors/BILLING_PLAN_NOT_FOUND"
}
}Switch on
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.Handle it
tracken billing-formula-catalog get …
# exits 6 and prints the code, the message, each field problem and the request idimport { isApiError } from "@tracken/sdk";
try {
await tracken.billingFormulaCatalog.get(…);
} catch (error) {
if (!isApiError(error, "BILLING_PLAN_NOT_FOUND")) throw error;
// error.code, error.details, error.context and error.requestId are typed
}Install the SDK with npm i @tracken/sdk (0.2.0, MIT, beta), Node.js 22 or later.