invalid_id_type
- HTTP status
- 400 Bad Request
- Returned by
- API keys; Webhooks
What it means
The id in the path has the wrong prefix for this endpoint.
Typical causes
- For example a
hook_…id sent to an API keys endpoint that expectskey_….
How to fix it
- Use the id of the right object type. Every id starts with its type, see Requests and responses.
Messages
English text, as sent with Accept-Language: en. With ru or uz the API sends the translation.
- Expected a delivery id (dlv_…).
- Expected a webhook id (hook_…).
- Expected an API key id (key_…).
Example response
Response
HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=utf-8
X-Request-Id: req_4f2a9c1e0b7d3a55
{
"error": {
"code": "invalid_id_type",
"message": "Expected a delivery id (dlv_…).",
"request_id": "req_4f2a9c1e0b7d3a55",
"docs_url": "https://developers.kweko.uz/errors/invalid_id_type"
}
}