Skip to content
Billzova Developers

API reference · Orders

Cancel an order

POST/v1/orders/{id}/cancel

The customer cancels — only while the restaurant has not accepted it yet.

  • Scope orders:write
  • 30 / minute

Path parameters

idstringrequired
Order id.

Body

reasonstring ≤ 200
Optional, shown to the restaurant.

Request

curl -X POST https://api.billzova.com/v1/orders/0b8e…/cancel \
  -H "Authorization: Bearer $BILLZOVA_KEY" -H "Content-Type: application/json" -d '{"reason":"Ordered by mistake"}'

Response

200 · application/json
{ "id": "0b8e…", "object": "order", "test": false, "status": "CANCELLED", "…": "…" }

Errors

CodeHTTPMeaning
CANNOT_CANCEL409Too late to cancel.
NOT_FOUND404Not found (or not visible to this key).
SCOPE_MISSING403The key is not allowed to do that.