> For the complete documentation index, see [llms.txt](https://docs.ecommerce.seb.ee/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ecommerce.seb.ee/seb-docs-draft/seb-docs-public-lt/integracija/prekybininko-api/atsakymu-apdorojimas/klaidu-kodai.md).

# Klaidų kodai

Kai užklausa negali būti sėkmingai apdorota, API grąžina tinkamą HTTP būsenos kodą kartu su klaidos kodu, aprašančiu konkrečią nesėkmės priežastį. Ši lentelė pateikia galimus klaidų atsakymus ir jų reikšmes.

| HTTP būsena                 | Klaidos kodas                                                                                                                           | Aprašymas                                                                                                                                    |
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `400` Bloga užklausa        | `FORMAT_ERROR`                                                                                                                          | Užklausoje yra neteisingų, sugadintų arba trūkstamų privalomų duomenų.                                                                       |
| `400` Bloga užklausa        | `AMOUNT_EXCEEDED`                                                                                                                       | Prašoma grąžinimo suma viršija galimą grąžinti sumą.                                                                                         |
| `401` Neautorizuota         | `TOKEN_UNKNOWN`, `TOKEN_EXPIRED`                                                                                                        | Autentifikavimas nepavyko, nes prieigos raktas trūksta, yra neteisingas arba pasibaigęs.                                                     |
| `403` Draudžiama            | `OPERATION_NOT_ALLOWED`                                                                                                                 | Prašomas veiksmas neleidžiamas dėl verslo taisyklių arba paskyros apribojimų.                                                                |
| `403` Draudžiama            | `PAYMENT_METHOD_INVALID`                                                                                                                | Pasirinktas mokėjimo metodas šiai parduotuvei neprieinamas                                                                                   |
| `404` Nerasta               | `RESOURCE_UNKNOWN`, `PAYMENT_UNKNOWN`, `SESSION_UNKNOWN`, `GATEWAY_TOKEN_UNKNOWN`, `REFUND_UNKNOWN`, `MERCHANT_UNKNOWN`, `SHOP_UNKNOWN` | Prašomas išteklius neegzistuoja.                                                                                                             |
| `409` Konfliktas            | `STATUS_INVALID`                                                                                                                        | Prašomas veiksmas neleidžiamas dabartinėje ištekliaus būsenoje. Pavyzdžiui, bandant įskaityti mokėjimą, kuris buvo grąžintas arba atšauktas. |
| `429` Per daug užklausų     | `OPERATION_NOT_ALLOWED`                                                                                                                 | Viršyta užklausų dažnio riba. Bandykite užklausą dar kartą vėliau.                                                                           |
| `503` Paslauga nepasiekiama | `INTERNAL_SERVER_ERROR`                                                                                                                 | Užklausos nepavyko apdoroti dėl laikino paslaugos sutrikimo arba vidinės sistemos klaidos.                                                   |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ecommerce.seb.ee/seb-docs-draft/seb-docs-public-lt/integracija/prekybininko-api/atsakymu-apdorojimas/klaidu-kodai.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
