Kody błędów API
Z BizKitHub Docs, dokumentacja API
Nazwy i opisy kodów prowadzimy po angielsku.
Wszystkie błędy, które może zwrócić API BizKitHub. Każda odpowiedź zawiera obok statusu HTTP stały
errorCode. Porównuj kod, nie komunikat, bo komunikaty mogą się zmieniać. Kody z logu platformy znajdziesz w sekcji systemowe kody logu./
Status
Kategorie
Wyświetlono 18 z 74 błędów
Platforma
Zgłaszane przez samą platformę (logowanie, limity żądań, infrastruktura).18 błędów- INTERNAL_ACCOUNT_CAN_NOT_DETERMINATE_USER_IPCan not determinate user IP.Failed to detect user IP address from HTTP request.HTTP 500
- INTERNAL_ACCOUNT_HAS_BEEN_DELETEDAccount 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_AI_BUDGET_EXCEEDEDMonthly 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_RATE_LIMITEDAI 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_PRODUCTION_NOT_ENABLEDComgate 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_EMAIL_NOT_VERIFIEDPlease 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_UNAVAILABLEFio 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_RATE_LIMITEDFio 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_STATEMENT_INVALIDFio 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_TOKEN_INACTIVEFio 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_LOGO_UNSUPPORTED_TYPEThe 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_ORDER_INSERT_FAILEDInserting order failedAn error occurred while inserting the order into the database. Failed to create order after multiple attemptsHTTP 500
- INTERNAL_ORGANISATION_IS_REQUIREDOrganisation context is requiredProvide a valid organization ID or slug.HTTP 401
- INTERNAL_ORGANISATION_NOT_FOUND_OR_USER_NOT_MEMBEROrganisation 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_FOUNDResource 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_TOO_MANY_REQUESTSRate limit exceededYou have exceeded the rate limit for requests. Please try again later.HTTP 429
- INTERNAL_USER_MUST_BE_AUTHORIZEDUser must be authorizedUser is not logged in.HTTP 401
- INTERNAL_VALIDATION_FAILEDRequest 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
Format odpowiedzi z błędem
Każdy błąd ma tę samą strukturę JSON. hint pojawia się, gdy kod ma opis, a documentationUrl prowadzi prosto do strony kodu w tej dokumentacji.
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"
}Klasy statusów HTTP
4xx · Błąd klienta
HTTP 4xx. Przed ponowieniem popraw żądanie.
- 400
- Bad request: nieprawidłowe lub brakujące dane
- 401
- Unauthorized: brak lub nieprawidłowy klucz API albo sesja
- 403
- Forbidden: zalogowany, ale bez uprawnień
- 404
- Not found: zasób nie istnieje
- 429
- Too many requests: zwolnij i spróbuj później
5xx · Błąd serwera
HTTP 5xx. Awaria platformy. Ponów po chwili.
- 500
- Internal server error: wewnętrzny błąd serwera
- 502
- Bad gateway: zawiódł dostawca zewnętrzny
- 503
- Service unavailable: chwilowa awaria lub prace serwisowe
- 504
- Gateway timeout: dostawca zewnętrzny nie odpowiedział na czas