Errors
unknown_endpoint
This API has no such endpoint.
HTTP 404invalid_request_error
Why it happens
- The path has a spelling mistake, or the path has no
/v1prefix. All endpoints are below/v1. - The HTTP method is wrong. A
GETto an endpoint that acceptsPOSTgives this code. This API never returns405. - You called an internal path. Only
/v1is public.
Univooz returns this code before it checks the API key. So this error tells you nothing about your key.
How to fix it
Compare your path and method with this list. The public API has nine endpoints:
| Method | Path |
|---|---|
POST | /v1/orders |
GET | /v1/orders |
GET | /v1/orders/{reference} |
PATCH | /v1/orders/{reference} |
POST | /v1/orders/{reference}/cancel |
POST | /v1/orders/quote |
POST | /v1/addresses/validate |
GET | /v1/branches |
POST | /v1/test/orders/{reference}/advance |
Example response
{
"error": {
"type": "invalid_request_error",
"code": "unknown_endpoint",
"message": "Unknown endpoint.",
"doc_url": "https://docs.univooz.com/errors/unknown_endpoint",
"request_id": "req_01KZCCF8ZH4M7XQ2VB9RSTNPKD"
}
}