Errors
Errors are Problem Details (RFC 9457, application/problem+json). title is a sentence you can show to a user; type is one of a fixed list; traceId lets DeliSky find the request in its logs.
| Status | type (https://api.delisky.com/problems/…) |
When |
|---|---|---|
| 400 | bad-request |
Malformed request, e.g. invalid JSON or a missing Idempotency-Key |
| 401 | unauthorized |
Missing or invalid API key |
| 403 | forbidden |
Not allowed, e.g. placing an order before DeliSky has set up your customer |
| 404 | not-found |
Unknown id, or not yours |
| 409 | conflict |
Duplicate (existingId names the existing resource) or the wrong state, e.g. canceling an order whose delivery time has passed |
| 409 | idempotency-in-progress |
A request with the same Idempotency-Key is still running; retry after Retry-After |
| 422 | validation-error |
Invalid values; errors lists the messages per field |
| 422 | idempotency-key-reused |
The key was already used for a different request |
| 429 | too-many-requests |
Rate limit reached; wait Retry-After seconds |
| 500 | internal-error |
Unexpected; no details, quote the traceId to DeliSky |
A 422 reports every problem at once, with camelCase field paths:
{
"type": "https://api.delisky.com/problems/validation-error",
"title": "One or more fields are not valid.",
"status": 422,
"errors": {
"deliveryDateTimeLocal": ["…"],
"items[0].quantity": ["…"]
}
}
A duplicate partnerReferenceId returns 409 with the id of your existing order:
{ "type": "https://api.delisky.com/problems/conflict", "status": 409, "title": "…", "existingId": 171645 }
The MCP partner tools return the same Problem Details as an error result (isError: true).