cURL
curl --request POST \ --url https://api.zenflow.com.ar/api/v1/orders/{id}/cancel \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "order_tenant_id": "<string>" } '
Cancel an order
write:orders
POST /api/v1/orders/{id}/cancel
curl -X POST "https://api.zenflow.com.ar/api/v1/orders/ORD-001/cancel" \ -H "X-API-Key: zenflow_live_your_key" \ -H "Content-Type: application/json"
{ "success": true, "data": { "message": "Order cancelled successfully", "order_id": "ORD-001" } }
{ "success": false, "error": { "code": "not_found", "message": "Order not found" } }
{ "success": false, "error": { "code": "cancel_error", "message": "Cannot cancel order that is already completed" } }