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
Zobrazeno 6 z 74 chyb
Platforma
Vyvolává je samotná platforma (přihlášení, limity požadavků, infrastruktura).6 chyb- INTERNAL_ACCOUNT_CAN_NOT_DETERMINATE_USER_IPCan not determinate user IP.Failed to detect user IP address from HTTP request.HTTP 500
- 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_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_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_ORDER_INSERT_FAILEDInserting order failedAn error occurred while inserting the order into the database. Failed to create order after multiple attemptsHTTP 500
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