cURL
curl --request GET \ --url https://api.example.com/sales/:id
{ "error": true, "data": [ { "idSales": "<string>", "idSalesDetails": "<string>", "clientsId": "<string>", "clientsName": "<string>", "idProduct": "<string>", "nameProduct": "<string>", "quantity": 123, "price": "<string>", "total": "<string>" } ] }
Retrieve a specific sale with all product details
Show data properties
{ "error": false, "data": [ { "idSales": "4e42fc03-edf3-4212-afb5-47e9ae8400a4", "idSalesDetails": "1b71fff6-ca67-424d-a391-f14b0a63d8ec", "clientsId": "036c71c5-14e0-11f1-9fcd-2418c6c96a00", "clientsName": "Mark Zuckemberg", "idProduct": "1eeeaded-14e6-11f1-9fcd-2418c6c96a00", "nameProduct": "Ptusas", "quantity": 30, "price": "1200.00", "total": "36000.00" }, { "idSales": "4e42fc03-edf3-4212-afb5-47e9ae8400a4", "idSalesDetails": "bc7ff6f2-d092-46fa-a893-71c860c2a69d", "clientsId": "036c71c5-14e0-11f1-9fcd-2418c6c96a00", "clientsName": "Mark Zuckemberg", "idProduct": "2cfba483-14e6-11f1-9fcd-2418c6c96a00", "nameProduct": "Pepsi", "quantity": 50, "price": "5000.00", "total": "250000.00" } ] }
{ "error": true, "msg": "id is invalid" }
idSales
idSalesDetails