{"info":{"_postman_id":"415b53d0-3cf3-4d0a-88eb-f7362605e4c7","name":"OrderDetails","description":"<html><head></head><body><p>This API alliow to get Order Details get Collection</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"35385905","collectionId":"415b53d0-3cf3-4d0a-88eb-f7362605e4c7","publishedId":"2sA3rxrZgg","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-06T11:52:19.000Z"},"item":[{"name":"GetOrderDetails","id":"999e3202-73fc-4d56-830c-bd88f3945d3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/Pos_System/orderDetails?function=getById&order_id=ORD-010","description":"<p>The endpoint retrieves order details by ID from the POS system.</p>\n<p>The response for this request follows the JSON schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"cust_id\": {\n      \"type\": \"string\"\n    },\n    \"date\": {\n      \"type\": \"string\"\n    },\n    \"discount\": {\n      \"type\": \"number\"\n    },\n    \"order_id\": {\n      \"type\": \"string\"\n    },\n    \"order_list\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"item_code\": {\n            \"type\": \"string\"\n          },\n          \"qty\": {\n            \"type\": \"number\"\n          },\n          \"unit_price\": {\n            \"type\": \"number\"\n          }\n        }\n      }\n    },\n    \"total\": {\n      \"type\": \"number\"\n    }\n  }\n}\n\n</code></pre>\n<h3 id=\"request-body\">Request Body</h3>\n<p>This request does not include a request body.</p>\n<h3 id=\"response-body\">Response Body</h3>\n<p>The response to the request is in JSON format with the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"cust_id\": \"\",\n    \"date\": \"\",\n    \"discount\": 0,\n    \"order_id\": \"\",\n    \"order_list\": [\n        {\n            \"item_code\": \"\",\n            \"qty\": 0,\n            \"unit_price\": 0\n        }\n    ],\n    \"total\": 0\n}\n\n</code></pre>\n<p>The response includes order details such as customer ID, date, discount, order ID, order list with item code, quantity, and unit price, and the total amount.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["Pos_System","orderDetails"],"host":["localhost"],"query":[{"key":"function","value":"getById"},{"key":"order_id","value":"ORD-010"}],"variable":[]}},"response":[],"_postman_id":"999e3202-73fc-4d56-830c-bd88f3945d3d"}]}