Wszystkie błędy zwracane przez bramkę płatniczą, ich przyczyny - oraz mechanizmy, których API nie posiada.
Kształt odpowiedzi błędu
Bramka zwraca błędy w jednym, stałym formacie:
{ "status": 401, "message": "Invalid API key"}
Pole
Opis
status
Kod statusu HTTP, powielony w treści odpowiedzi
message
Opis przeznaczony dla człowieka
Nie opieraj logiki na treści message. Rozgałęziaj wyłącznie po statusie HTTP. Komunikaty bywają zmieniane bez zapowiedzi, a część z nich zawiera wewnętrzne nazwy klas z backendu - na przykład PaySubProductEntity not found. Nie ma osobnego, maszynowego kodu błędu.
Dwa wyjątki od powyższego kształtu warto znać:Niepoprawny JSON w żądaniu - błąd rozpoznawany, zanim dane trafią do logiki biznesowej:
partnerId w body nie jest partnerem, do którego należy klucz
Sprawdź partnerId - nadaje go Paymove; nie zgaduj innych wartości
403
Product <uuid> does not belong to you
productId należy do innego partnera
Sprawdź, czy productId pasuje do użytego klucza
404
PayProductEntity not found
Produkt o podanym productId nie istnieje
Zweryfikuj productId
404
WebhookEntity not found
Webhook o podanym webhookId nie istnieje
Zweryfikuj webhookId
404
PaySubProductEntity not found
Płatność o podanym identyfikatorze nie istnieje
Sprawdź, czy używasz właściwego identyfikatora
500
Something went wrong
Błąd wewnętrzny albo brak externalId w żądaniu, albo niepoprawny format UUID w ścieżce
Najpierw sprawdź kompletność body i poprawność productId - dopiero potem ponów wywołanie
Czego w tym API nie ma
Ta sekcja jest równie ważna jak tabela powyżej. Poniższych mechanizmów bramka nie posiada - pisanie kodu, który je obsługuje, jest zbędne i wprowadza w błąd:
Mechanizm
Stan
Limity liczby zapytań i status 429
Nie istnieją - bramka nie ogranicza tempa wywołań
Status 422
Nie występuje. Błędy walidacji zwracane są jako 400 lub 500
Nagłówek Idempotency-Key
Nie istnieje. Rolę klucza idempotencji pełni externalId
Wersjonowanie API
Brak. Nie ma prefiksu /v1/ ani nagłówka wersji
Nagłówki Deprecation / Sunset
Nie są wysyłane
Maszynowy kod błędu (code, type)
Nie istnieje. Dostępne są wyłącznie status i message
Błędy, które wyglądają jak sukces
Najgroźniejsza kategoria: API zwraca 200, choć żądanie było błędne. Sprawdź te przypadki, zanim uznasz integrację za działającą.
Kwota z częścią dziesiętną jest po cichu obcinana."price": 12.99 zostanie zapisane jako 12 grosze, a odpowiedź to 200. Przeliczaj przez Math.round(kwota * 100).
Nieznane pola są ignorowane. Wysłanie amount zamiast price, currency czy returnUrl na najwyższym poziomie zamiast w details nie zgłosi błędu - płatność powstanie z niekompletnymi danymi.
Powtórzony externalId zwraca starą płatność. Odpowiedź to 200 z redirectUrl utworzonym wcześniej, a nowa kwota jest odrzucana. Kwotę zmieniaj przez PATCH /api/pay/product/{productId}/subproduct/{externalId}.
Brak externalId kończy się kodem 500, a nie 400. Zanim potraktujesz 500 jako błąd przejściowy i ponowisz wywołanie, sprawdź, czy Twoje body zawiera externalId.
Brak price albo details.returnUrl nie zgłasza żadnego błędu. Dostajesz 200 i działający redirectUrl - do płatności bez kwoty albo bez powrotu do sklepu. Kompletność tych pól musisz sprawdzić po swojej stronie, przed wysłaniem żądania.
Niepoprawny format UUID w ścieżce też zwraca 500. Literówka w productId nie da czytelnego 400 - dostaniesz ogólne Something went wrong.
Obsługa błędów w kodzie
const response = await fetch(url, options);if (!response.ok) { const error = await response.json(); // { status, message } switch (response.status) { case 401: case 403: // Problem z konfiguracją - ponawianie nie pomoże throw new PaymentConfigError(error.message); case 404: throw new PaymentNotFoundError(error.message); case 400: // Błędne żądanie - napraw dane, nie ponawiaj throw new PaymentRequestError(error.message); case 500: // Najpierw zweryfikuj kompletność body, dopiero potem ponów throw new PaymentServerError(error.message); default: throw new Error(`Paymove ${response.status}: ${error.message}`); }}
Ponawianie ma sens wyłącznie przy 500 i błędach sieciowych, i tylko po upewnieniu się, że żądanie było kompletne. Kody 400, 401, 403 i 404 oznaczają problem po Twojej stronie - ponowienie zwróci ten sam wynik.
Błędy SDK
SDK dla Node.js opakowuje powyższe odpowiedzi w typowane wyjątki:
Klasa
Kiedy
PaymoveValidationError
Argument odrzucony przez SDK jeszcze przed wysłaniem żądania. Pole field wskazuje parametr
PaymoveApiError
API zwróciło status inny niż 2xx. Pola statusCode i responseBody zawierają oryginalną odpowiedź
PaymoveNetworkError
Żądanie nie doszło do skutku. Pole cause zawiera pierwotny wyjątek
Walidacja amount w SDK sprawdza wyłącznie, czy wartość jest liczbą większą od zera. Kwota 49.99 przejdzie tę kontrolę, a API obetnie ją do 49 groszy.
Co dalej
REST API
Poprawna struktura żądania i pełne odpowiedzi.
Weryfikacja podpisu
Obsługa błędów po stronie odbioru webhooka.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Paymove Docs","colors":{"primary":"#4c6ff7","light":"#7d96ff","dark":"#1a1a1a"},"logo":{"light":"https://mintcdn.com/paymove/PpHxa3yf6uDsNUt4/logo/paymove-light.svg?fit=max\u0026auto=format\u0026n=PpHxa3yf6uDsNUt4\u0026q=85\u0026s=437bbda97025f27e0159c5fab9430847","dark":"https://mintcdn.com/paymove/PpHxa3yf6uDsNUt4/logo/paymove-dark.svg?fit=max\u0026auto=format\u0026n=PpHxa3yf6uDsNUt4\u0026q=85\u0026s=2e199e7de0f631677532b82f2e07439b"},"favicon":"https://mintcdn.com/paymove/TSMvwO93mxKXot0v/favicon.svg?fit=max\u0026auto=format\u0026n=TSMvwO93mxKXot0v\u0026q=85\u0026s=56f05f5663da48b496cd5ba34b306022","api":{"playground":{"display":"simple"},"mdx":{"auth":{"method":"key","name":"X-API-KEY"},"server":"https://gateway-api.sandbox.paymove.io"}},"appearance":{"default":"system"},"background":{"color":{"light":"#ffffff","dark":"#000000"}},"navbar":{"links":[{"icon":"play","href":"https://demo.checkout.paymove.io/","label":"Demo"}],"primary":{"type":"button","label":"Panel klienta","href":"https://panel.paymove.io"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/paymove"}},"search":{"prompt":"Szukaj lub zadaj pytanie..."},"seo":{"indexing":"all"},"fonts":{"family":"Google Sans Flex"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"one-dark-pro","dark":"one-dark-pro"}},"latex":false},"errors":{"404":{"redirect":false,"title":"Nie znaleźliśmy tej strony","description":"Adres mógł się zmienić. Spróbuj wyszukiwarki albo zacznij od jednej z popularnych stron."}},"contextual":{"options":["copy","view","claude","chatgpt","cursor","vscode","windsurf","download-spec",{"title":"Agent skill","description":"Wklej ten URL swojemu agentowi AI, aby wdrożył integrację","icon":"bot","href":"https://docs.paymove.io/skill.md"}],"display":"header"},"markdown":{"schema":true,"instructions":["## paymove integration rules for AI agents","","These rules are verified against the live API. Follow them exactly.","","1. Amounts are INTEGERS in grosze (minor units). `1000` means 10.00 PLN. PLN is the only supported currency and there is no currency field in the API.","2. A float `price` (e.g. `12.99`) is SILENTLY TRUNCATED to 12 grosze and still returns HTTP 200. Always send an integer: `Math.round(pln * 100)`.","3. Authenticate with the `X-API-KEY` header. Never `Authorization: Bearer`. Sandbox keys start with `sk_test_`, production keys with `sk_live_`.","4. Server-side only. A call from a merchant page is rejected. Never put the key in frontend code.","5. Unknown request fields are silently ignored and still return HTTP 200 - a wrong body shape looks like success. Match the documented shape exactly.","6. A missing `externalId` returns HTTP 500 `Something went wrong`, not 400. A missing `price` or `details.returnUrl` returns HTTP 200 and a usable `redirectUrl` - no error at all. Validate the body yourself before sending it.","7. Always verify the `X-Paymove-Signature` header on incoming webhooks before trusting them: https://docs.paymove.io/en/webhook-signature.md","8. Errors are `{\"status\": \u003cint>, \"message\": \"\u003ctext>\"}`. Branch on the HTTP status only - never on `message`, which is unstable and leaks internal class names.","9. There is no rate limiting, no HTTP 429, no HTTP 422, no `Idempotency-Key` header and no API versioning. Do not write code that handles them.","10. Re-POSTing an `externalId` that already exists returns HTTP 200 with the ORIGINAL `redirectUrl` and silently discards EVERY field you send - the new price, description and details are all ignored. Use `PATCH /api/pay/product/{productId}/subproduct/{externalId}` to change a price.","11. Webhooks fire only on `COMPLETED` by default. Registering a webhook requires both `retries` and `expectedCode` - omitting either returns HTTP 500, and `retries: 0` means no retry at all. Delivery counts as successful when the HTTP status equals `expectedCode` - the response body is never inspected.","12. Never fulfil an order on the `returnUrl` redirect. The checkout does not redirect there by itself: the customer has to click \"back to shop\", and inside the widget modal that redirect never happens. Fulfil only in the webhook handler, after verifying the signature.","13. Do not pin a version of `@paymove-io/sdk` - install the latest.","14. If the merchant has no `productId` yet, do not stop at a placeholder: ask for the API key, the `partnerId` and the shop name, propose defaults for `location` and `timezone` (`Europe/Warsaw`), offer the optional fields once, then create the product for them with `POST /api/product/pay` and take `productId` from `id` in the response. Do the same for the webhook: register it, then assign it to the product. Guided procedure: https://docs.paymove.io/skill.md (Steps 1-2).","15. Full documentation index: https://docs.paymove.io/llms.txt · Copy-paste quickstart: https://docs.paymove.io/en/quickstart.md · Agent skill: https://docs.paymove.io/skill.md"]},"navigation":{"languages":[{"language":"pl","default":true,"banner":{"content":"[Rozpocznij integrację z AI](/ai-agents)","dismissible":true,"color":{"light":"#4c6ff7","dark":"#101638"}},"href":"introduction"},{"language":"en","banner":{"content":"[Start integrating with AI](/en/ai-agents)","dismissible":true,"color":{"light":"#4c6ff7","dark":"#101638"}},"href":"en/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"paymove","hasAudioNarration":false,"actualSubdomain":"paymove","customDomains":["docs.paymove.io"],"gitSource":{"type":"gitlab","owner":"paymove/utils","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"projectId":79743263,"mountPath":"","label":""},"entitlements":{},"buildId":"6aed9dd16048afba019df1a2","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"Referencja API","count":33},{"language":"pl","tag":"Przewodniki","count":31},{"language":"en","tag":"Guides","count":28},{"language":"default","tag":"DocPay","count":26},{"language":"pl","tag":"Integracje","count":20},{"language":"en","tag":"Integrations","count":17},{"language":"pl","tag":"Integracja","count":11},{"language":"pl","tag":"Bramka płatnicza","count":9},{"language":"en","tag":"Payment Gateway","count":9},{"language":"en","tag":"Integration","count":9},{"language":"default","tag":"Formularze","count":8},{"language":"default","tag":"Bramka płatnicza","count":7},{"language":"default","tag":"Webhooki","count":7},{"language":"default","tag":"Personalizacja UI","count":5},{"language":"pl","tag":"Przycisk płatności (widget)","count":4},{"language":"pl","tag":"Tutoriale","count":4},{"language":"en","tag":"Payment button (widget)","count":4},{"language":"en","tag":"Tutorials","count":4},{"language":"default","tag":"Cennik","count":4},{"language":"pl","tag":"Wprowadzenie","count":3},{"language":"pl","tag":"AI Payments","count":3},{"language":"en","tag":"Introduction","count":3},{"language":"default","tag":"Płatności","count":3},{"language":"pl","tag":"Pomoc","count":2},{"language":"pl","tag":"Zasoby","count":2},{"language":"en","tag":"Help","count":2},{"language":"en","tag":"Resources","count":2},{"language":"en","tag":"DocPay","count":2},{"language":"default","tag":"Produkt","count":2},{"language":"default","tag":"Zwroty","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","href":"/_mintlify/custom/paymove/9d551cf9009adf46/style.css"}]}
{"page":{"pagePath":"errors","slug":"/errors","pageMetadata":{"title":"Kody błędów","description":"Wszystkie błędy zwracane przez bramkę płatniczą, ich przyczyny - oraz mechanizmy, których API nie posiada.","icon":"triangle-alert","href":"/errors"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Wszystkie błędy zwracane przez bramkę płatniczą, ich przyczyny - oraz mechanizmy, których API nie posiada.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Heading,Info,Table,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`kształt-odpowiedzi-błędu`,children:`Kształt odpowiedzi błędu`}),`\n`,_jsx(_components.p,{children:`Bramka zwraca błędy w jednym, stałym formacie:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes one-dark-pro one-dark-pro`,style:{backgroundColor:`#282c34`,\"--shiki-dark-bg\":`#282c34`,color:`#abb2bf`,\"--shiki-dark\":`#abb2bf`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`: `}),_jsx(_components.span,{style:{color:`#D19A66`,\"--shiki-dark\":`#D19A66`},children:`401`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`: `}),_jsx(_components.span,{style:{color:`#98C379`,\"--shiki-dark\":`#98C379`},children:`\"Invalid API key\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Pole`}),_jsx(_components.th,{children:`Opis`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:`Kod statusu HTTP, powielony w treści odpowiedzi`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message`})}),_jsx(_components.td,{children:`Opis przeznaczony dla człowieka`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Nie opieraj logiki na treści `,_jsx(_components.code,{children:`message`}),`.`]}),` Rozgałęziaj wyłącznie po statusie HTTP. Komunikaty bywają zmieniane bez zapowiedzi, a część z nich zawiera wewnętrzne nazwy klas z backendu - na przykład `,_jsx(_components.code,{children:`PaySubProductEntity not found`}),`. Nie ma osobnego, maszynowego kodu błędu.`]})}),`\n`,_jsx(_components.p,{children:`Dwa wyjątki od powyższego kształtu warto znać:`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Niepoprawny JSON w żądaniu`}),` - błąd rozpoznawany, zanim dane trafią do logiki biznesowej:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes one-dark-pro one-dark-pro`,style:{backgroundColor:`#282c34`,\"--shiki-dark-bg\":`#282c34`,color:`#abb2bf`,\"--shiki-dark\":`#abb2bf`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`: `}),_jsx(_components.span,{style:{color:`#D19A66`,\"--shiki-dark\":`#D19A66`},children:`400`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`: `}),_jsx(_components.span,{style:{color:`#98C379`,\"--shiki-dark\":`#98C379`},children:`\"Malformed JSON request. Please check your request body.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Nieoczekiwany błąd po stronie Paymove`}),` - zawsze z tym samym, ogólnym komunikatem:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes one-dark-pro one-dark-pro`,style:{backgroundColor:`#282c34`,\"--shiki-dark-bg\":`#282c34`,color:`#abb2bf`,\"--shiki-dark\":`#abb2bf`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`: `}),_jsx(_components.span,{style:{color:`#D19A66`,\"--shiki-dark\":`#D19A66`},children:`500`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`: `}),_jsx(_components.span,{style:{color:`#98C379`,\"--shiki-dark\":`#98C379`},children:`\"Something went wrong\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`tabela-błędów`,children:`Tabela błędów`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`message`})}),_jsx(_components.th,{children:`Przyczyna`}),_jsx(_components.th,{children:`Co zrobić`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Malformed JSON request. Please check your request body.`})}),_jsx(_components.td,{children:`Body nie jest poprawnym JSON-em albo pole wyliczeniowe ma nieznaną wartość`}),_jsx(_components.td,{children:`Sprawdź składnię i typy pól`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Bank account not found for this partner`})}),_jsx(_components.td,{children:`Konto rozliczeniowe partnera nie jest skonfigurowane`}),_jsx(_components.td,{children:`Skontaktuj się z Paymove`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Missing credentials`})}),_jsxs(_components.td,{children:[`Brak nagłówka `,_jsx(_components.code,{children:`X-API-KEY`})]}),_jsx(_components.td,{children:`Dodaj nagłówek`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Invalid API key`})}),_jsx(_components.td,{children:`Klucz nie został rozpoznany, wygasł albo został odwołany`}),_jsxs(_components.td,{children:[`Sprawdź, czy używasz klucza właściwego dla środowiska: `,_jsx(_components.code,{children:`sk_test_`}),` w sandboxie, `,_jsx(_components.code,{children:`sk_live_`}),` na produkcji. Nowy klucz wygenerujesz w `,_jsx(_components.a,{href:`https://panel.paymove.io`,children:`Panelu`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Missing access levels: [PARTNER_WRITE, CREATE_RESOURCES]`})}),_jsx(_components.td,{children:`Klucz nie ma uprawnienia do zapisu - dotyczy wywołań konfiguracyjnych, np. tworzenia produktu`}),_jsxs(_components.td,{children:[`Wygeneruj w `,_jsx(_components.a,{href:`https://panel.paymove.io`,children:`Panelu`}),` klucz z uprawnieniem do zapisu`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Access denied`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`partnerId`}),` w body nie jest partnerem, do którego należy klucz`]}),_jsxs(_components.td,{children:[`Sprawdź `,_jsx(_components.code,{children:`partnerId`}),` - nadaje go Paymove; nie zgaduj innych wartości`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Product \u003cuuid> does not belong to you`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`productId`}),` należy do innego partnera`]}),_jsxs(_components.td,{children:[`Sprawdź, czy `,_jsx(_components.code,{children:`productId`}),` pasuje do użytego klucza`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PayProductEntity not found`})}),_jsxs(_components.td,{children:[`Produkt o podanym `,_jsx(_components.code,{children:`productId`}),` nie istnieje`]}),_jsxs(_components.td,{children:[`Zweryfikuj `,_jsx(_components.code,{children:`productId`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`WebhookEntity not found`})}),_jsxs(_components.td,{children:[`Webhook o podanym `,_jsx(_components.code,{children:`webhookId`}),` nie istnieje`]}),_jsxs(_components.td,{children:[`Zweryfikuj `,_jsx(_components.code,{children:`webhookId`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PaySubProductEntity not found`})}),_jsx(_components.td,{children:`Płatność o podanym identyfikatorze nie istnieje`}),_jsx(_components.td,{children:`Sprawdź, czy używasz właściwego identyfikatora`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Something went wrong`})}),_jsxs(_components.td,{children:[`Błąd wewnętrzny `,_jsxs(_components.strong,{children:[`albo brak `,_jsx(_components.code,{children:`externalId`}),` w żądaniu`]}),`, `,_jsx(_components.strong,{children:`albo niepoprawny format UUID w ścieżce`})]}),_jsxs(_components.td,{children:[`Najpierw sprawdź kompletność body i poprawność `,_jsx(_components.code,{children:`productId`}),` - dopiero potem ponów wywołanie`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`czego-w-tym-api-nie-ma`,children:`Czego w tym API nie ma`}),`\n`,_jsxs(_components.p,{children:[`Ta sekcja jest równie ważna jak tabela powyżej. Poniższych mechanizmów bramka `,_jsx(_components.strong,{children:`nie posiada`}),` - pisanie kodu, który je obsługuje, jest zbędne i wprowadza w błąd:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Mechanizm`}),_jsx(_components.th,{children:`Stan`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Limity liczby zapytań i status `,_jsx(_components.code,{children:`429`})]}),_jsx(_components.td,{children:`Nie istnieją - bramka nie ogranicza tempa wywołań`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Status `,_jsx(_components.code,{children:`422`})]}),_jsxs(_components.td,{children:[`Nie występuje. Błędy walidacji zwracane są jako `,_jsx(_components.code,{children:`400`}),` lub `,_jsx(_components.code,{children:`500`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Nagłówek `,_jsx(_components.code,{children:`Idempotency-Key`})]}),_jsxs(_components.td,{children:[`Nie istnieje. Rolę klucza idempotencji pełni `,_jsx(_components.code,{children:`externalId`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Wersjonowanie API`}),_jsxs(_components.td,{children:[`Brak. Nie ma prefiksu `,_jsx(_components.code,{children:`/v1/`}),` ani nagłówka wersji`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Nagłówki `,_jsx(_components.code,{children:`Deprecation`}),` / `,_jsx(_components.code,{children:`Sunset`})]}),_jsx(_components.td,{children:`Nie są wysyłane`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Maszynowy kod błędu (`,_jsx(_components.code,{children:`code`}),`, `,_jsx(_components.code,{children:`type`}),`)`]}),_jsxs(_components.td,{children:[`Nie istnieje. Dostępne są wyłącznie `,_jsx(_components.code,{children:`status`}),` i `,_jsx(_components.code,{children:`message`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`błędy-które-wyglądają-jak-sukces`,children:`Błędy, które wyglądają jak sukces`}),`\n`,_jsxs(_components.p,{children:[`Najgroźniejsza kategoria: API zwraca `,_jsx(_components.code,{children:`200`}),`, choć żądanie było błędne. Sprawdź te przypadki, zanim uznasz integrację za działającą.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Kwota z częścią dziesiętną jest po cichu obcinana.`}),` `,_jsx(_components.code,{children:`\"price\": 12.99`}),` zostanie zapisane jako `,_jsx(_components.code,{children:`12`}),` grosze, a odpowiedź to `,_jsx(_components.code,{children:`200`}),`. Przeliczaj przez `,_jsx(_components.code,{children:`Math.round(kwota * 100)`}),`.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Nieznane pola są ignorowane.`}),` Wysłanie `,_jsx(_components.code,{children:`amount`}),` zamiast `,_jsx(_components.code,{children:`price`}),`, `,_jsx(_components.code,{children:`currency`}),` czy `,_jsx(_components.code,{children:`returnUrl`}),` na najwyższym poziomie zamiast w `,_jsx(_components.code,{children:`details`}),` nie zgłosi błędu - płatność powstanie z niekompletnymi danymi.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Powtórzony `,_jsx(_components.code,{children:`externalId`}),` zwraca starą płatność.`]}),` Odpowiedź to `,_jsx(_components.code,{children:`200`}),` z `,_jsx(_components.code,{children:`redirectUrl`}),` utworzonym wcześniej, a nowa kwota jest odrzucana. Kwotę zmieniaj przez `,_jsx(_components.code,{children:`PATCH /api/pay/product/{productId}/subproduct/{externalId}`}),`.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Brak `,_jsx(_components.code,{children:`externalId`}),` kończy się kodem `,_jsx(_components.code,{children:`500`}),`, a nie `,_jsx(_components.code,{children:`400`}),`.`]}),` Zanim potraktujesz `,_jsx(_components.code,{children:`500`}),` jako błąd przejściowy i ponowisz wywołanie, sprawdź, czy Twoje body zawiera `,_jsx(_components.code,{children:`externalId`}),`.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Brak `,_jsx(_components.code,{children:`price`}),` albo `,_jsx(_components.code,{children:`details.returnUrl`}),` nie zgłasza żadnego błędu.`]}),` Dostajesz `,_jsx(_components.code,{children:`200`}),` i działający `,_jsx(_components.code,{children:`redirectUrl`}),` - do płatności bez kwoty albo bez powrotu do sklepu. Kompletność tych pól musisz sprawdzić po swojej stronie, przed wysłaniem żądania.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Niepoprawny format UUID w ścieżce też zwraca `,_jsx(_components.code,{children:`500`}),`.`]}),` Literówka w `,_jsx(_components.code,{children:`productId`}),` nie da czytelnego `,_jsx(_components.code,{children:`400`}),` - dostaniesz ogólne `,_jsx(_components.code,{children:`Something went wrong`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`obsługa-błędów-w-kodzie`,children:`Obsługa błędów w kodzie`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`22`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes one-dark-pro one-dark-pro`,style:{backgroundColor:`#282c34`,\"--shiki-dark-bg\":`#282c34`,color:`#abb2bf`,\"--shiki-dark\":`#abb2bf`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:`const`}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:` response`}),_jsx(_components.span,{style:{color:`#56B6C2`,\"--shiki-dark\":`#56B6C2`},children:` =`}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` await`}),_jsx(_components.span,{style:{color:`#61AFEF`,\"--shiki-dark\":`#61AFEF`},children:` fetch`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`(`}),_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:`url`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`, `}),_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:`options`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:`if`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:` (`}),_jsx(_components.span,{style:{color:`#56B6C2`,\"--shiki-dark\":`#56B6C2`},children:`!`}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:`response`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`.`}),_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:`ok`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` const`}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:` error`}),_jsx(_components.span,{style:{color:`#56B6C2`,\"--shiki-dark\":`#56B6C2`},children:` =`}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` await`}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:` response`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`.`}),_jsx(_components.span,{style:{color:`#61AFEF`,\"--shiki-dark\":`#61AFEF`},children:`json`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`(); `}),_jsx(_components.span,{style:{color:`#7F848E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#7F848E`,\"--shiki-dark-font-style\":`italic`},children:`// { status, message }`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` switch`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:` (`}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:`response`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`.`}),_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:`status`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` case`}),_jsx(_components.span,{style:{color:`#D19A66`,\"--shiki-dark\":`#D19A66`},children:` 401`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` case`}),_jsx(_components.span,{style:{color:`#D19A66`,\"--shiki-dark\":`#D19A66`},children:` 403`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#7F848E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#7F848E`,\"--shiki-dark-font-style\":`italic`},children:` // Problem z konfiguracją - ponawianie nie pomoże`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` throw`}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` new`}),_jsx(_components.span,{style:{color:`#61AFEF`,\"--shiki-dark\":`#61AFEF`},children:` PaymentConfigError`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`(`}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:`error`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`.`}),_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:`message`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` case`}),_jsx(_components.span,{style:{color:`#D19A66`,\"--shiki-dark\":`#D19A66`},children:` 404`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` throw`}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` new`}),_jsx(_components.span,{style:{color:`#61AFEF`,\"--shiki-dark\":`#61AFEF`},children:` PaymentNotFoundError`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`(`}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:`error`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`.`}),_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:`message`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` case`}),_jsx(_components.span,{style:{color:`#D19A66`,\"--shiki-dark\":`#D19A66`},children:` 400`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#7F848E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#7F848E`,\"--shiki-dark-font-style\":`italic`},children:` // Błędne żądanie - napraw dane, nie ponawiaj`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` throw`}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` new`}),_jsx(_components.span,{style:{color:`#61AFEF`,\"--shiki-dark\":`#61AFEF`},children:` PaymentRequestError`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`(`}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:`error`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`.`}),_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:`message`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` case`}),_jsx(_components.span,{style:{color:`#D19A66`,\"--shiki-dark\":`#D19A66`},children:` 500`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#7F848E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#7F848E`,\"--shiki-dark-font-style\":`italic`},children:` // Najpierw zweryfikuj kompletność body, dopiero potem ponów`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` throw`}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` new`}),_jsx(_components.span,{style:{color:`#61AFEF`,\"--shiki-dark\":`#61AFEF`},children:` PaymentServerError`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`(`}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:`error`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`.`}),_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:`message`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` default`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` throw`}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` new`}),_jsx(_components.span,{style:{color:`#61AFEF`,\"--shiki-dark\":`#61AFEF`},children:` Error`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`(`}),_jsx(_components.span,{style:{color:`#98C379`,\"--shiki-dark\":`#98C379`},children:\"`Paymove \"}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:\"${\"}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:`response`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`.`}),_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:`status`}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:`}`}),_jsx(_components.span,{style:{color:`#98C379`,\"--shiki-dark\":`#98C379`},children:`: `}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:\"${\"}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:`error`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`.`}),_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:`message`}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:`}`}),_jsx(_components.span,{style:{color:`#98C379`,\"--shiki-dark\":`#98C379`},children:\"`\"}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Ponawianie ma sens wyłącznie przy `,_jsx(_components.code,{children:`500`}),` i błędach sieciowych, i tylko po upewnieniu się, że żądanie było kompletne. Kody `,_jsx(_components.code,{children:`400`}),`, `,_jsx(_components.code,{children:`401`}),`, `,_jsx(_components.code,{children:`403`}),` i `,_jsx(_components.code,{children:`404`}),` oznaczają problem po Twojej stronie - ponowienie zwróci ten sam wynik.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`błędy-sdk`,children:`Błędy SDK`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/sdk/javascript`,children:`SDK dla Node.js`}),` opakowuje powyższe odpowiedzi w typowane wyjątki:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Klasa`}),_jsx(_components.th,{children:`Kiedy`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PaymoveValidationError`})}),_jsxs(_components.td,{children:[`Argument odrzucony przez SDK jeszcze przed wysłaniem żądania. Pole `,_jsx(_components.code,{children:`field`}),` wskazuje parametr`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PaymoveApiError`})}),_jsxs(_components.td,{children:[`API zwróciło status inny niż 2xx. Pola `,_jsx(_components.code,{children:`statusCode`}),` i `,_jsx(_components.code,{children:`responseBody`}),` zawierają oryginalną odpowiedź`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PaymoveNetworkError`})}),_jsxs(_components.td,{children:[`Żądanie nie doszło do skutku. Pole `,_jsx(_components.code,{children:`cause`}),` zawiera pierwotny wyjątek`]})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Walidacja `,_jsx(_components.code,{children:`amount`}),` w SDK sprawdza wyłącznie, czy wartość jest liczbą większą od zera. Kwota `,_jsx(_components.code,{children:`49.99`}),` przejdzie tę kontrolę, a API obetnie ją do 49 groszy.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`co-dalej`,children:`Co dalej`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`REST API`,icon:`code`,href:`/rest-api`,children:_jsx(_components.p,{children:`Poprawna struktura żądania i pełne odpowiedzi.`})}),_jsx(Card,{title:`Weryfikacja podpisu`,icon:`shield-check`,href:`/webhook-signature`,children:_jsx(_components.p,{children:`Obsługa błędów po stronie odbioru webhooka.`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"one-dark-pro","dark":"one-dark-pro"}},"config":{},"pageMetadata":{"title":"Kody błędów","description":"Wszystkie błędy zwracane przez bramkę płatniczą, ich przyczyny - oraz mechanizmy, których API nie posiada.","icon":"triangle-alert","href":"/errors"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Kształt odpowiedzi błędu","slug":"kształt-odpowiedzi-błędu","depth":2,"children":[]},{"title":"Tabela błędów","slug":"tabela-błędów","depth":2,"children":[]},{"title":"Czego w tym API nie ma","slug":"czego-w-tym-api-nie-ma","depth":2,"children":[]},{"title":"Błędy, które wyglądają jak sukces","slug":"błędy-które-wyglądają-jak-sukces","depth":2,"children":[]},{"title":"Obsługa błędów w kodzie","slug":"obsługa-błędów-w-kodzie","depth":2,"children":[]},{"title":"Błędy SDK","slug":"błędy-sdk","depth":2,"children":[]},{"title":"Co dalej","slug":"co-dalej","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/paymove/14045507321b65c9/custom.js"],"subdomain":"paymove","siteName":"Paymove Docs","title":"Kody błędów - Paymove Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pl":{"href":"/errors","matchLevel":0},"en":{"href":"/en/errors","matchLevel":1}}},"lastModified":"2026-09-04T07:32:06.456Z","originalFileLocation":"errors.mdx","locale":"pl"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Wszystkie błędy zwracane przez bramkę płatniczą, ich przyczyny - oraz mechanizmy, których API nie posiada.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Paymove Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/paymove/NUkdi2wV0O8khn02/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/paymove/NUkdi2wV0O8khn02/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/paymove/NUkdi2wV0O8khn02/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/paymove/NUkdi2wV0O8khn02/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/paymove/NUkdi2wV0O8khn02/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/paymove/NUkdi2wV0O8khn02/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/paymove/NUkdi2wV0O8khn02/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/paymove/NUkdi2wV0O8khn02/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/paymove/NUkdi2wV0O8khn02/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Kody błędów - Paymove Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Wszystkie błędy zwracane przez bramkę płatniczą, ich przyczyny - oraz mechanizmy, których API nie posiada.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Paymove Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.paymove.io/errors\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://paymove.mintlify.site/_mintlify/api/og/v2?division=Integracja\u0026amp;title=Kody+b%C5%82%C4%99d%C3%B3w\u0026amp;description=Wszystkie+b%C5%82%C4%99dy+zwracane+przez+bramk%C4%99+p%C5%82atnicz%C4%85%2C+ich+przyczyny+-+oraz+mechanizmy%2C+kt%C3%B3rych+API+nie+posiada.\u0026amp;theme=069188de9af8068fc7b6f145\u0026amp;signature=fa46069f0fe6e0b4682fb303fcbbfb10bb145a1ea0d5aba2407e28822991db59\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Kody błędów - Paymove Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Wszystkie błędy zwracane przez bramkę płatniczą, ich przyczyny - oraz mechanizmy, których API nie posiada.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://paymove.mintlify.site/_mintlify/api/og/v2?division=Integracja\u0026amp;title=Kody+b%C5%82%C4%99d%C3%B3w\u0026amp;description=Wszystkie+b%C5%82%C4%99dy+zwracane+przez+bramk%C4%99+p%C5%82atnicz%C4%85%2C+ich+przyczyny+-+oraz+mechanizmy%2C+kt%C3%B3rych+API+nie+posiada.\u0026amp;theme=069188de9af8068fc7b6f145\u0026amp;signature=fa46069f0fe6e0b4682fb303fcbbfb10bb145a1ea0d5aba2407e28822991db59\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/paymove/NUkdi2wV0O8khn02/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Paymove Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4c6ff7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.paymove.io/errors\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/errors.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pl\" href=\"https://docs.paymove.io/errors\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.paymove.io/en/errors\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.paymove.io/errors\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.paymove.io/#organization\",\"name\":\"Paymove Docs\",\"url\":\"https://docs.paymove.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/paymove/PpHxa3yf6uDsNUt4/logo/paymove-light.svg?fit=max\u0026auto=format\u0026n=PpHxa3yf6uDsNUt4\u0026q=85\u0026s=437bbda97025f27e0159c5fab9430847\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.paymove.io#website\",\"name\":\"Paymove Docs\",\"url\":\"https://docs.paymove.io\",\"publisher\":{\"@id\":\"https://docs.paymove.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.paymove.io/errors#webpage\",\"url\":\"https://docs.paymove.io/errors\",\"name\":\"Kody błędów\",\"description\":\"Wszystkie błędy zwracane przez bramkę płatniczą, ich przyczyny - oraz mechanizmy, których API nie posiada.\",\"dateModified\":\"2026-09-04T07:32:06.456Z\",\"isPartOf\":{\"@id\":\"https://docs.paymove.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.paymove.io/errors#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.paymove.io/errors#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Integracje\",\"item\":\"https://docs.paymove.io/products/payment-gateway\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bramka płatnicza\",\"item\":\"https://docs.paymove.io/products/payment-gateway\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Integracja\",\"item\":\"https://docs.paymove.io/webhooks\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Kody błędów\",\"item\":\"https://docs.paymove.io/errors\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.paymove.io/errors#article\",\"headline\":\"Kody błędów\",\"name\":\"Kody błędów\",\"description\":\"Wszystkie błędy zwracane przez bramkę płatniczą, ich przyczyny - oraz mechanizmy, których API nie posiada.\",\"url\":\"https://docs.paymove.io/errors\",\"mainEntityOfPage\":{\"@id\":\"https://docs.paymove.io/errors#webpage\"},\"dateModified\":\"2026-09-04T07:32:06.456Z\",\"publisher\":{\"@id\":\"https://docs.paymove.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.paymove.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Paymove Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Paymove Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/errors.md","siteName":"Paymove Docs","nav":{"global":null,"languages":[{"language":"pl","default":true,"banner":{"content":"[Rozpocznij integrację z AI](/ai-agents)","dismissible":true,"color":{"light":"#4c6ff7","dark":"#101638"}},"tabs":[{"tab":"Przewodniki","groups":[{"group":"Wprowadzenie","pages":[{"title":"Start","icon":"house","mode":"center","href":"/introduction"},{"title":"Quickstart","icon":"rocket","href":"/quickstart"},{"title":"Metody płatności","icon":"wallet","hidden":true,"href":"/payment-methods"}]},{"group":"Integracje","pages":[{"group":"Bramka płatnicza","icon":"credit-card","pages":[{"title":"Start","icon":"circle-play","href":"/products/payment-gateway"},{"group":"Integracja","icon":"plug","pages":[{"title":"Konfiguracja","icon":"webhook","href":"/webhooks"},{"title":"SDK","icon":"box","href":"/sdk/javascript"},{"title":"Widget przeglądarkowy","icon":"app-window","href":"/sdk/widget"},{"title":"REST API","icon":"code","href":"/rest-api"},{"title":"Weryfikacja podpisu webhooka","icon":"shield-check","href":"/webhook-signature"},{"title":"Statusy płatności","icon":"list-checks","href":"/payment-status"},{"title":"Zwroty","description":"Zwrot płatności przez API: dostępność funkcji, endpoint, statusy zwrotu, lista zwrotów i ograniczenia.","icon":"undo-2","href":"/refunds"},{"title":"Kody błędów","icon":"triangle-alert","href":"/errors"}]}]},{"group":"DocPay","icon":"receipt-text","pages":[{"title":"Start","description":"DocPay - płatności za pojedyncze dokumenty: wezwania do zapłaty, bilety i faktury, z kodem QR.","icon":"circle-play","href":"/products/docpay"},{"group":"Integracja","icon":"plug","pages":[{"title":"REST API","icon":"code","href":"/products/docpay/rest-api"}]}]},{"group":"Link płatności","icon":"link","pages":[{"title":"Start","icon":"circle-play","href":"/products/payment-link"},{"title":"Integracja","icon":"plug","href":"/products/payment-link/integration"}]},{"group":"Przycisk płatności (widget)","icon":"mouse-pointer-click","pages":[{"title":"Start","icon":"circle-play","href":"/app-widget"},{"title":"Konfiguracja","icon":"sliders-horizontal","href":"/app-widget/configuration"},{"title":"Sterowanie widgetem","icon":"code","href":"/app-widget/javascript-api"},{"title":"Aktywacja Apple Pay","icon":"apple","href":"/app-widget/apple-pay"}]},{"group":"AI Payments","icon":"bot","pages":[{"title":"Start","icon":"circle-play","href":"/products/ai-payments"},{"group":"Integracja","icon":"plug","pages":[{"title":"MCP","icon":"bot","href":"/products/ai-payments/mcp"},{"title":"ElevenLabs","icon":"mic","href":"/products/ai-payments/elevenlabs"}]}]}]},{"group":"Tutoriale","pages":[{"title":"Bramka płatnicza: podstawowa integracja","icon":"rocket","href":"/products/payment-gateway/tutorial"},{"title":"Bramka płatnicza: webhooki","icon":"radio-tower","href":"/products/payment-gateway/tutorial-webhook"},{"title":"DocPay: podstawowa integracja","icon":"qr-code","href":"/products/docpay/tutorial"},{"title":"DocPay: webhooki","icon":"bell","href":"/products/docpay/tutorial-webhook"}]},{"group":"Pomoc","pages":[{"title":"Integracja z agentami AI","icon":"bot","href":"/ai-agents"},{"title":"Wsparcie","icon":"headset","href":"/support"}]},{"group":"Zasoby","hidden":true,"pages":[{"title":"Branding","href":"/branding"},{"title":"QR kody","href":"/qr-codes"}]}]},{"tab":"Referencja API","pages":[{"title":"Referencja API","href":"/api-reference/płatności/utwórz-płatność"}]},{"tab":"Zmiany","pages":[{"title":"Zmiany","href":"/changelog"}]}]},{"language":"en","banner":{"content":"[Start integrating with AI](/en/ai-agents)","dismissible":true,"color":{"light":"#4c6ff7","dark":"#101638"}},"pages":[{"title":"en","href":"/en/errors"}]}]},"basePath":"","title":"Kody błędów - Paymove Docs","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["10e4515597"],"chunks":["BannerMarkdown-BWCD8Ylf.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}