Chybové kódy API
Z BizKitHub Docs, reference API
Názvy a popisy kódů udržujeme v angličtině.
Všechny chyby, které může API BizKitHub vrátit. Každá odpověď nese vedle HTTP statusu stabilní
errorCode. Porovnávejte kód, ne zprávu, protože zprávy se mohou přeformulovat. Kódy z logu platformy najdete v části systémové kódy logu./
Status
Kategorie
| Popis | ||
|---|---|---|
| ObecnéObecná chyba aplikace.7 chyb | ||
| AI | The organisation has too many context notes.The shared organisation context is loaded into every AI agent session, so the number of notes is capped. The organisation reached the cap. | HTTP 429 |
| AI | The organisation context note was changed by someone else.The update sent `expectedVersion`, but the note has a newer version: another member or AI agent edited it in the meantime. Nothing was written. | HTTP 409 |
| ISSUE | The e-mail has no recipient.Nobody would receive this issue e-mail (BIZKIT-75): the author is never e-mailed their own reply, and the remaining participants have no e-mail address, muted the issue, or the organisation turned issue e-mails off. Nothing was changed. Add the customer as reporter / watcher, or save the text as an internal comment. | HTTP 422 |
| ORGANISATION | The organisation is suspended.The organisation has been suspended (frozen) by the platform operator, typically because its tariff expired or its owner requested account closure. Its data is kept intact, but API access, background processing and new file uploads are stopped until the organisation is resumed. | HTTP 423 |
| REVIEW | Review does not exist.No review with this id exists in the organisation. | HTTP 404 |
| REVIEW | The review could not be accepted.The rating must be 1 to 5, the author name is required and the text must be at most 1000 characters without spam (links, repeated characters). | HTTP 400 |
| REVIEW | You cannot write this review yet.Reviews can only be written by customers with a delivered order (for a product review, an order containing that product), at least a few days after delivery, and only once per order. Call GET /shop/review/allowance first. | HTTP 403 |
| OprávněníVolající je přihlášený, ale nemá potřebné oprávnění.2 chyby | ||
| PERMISSION | Member has no permission.The authenticated member is part of the organisation but their role does not grant access to the requested module or action. Attach the module/action as parametric context when throwing — e.g. `throw ApiError("PERMISSION_MEMBER_HAS_NO_PERMISSION", "calendar:update")`. | HTTP 403 |
| PERMISSION | Organisation member has been blocked.Your user account within the organisation has been blocked. For further information, please contact your organisation administrator. | HTTP 401 |
| PlatbyVznikají při vytváření nebo zpracování platby.1 chyba | ||
| PAYMENT | Vícenásobné pokusy o platbu se nezdařily, kontaktujte podporu.The customer has tried to initiate an online payment for the same order at least 3 times in the last 10 minutes and every attempt failed before the gateway accepted it (most commonly because the merchant gateway is in a misconfigured state, e.g. Comgate 1308/1400, the merchant account is inactive, or upstream is down). To stop the customer from busy-looping into a dead gateway, the platform short-circuits further attempts until the cool-off window expires — the previous failure log entries identify the actual root cause. | HTTP 429 |
| PlatformaVyvolává je samotná platforma (přihlášení, limity požadavků, infrastruktura).18 chyb | ||
| INTERNAL | Can not determinate user IP.Failed to detect user IP address from HTTP request. | HTTP 500 |
| INTERNAL | Account has been deleted and cannot be used or re-registered.The contact behind this account is soft-deleted (shop__contact.deleted_date IS NOT NULL). Soft-deleted contacts hold the email slot until the record is anonymised, so re-registration under the same email is blocked and any lingering session is invalidated. This is intentional so the address history stays auditable. | HTTP 410 |
| INTERNAL | Monthly AI token budget of your tariff has been used up.The organisation has consumed all AI tokens included in its tariff for the current calendar month (`limit_ai_tokens_monthly`). AI features using the shared BizKitHub key are paused until the next month. | HTTP 429 |
| INTERNAL | AI request rate limit exceeded.Each organisation member may start a limited number of AI requests (Assistant, chat, translation, content generation, newsroom) per 10 minutes and per day. The limit protects the organisation from runaway scripts and unexpected AI spend. | HTTP 429 |
| INTERNAL | Comgate merchant is configured for production but only test mode is enabled on the gateway side.BizKitHub holds the Comgate gateway instance with environment="p" (production), but a pre-flight probe against the Comgate API returned error code 1308 ("Production environment is not enabled for you, it is enabled testing environment only"). Forwarding a customer to the gateway in this state would produce a broken payment page for every order. The platform refuses to create the payment until the misconfiguration is fixed. | HTTP 503 |
| INTERNAL | Please verify your e-mail before signing in.The account exists as a pending shop__contact_register_request row that has not yet been confirmed. The caller must either enter the 6-digit code from the confirmation e-mail or click the link in it. The register row survives for 24 hours after signup; expired rows are treated as if the account never existed. | HTTP 403 |
| INTERNAL | Fio API is temporarily unavailable.The upstream Fio bank API did not return a parseable response within the timeout window. The most common causes are scheduled Fio maintenance, a token that was just rotated, or a brief network glitch between Vercel and Fio. The raw response body is appended to the error message for debugging. | HTTP 502 |
| INTERNAL | Fio API rate limit hit (one call per token every 30 s).Fio answered HTTP 409 because the same API token was already used within the last 30 seconds. Fio enforces this per token, across every client, so an earlier call from another system (or an aborted call of ours) also counts. | HTTP 429 |
| INTERNAL | Fio bank statement is malformed.A statement file received from Fio (GPC or transaction JSON) is missing required fields or breaks the expected structure (no 074 header, empty payload, unparseable transaction line). The offending row or snippet is appended to the error message. | HTTP 502 |
| INTERNAL | Fio API token is inactive.Fio refused the request with `<status>error</status>`. This almost always means the API token stored in `shop__bank` for this account has been revoked, expired, or never activated. Fio tokens must be activated manually in Fio internet banking and have a fixed validity window. | HTTP 502 |
| INTERNAL | The logo must be a PNG, JPG, WebP or SVG image.The uploaded file is not an image, or it is an SVG that could not be rendered. SVG logos are converted to PNG because most e-mail clients do not display SVG. | HTTP 415 |
| INTERNAL | Inserting order failedAn error occurred while inserting the order into the database. Failed to create order after multiple attempts | HTTP 500 |
| INTERNAL | Organisation context is requiredProvide a valid organization ID or slug. | HTTP 401 |
| INTERNAL | Organisation not found or user is not a member.The specified organisation does not exist, or the user is not a member of the organisation. | HTTP 404 |
| INTERNAL | Resource not found.A specific resource referenced by the request (a record id, slug, hash or token) does not exist in the organisation scope, has been deleted, or the caller has no permission to see it. Attach the missing identifier as parametric context — e.g. `throw ApiError("INTERNAL_RESOURCE_NOT_FOUND", "Calendar 42")`. | HTTP 404 |
| INTERNAL | Rate limit exceededYou have exceeded the rate limit for requests. Please try again later. | HTTP 429 |
| INTERNAL | User must be authorizedUser is not logged in. | HTTP 401 |
| INTERNAL | Request payload failed validation.The server-side validator rejected a field value that the typed body schema could not catch (format, length, cross-field consistency, multi-tenant ownership, etc.). The offending field and constraint should be passed as parametric context — e.g. `throw ApiError("INTERNAL_VALIDATION_FAILED", 'reserveFrom must be a relative-time string')`. | HTTP 400 |
| Veřejné APIVracejí je veřejné endpointy /api/v1 klientům s API klíčem.54 chyb | ||
| PUBLIC | Organisation API key does not exist or is broken.Parameter "apiKey" is always required. | HTTP 404 |
| PUBLIC | Organisation API key has been deleted. | HTTP 404 |
| PUBLIC | Organisation API key has been expired. | HTTP 403 |
| PUBLIC | Organisation API key is empty. Please add your API key to request query. | HTTP 401 |
| PUBLIC | Organisation API key is not active now. | HTTP 403 |
| PUBLIC | Organisation API key does not match expected format.Please use 32 char length key generated from system. | HTTP 400 |
| PUBLIC | Sample API key cannot be used.You are using a sample API key intended only for documentation and testing examples. Please replace it with a real API key generated in your organisation settings. | HTTP 404 |
| PUBLIC | API key does not have the required scope for this endpoint.The API key is valid but has scope restrictions that do not include access to this endpoint. Each API key can be limited to specific scopes (e.g. "carddav", "feed.product"). If the key has any scopes assigned, only those endpoints are accessible. | HTTP 403 |
| PUBLIC | Too many requestsThe API request limit for this API key (or organisation) has been exceeded. Requests are counted in fixed 10-minute time blocks. Each block has a maximum number of allowed requests. Once the limit is reached, the API will temporarily reject further requests until the next 10-minute block begins. This mechanism is enforced to protect platform stability and to guarantee overall service reliability and SLA for all customers in a multi-tenant environment. | HTTP 429 |
| PUBLIC | The backup file is larger than the maximum allowed size (1 TiB).A single backup can be at most 1 TiB (1 099 511 627 776 bytes). The limit is checked against `size` in `/backup/start` and against the real stored size on `/backup/complete`. | HTTP 413 |
| PUBLIC | The install command is no longer valid.An install command works once and expires 24 hours after it was created in the administration. | HTTP 410 |
| PUBLIC | The backup installer profile is not valid.The profile says what the machine backs up (`postgres`, `mysql`, `files`, `docker-volume`), the target (database name, absolute path or Docker volume), the interval (`6h`, `24h`, `7d`) and the time (`HH:MM`). | HTTP 400 |
| PUBLIC | The backup is not in a state that allows this operation.Part URLs, `complete` and `abort` only work while the backup is `uploading`. A completed, failed or aborted backup cannot be changed. Start a new backup instead. | HTTP 409 |
| PUBLIC | Backup not found.No backup with this `id` exists in the organisation behind the API key. | HTTP 404 |
| PUBLIC | The backup service is not available in the current tariff of the organisation.The BizKitHub backup service (`/api/v1/backup/*`) is an SLA service of the Enterprise tariff. Organisations on Free, Startup or Business cannot start a backup upload. Reading existing backups (`/backup/list`, `/backup/detail`, `/backup/usage`) keeps working after a downgrade. | HTTP 403 |
| PUBLIC | The uploaded parts do not form the declared file.On `/backup/complete` every part `1..partCount` must be listed exactly once with the `ETag` returned by its PUT, and the assembled object must have exactly the `size` declared in `/backup/start`. | HTTP 400 |
| PUBLIC | Calendar does not exist.Calendar does not exist, please check your calendar code and your permission. | HTTP 404 |
| PUBLIC | Calendar event does not exist.The event code does not exist in this organisation, or the customer behind `identityId` has no paid reservation of it and is not its attendee. Both cases answer 404 so foreign events are not disclosed. | HTTP 404 |
| PUBLIC | Calendar is archived.The calendar has been archived (BIZKIT-109): it keeps its history but accepts no new events or reservations. Restore it in the admin (Calendars → show archived → Restore) to use it again. | HTTP 409 |
| PUBLIC | Category does not exist.Category does not exist, please check your slug. | HTTP 404 |
| PUBLIC | Unknown country code.The `country` query parameter must be a valid ISO 3166-1 alpha-2 code (e.g. "CZ", "SK", "DE"). The endpoint uses it to filter posts by geo-availability rules (per-country + per-continent). When omitted, no geo filter is applied — callers that do not need the filter can drop the parameter entirely to preserve the legacy behaviour. | HTTP 400 |
| PUBLIC | Cron job code is empty or invalid.The `code` sent to `/cron-run/start` contains no usable characters after normalization. Codes keep letters, digits and `. _ : -`, up to 64 characters. | HTTP 400 |
| PUBLIC | Too many distinct cron jobs in this organisation.Every new `code` creates a cron job. The organisation reached the maximum number of distinct jobs, usually because a variable part (an id, a date) was put into the job code. | HTTP 429 |
| PUBLIC | Cron payload is too large.A log batch exceeds 100 entries. Oversized `meta`, `report` and log `context` (over 16 KB of JSON) are not rejected but stored as a truncation marker. | HTTP 422 |
| PUBLIC | Cron run is already finished.The run was already finished, so it accepts no more log entries, heartbeats or finish calls. | HTTP 409 |
| PUBLIC | Cron run expired and was closed as timed out.No call arrived within the run expiration, so the run was closed as `timeout` and a critical log entry was written. Every log or heartbeat call extends the expiration. | HTTP 409 |
| PUBLIC | Too many cron runs are open at the same time.The organisation holds the maximum number of simultaneously running cron runs. Runs that are never finished stay open until their expiration. | HTTP 429 |
| PUBLIC | Cron run reached the maximum number of log entries.A single run can hold at most 10 000 log entries. Further entries are rejected. | HTTP 422 |
| PUBLIC | Cron run does not exist.No cron run with this id exists in the organisation behind the API key. | HTTP 404 |
| PUBLIC | Cron monitor request quota of the API key is exhausted.Requests to `/api/v1/cron-run/*` have their own fixed hourly quota per API key (separate from the quota of other endpoints). Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` headers. | HTTP 429 |
| PUBLIC | Recorded cron run has invalid timestamps.`startedAt` and `finishedAt` must be ISO-8601 times, `startedAt` must not be after `finishedAt`, neither may lie more than 5 minutes in the future and `startedAt` may be at most 7 days old. | HTTP 400 |
| PUBLIC | Cron schedule is not a valid cron expression or time zone.`schedule` must be a standard 5-field cron expression (or 6 fields with seconds), e.g. `*/5 * * * *`, and `scheduleTimezone` an IANA time zone, e.g. `Europe/Prague`. In `/cron-run/start` and `/cron-run/record` an invalid schedule does not reject the run: it is ignored and reported in `warnings`. | HTTP 400 |
| PUBLIC | Customer can not assignee itself. | HTTP 400 |
| PUBLIC | You have no permission to load this customer detail.Wrong cuRefNo or your profile is not manager of this customer. | HTTP 404 |
| PUBLIC | Send either htmlBody (with subject) or templateCode.`POST /emailer/send` needs exactly one source of content: a ready `htmlBody` with `subject`, or `templateCode` of the organisation's own template written in admin. | HTTP 400 |
| PUBLIC | Order does not exist.No order with this `orderHash` exists in the organisation behind the API key. | HTTP 404 |
| PUBLIC | E-mail template does not exist or is inactive.No active template of type "Custom e-mail (sent via API)" with this code (template variant) exists in the organisation behind the API key. | HTTP 404 |
| PUBLIC | Template uses variables that were not sent.The subject or body of the template contains `{{ variable }}` placeholders with no value. Nothing was sent, so the recipient never gets a half-filled e-mail. The error context lists the missing names. | HTTP 422 |
| PUBLIC | Variable name is not valid.Variable names must start with a letter and contain only letters and digits (max 64 characters). | HTTP 400 |
| PUBLIC | Form does not exist or is not active.The form referenced by code or slug does not exist in this organisation, or its `active` flag is false and it has been hidden from the public API. Inactive forms intentionally return 404 (not 403) so the existence of internal-only forms is not disclosed. | HTTP 404 |
| PUBLIC | Contact identity is missing. Pass the `identityId` returned by `/customer/login`. | HTTP 401 |
| PUBLIC | Contact identity is not valid (unknown, deleted, unauthorized or expired). Log the customer in again.The `identityId` does not resolve to an active login session of a contact in the organisation behind the API key. The same answer is returned for every failure reason so identities cannot be probed. | HTTP 401 |
| PUBLIC | Lock does not exist.The TTLock referenced by id/code is not registered for this organisation, has been deleted, or your API key has no permission to control it. | HTTP 404 |
| PUBLIC | Lock is not active.The lock exists and belongs to this organisation but is currently marked inactive (e.g. offline, deactivated by an admin, or its TTLock pairing was revoked). Inactive locks reject all passcode and unlock operations until reactivated. | HTTP 409 |
| PUBLIC | Order does not exist.The order hash does not match any order of the organisation behind the API key. | HTTP 404 |
| PUBLIC | Payment does not exist.The payment id, gateway id or hash referenced by the request does not match any payment record in the current organisation. Payments are not soft-deleted, so this almost always means the identifier is wrong or refers to a payment in a different organisation. | HTTP 404 |
| PUBLIC | Store transaction is already recorded on another order.An in-app purchase transaction id can pay exactly one order. The same id was already recorded on a different order. | HTTP 409 |
| PUBLIC | Parent comment does not exist.A new post comment was submitted with a `parentExternalId` that does not match any existing comment on the same post. The most common cause is that the parent comment was deleted between the time the reply UI was rendered and the time the user pressed submit. | HTTP 404 |
| PUBLIC | Product does not exist.Product does not exist, please check your slug. | HTTP 404 |
| PUBLIC | Product is out of stock.The order asks for more pieces than the warehouse has available (stock minus active reservations). Only warehouses that do not allow negative stock are checked. The order was not created. | HTTP 409 |
| PUBLIC | Request body could not be parsed.The body is not valid JSON (or does not match its `Content-Type`). | HTTP 400 |
| PUBLIC | Request does not match the endpoint schema.The body, query or path parameters failed schema validation. The response lists the offending fields in `errors` (`path` + `message`) and the request part in `on` (`body`, `query`, `params`). The schema of every endpoint is in the Swagger documentation. | HTTP 422 |
| PUBLIC | The organisation Disk is full. New files are not accepted until data is removed or a higher Disk plan is active.Every organisation has one Disk for all its files (uploads, attachments, images, backups). Without a Disk plan it is capped at 100 GB; with a plan the cap is the included capacity plus 20 % (Basic 120 GB, Pro 1.2 TB, Enterprise 6 TB). A new upload is rejected when the stored data plus the uploads in progress plus the new file would exceed the cap. Reading and downloading existing data always works. | HTTP 507 |
| PUBLIC | Tag use invalid format.Tag key and value must be non-empty strings with a maximum length of 200 characters each. | HTTP 400 |
Formát chybové odpovědi
Všechny chyby mají stejnou strukturu JSON. hint je přítomen, pokud má kód popis, a documentationUrl vede přímo na stránku kódu v této dokumentaci.
application/json · AI_CONTEXT_NOTE_LIMIT_EXCEEDED
{
"state": "error",
"code": 429,
"message": "The organisation has too many context notes.",
"errorCode": "AI_CONTEXT_NOTE_LIMIT_EXCEEDED",
"hint": "The shared organisation context is loaded into every AI agent session, so the number of notes is capped. The organisation reached the cap.",
"documentationUrl": "https://docs.bizkithub.com/errors/AI_CONTEXT_NOTE_LIMIT_EXCEEDED"
}Třídy HTTP statusů
4xx · Chyba klienta
HTTP 4xx. Požadavek je potřeba před opakováním opravit.
- 400
- Bad request: neplatný nebo chybějící vstup
- 401
- Unauthorized: chybějící nebo neplatný API klíč či relace
- 403
- Forbidden: přihlášený, ale bez oprávnění
- 404
- Not found: záznam neexistuje
- 429
- Too many requests: zpomalte a zkuste to později
5xx · Chyba serveru
HTTP 5xx. Selhala platforma. Zopakujte požadavek s odstupem.
- 500
- Internal server error: vnitřní chyba serveru
- 502
- Bad gateway: selhal navazující poskytovatel
- 503
- Service unavailable: dočasný výpadek nebo údržba
- 504
- Gateway timeout: navazující poskytovatel neodpověděl včas