cURL
curl --request GET \ --url https://api.zenflow.com.ar/api/v1/orders/{id} \ --header 'X-API-Key: <api-key>'
{ "success": true, "data": {} }
Retrieve a single order by ID
read:orders
GET /api/v1/orders/{id}
curl -X GET "https://api.zenflow.com.ar/api/v1/orders/12345" \ -H "X-API-Key: zenflow_live_your_key"
{ "success": true, "data": { "id": 12345, "order_tenant_id": "ORD-001", "state_id": 1, "state_picking_id": null, "assembly_date": "2024-01-15", "customer_name": "John Doe", "shipping_address": "123 Main St, City", "order_detail": [ { "id": 1001, "product_id": 100, "barcode": "7891234567890", "product_name": "Widget A", "quantity": 2, "picked_quantity": 0, "price": 29.99 }, { "id": 1002, "product_id": 101, "barcode": "7891234567891", "product_name": "Widget B", "quantity": 1, "picked_quantity": 0, "price": 49.99 } ], "created_at": "2024-01-14T10:30:00Z", "updated_at": "2024-01-14T10:30:00Z" } }
{ "success": false, "error": { "code": "not_found", "message": "Order not found" } }
{ "success": false, "error": { "code": "invalid_id", "message": "Order ID must be a valid integer" } }