Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.foodsave.kz/llms.txt

Use this file to discover all available pages before exploring further.

Order API

Base path: /api/v1/orders

Overview

Create and manage customer orders. Creation is idempotent when Idempotency-Key is supplied.
The create endpoint rejects duplicate payloads for 24 hours when the same idempotency key is reused.

POST /api/v1/orders

Create a new order.
curl --request POST \
  --url https://api.foodsave.kz/api/v1/orders \
  -H 'Authorization: Bearer $USER_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: uuid-1234' \
  -d '{"items":[{"menuItemId":"m-1","qty":2}],"totalAmount":1250,"partnerId":"p-432","address":"Тестовая 1"}'
{
  "orderId": "o-1001",
  "status": "ACCEPTED",
  "estimatedReadyAt": "2026-05-10T13:20:00Z"
}
orderId
string
status
string
estimatedReadyAt
string

Errors

CodeMeaningHow to fix
400VALIDATION_ERRORCheck item ids and totalAmount
401UNAUTHORIZEDProvide valid customer token
409DUPLICATEDuplicate idempotency key — change key

GET /api/v1/orders/{id}

Retrieve a single order by id.
{ "orderId": "o-1001", "status": "ACCEPTED" }