> 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-et/integratsioon/kaupmehe-api/vastuste-kasitlemine/veakoodid.md).

# Veakoodid

Kui päringut ei saa edukalt töödelda, tagastab API sobiva HTTP olekukoodi koos veakoodiga, mis kirjeldab tõrke konkreetset põhjust. Järgmine tabel loetleb võimalikud veast vastused ja nende tähendused.

| HTTP olek                   | Veakood                                                                                                                                 | Kirjeldus                                                                                                                                              |
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `400` Vigane päring         | `FORMAT_ERROR`                                                                                                                          | Päring sisaldab vigaseid, valesti vormindatud või puuduvaid nõutud andmeid.                                                                            |
| `400` Vigane päring         | `AMOUNT_EXCEEDED`                                                                                                                       | Taotletud tagasimakse summa ületab saadaolevat tagastatavat summat.                                                                                    |
| `401` Autoriseerimata       | `TOKEN_UNKNOWN`, `TOKEN_EXPIRED`                                                                                                        | Autentimine ebaõnnestus, kuna juurdepääsuluba puudub, on vigane või aegunud.                                                                           |
| `403` Keelatud              | `OPERATION_NOT_ALLOWED`                                                                                                                 | Taotletud toiming ei ole ärireeglite või konto piirangute tõttu lubatud.                                                                               |
| `403` Keelatud              | `PAYMENT_METHOD_INVALID`                                                                                                                | Valitud makseviis ei ole poe jaoks saadaval.                                                                                                           |
| `404` Ei leitud             | `RESOURCE_UNKNOWN`, `PAYMENT_UNKNOWN`, `SESSION_UNKNOWN`, `GATEWAY_TOKEN_UNKNOWN`, `REFUND_UNKNOWN`, `MERCHANT_UNKNOWN`, `SHOP_UNKNOWN` | Taotletud ressurssi ei ole olemas.                                                                                                                     |
| `409` Konflikt              | `STATUS_INVALID`                                                                                                                        | Taotletud toiming ei ole ressursi praeguses olekus lubatud. Näiteks püütakse autoriseeritud makset kanda, kuigi see on juba tagastatud või tühistatud. |
| `429` Liiga palju päringuid | `OPERATION_NOT_ALLOWED`                                                                                                                 | Päringute kiirusepiirang on ületatud. Proovige päringut hiljem uuesti.                                                                                 |
| `503` Teenus pole saadaval  | `INTERNAL_SERVER_ERROR`                                                                                                                 | Päringut ei saanud töödelda ajutise teenusekatkestuse või sisemise süsteemivea tõttu.                                                                  |


---

# 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-et/integratsioon/kaupmehe-api/vastuste-kasitlemine/veakoodid.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.
