Skip to content

Errors and Rate Limits ​

json
{
  "success": false,
  "message": "total does not add up ...",
  "data": { "errorCode": "TOTAL_MISMATCH", "retryable": false, "retryAfterSeconds": null }
}

Branch on errorCode; message is for humans (Turkish) and may change. A missing or expired token may get a 401 without a body — fetch a new token on any 401.

HTTPerrorCodeMeaningWhat to do
401INVALID_CREDENTIALSCredentials or token invalid / expiredFetch a new token; if it persists, check the credentials
403CHANNEL_DISABLEDCredentials disabled or the restaurant is not taking ordersContact Hızlıyo
422VALIDATION_FAILEDBody could not be parsed (malformed JSON, wrong type); data.fields lists the fieldsFix the request
422EXTERNAL_ORDER_ID_REQUIREDexternalOrderId empty or longer than 64Fix the request
422INVALID_DELIVERY_TYPEdelivery.type is not delivery/pickupFix the request
422ADDRESS_REQUIREDDelivery order without address or locationFix the request
422ITEMS_REQUIREDNo itemsFix the request
422ITEM_IDENTITY_REQUIREDItem without nameFix the request
422INVALID_QUANTITYQuantity below 1Fix the request
422INVALID_PRICENegative price or unnamed optionFix the request
422TOTAL_MISMATCHTotal ≠ items + delivery − discountFix the totals
422INVALID_PAYMENTBad payment.status, or missing method for pay-at-doorFix the request
422INVALID_PHONEInvalid phone numberFix the request
422ORDER_REJECTEDThe order could not be created in HızlıyoRead message; do not retry
409DUPLICATE_ORDERSame X-Idempotency-Key with a different bodyUse a new key for a new order
409CANCEL_NOT_ALLOWEDCancel after the restaurant acceptedThe customer should call the restaurant
404ORDER_NOT_FOUNDNo such order for this restaurantCheck orderId
404CATALOG_NOT_CONFIGUREDNo catalog linkedSend items by name and price
429RATE_LIMITEDRate limit hitWait Retry-After seconds
500INTERNAL_ERROROur side failedRetry later with the same X-Idempotency-Key

When retryable is true, resend the same request with the same X-Idempotency-Key; no second order is created.

Rate limits ​

EndpointLimit
POST /token60 per hour per IP
POST /orders, POST /orders/{id}/cancel120 per minute per credential (Hızlıyo can raise it)
Reads (GET /orders/{id}, /catalog, /store/status)600 per minute per credential

Over the limit you get 429 with a Retry-After header (seconds).

Hızlıyo Vendor API v1