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 6 z 74 błędów
Platforma
Zgłaszane przez samą platformę (logowanie, limity żądań, infrastruktura).6 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_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
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