{"info":{"_postman_id":"defe2d89-6fbe-49d1-bf14-3a62b858ce96","name":"Spring-POS","description":"<html><head></head><body><p>StartFragmentThe <strong>Spring POS API</strong> is a robust RESTful API designed to serve the front end of a Point of Sale (POS) system. Built using the Spring Framework, this API facilitates seamless interaction between the client application and the server, allowing for efficient management of customers, items, and orders.EndFragment</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"35384500","collectionId":"defe2d89-6fbe-49d1-bf14-3a62b858ce96","publishedId":"2sAXxV7Vvw","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-10-17T15:17:37.000Z"},"item":[{"name":"customer","item":[{"name":"save customer","event":[{"listen":"test","script":{"id":"d5496be6-753d-4f5b-9988-3cfe3d699858","exec":[""],"type":"text/javascript","packages":{}}}],"id":"aa69ad71-545d-47eb-9e0c-ebecf3d0ac85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Charaka Gamage\",\r\n    \"email\": \"charakamihiranga@gmail.com\",\r\n    \"address\": \"Deniyaya\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/springpos/api/v1/customer","description":"<h3 id=\"post-springposapiv1customer\">POST /springpos/api/v1/customer</h3>\n<p>This endpoint is used to create a new customer in the system.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code>: (text) The name of the customer.</p>\n</li>\n<li><p><code>email</code>: (text) The email address of the customer.</p>\n</li>\n<li><p><code>address</code>: (text) The address of the customer.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is in text/xml format with a status code of 201 (Created). However, the response body is null.</p>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"number\"\n    },\n    \"content-type\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"null\"\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["springpos","api","v1","customer"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa69ad71-545d-47eb-9e0c-ebecf3d0ac85"},{"name":"update customer","id":"0c072e68-aa87-4334-a689-09f8fd219784","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Charaka Gamage\",\r\n    \"email\": \"charakamihiranga123@gmaail.com\",\r\n    \"address\": \"Deniyaya\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/springpos/api/v1/customer/CUS-0c761478-3fe4-4968-8621-d5ae64f8135f","urlObject":{"protocol":"http","port":"8080","path":["springpos","api","v1","customer","CUS-0c761478-3fe4-4968-8621-d5ae64f8135f"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0c072e68-aa87-4334-a689-09f8fd219784"},{"name":"delete customer","id":"a1e6a749-f0e6-41b6-b8db-cb401f2ae123","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/springpos/api/v1/customer/CUS-e0bcdca8-c514-4f5d-9004-325c7348361d","description":"<h3 id=\"delete-customer\">Delete Customer</h3>\n<p>This endpoint is used to delete a specific customer by their ID.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p>Status: 204</p>\n</li>\n<li><p>Content-Type: text/xml</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["springpos","api","v1","customer","CUS-e0bcdca8-c514-4f5d-9004-325c7348361d"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a1e6a749-f0e6-41b6-b8db-cb401f2ae123"},{"name":"get customer by id","id":"ef465c5c-93d5-4923-8f3f-8335bbd77fda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/springpos/api/v1/customer/CUS-d9d16bff-a215-4acf-9aff-fda00f5edf19","description":"<p>The endpoint retrieves information about a specific customer using the customer ID in the URL. The response returned is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"id\": {\n      \"type\": \"string\"\n    },\n    \"name\": {\n      \"type\": \"string\"\n    },\n    \"email\": {\n      \"type\": \"string\"\n    },\n    \"address\": {\n      \"type\": \"string\"\n    },\n    \"createdAt\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"number\"\n      }\n    },\n    \"updatedAt\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"number\"\n      }\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["springpos","api","v1","customer","CUS-d9d16bff-a215-4acf-9aff-fda00f5edf19"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef465c5c-93d5-4923-8f3f-8335bbd77fda"},{"name":"get all customers","id":"3c7e5a26-a832-47d2-a84a-2a9d405e0f3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/springpos/api/v1/customer","description":"<h3 id=\"retrieve-customer-information\">Retrieve Customer Information</h3>\n<p>This endpoint retrieves a list of customer information.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>http://localhost:8080/springpos/api/v1/customer</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response is a JSON array containing customer objects with the following properties:</p>\n<ul>\n<li><p><code>id</code> (string): The unique identifier of the customer.</p>\n</li>\n<li><p><code>name</code> (string): The name of the customer.</p>\n</li>\n<li><p><code>email</code> (string): The email address of the customer.</p>\n</li>\n<li><p><code>address</code> (string): The address of the customer.</p>\n</li>\n<li><p><code>createdAt</code> (array): An array representing the creation timestamp of the customer record.</p>\n</li>\n<li><p><code>updatedAt</code> (string): The timestamp representing when the customer record was last updated.</p>\n</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"email\": \"\",\n        \"address\": \"\",\n        \"createdAt\": [0],\n        \"updatedAt\": [0]\n    }\n]\n\n</code></pre>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"array\",\n    \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n            \"id\": {\n                \"type\": \"string\"\n            },\n            \"name\": {\n                \"type\": \"string\"\n            },\n            \"email\": {\n                \"type\": \"string\"\n            },\n            \"address\": {\n                \"type\": \"string\"\n            },\n            \"createdAt\": {\n                \"type\": \"array\",\n                \"items\": {\n                    \"type\": \"number\"\n                }\n            },\n            \"updatedAt\": {\n                 \"type\": \"array\",\n                \"items\": {\n                    \"type\": \"number\"\n                }\n\n            }\n        }\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["springpos","api","v1","customer"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3c7e5a26-a832-47d2-a84a-2a9d405e0f3e"}],"id":"fb481596-b725-4789-8370-3f8f625d3f06","_postman_id":"fb481596-b725-4789-8370-3f8f625d3f06","description":""},{"name":"item","item":[{"name":"save item","id":"1a38f5b8-4b77-4fc7-a2c9-fb8b457adc0c","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"itemName","value":"Keyboard","type":"text"},{"key":"desc","value":"Wireless Keyboard","type":"text"},{"key":"price","value":"2000.00","type":"text"},{"key":"qtyOnHand","value":"100","type":"text"},{"key":"itemPic","type":"file","src":"postman-cloud:///1ef8bb62-2655-4630-b6d7-92c95fc31a09"}]},"url":"http://localhost:8080/springpos/api/v1/item","description":"<h3 id=\"post-springposapiv1item\">POST /springpos/api/v1/item</h3>\n<p>This endpoint is used to create a new item in the system.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>itemName</code> (text): The name of the item.</p>\n</li>\n<li><p><code>desc</code> (text): The description of the item.</p>\n</li>\n<li><p><code>price</code> (text): The price of the item.</p>\n</li>\n<li><p><code>qtyOnHand</code> (text): The quantity of the item available.</p>\n</li>\n<li><p><code>itemPic</code> (file): The picture of the item.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is not available at the moment.</p>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"number\"\n    },\n    \"Content-Type\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"null\"\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["springpos","api","v1","item"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a38f5b8-4b77-4fc7-a2c9-fb8b457adc0c"},{"name":"update item","id":"371e8391-bd0a-4174-9906-5c3177a107c0","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"itemName","value":"Wireless Mouse","type":"text"},{"key":"desc","value":"High precision wireless mouse","type":"text"},{"key":"price","value":"5000.00","type":"text"},{"key":"qtyOnHand","value":"200","type":"text"},{"key":"itemPic","type":"file","src":"postman-cloud:///1ef8bb62-2655-4630-b6d7-92c95fc31a09"}]},"url":"http://localhost:8080/springpos/api/v1/item/ITEM-89035955-de1f-458a-ad6a-e1cdbd84473f","description":"<h3 id=\"patch-springposapiv1itemitem-1301bf6a-aa8c-4423-93d6-c5f38a24fb32\">PATCH /springpos/api/v1/item/ITEM-1301bf6a-aa8c-4423-93d6-c5f38a24fb32</h3>\n<p>This endpoint is used to update an existing item in the system.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>itemName</code> (text): The name of the item.</p>\n</li>\n<li><p><code>desc</code> (text): The description of the item.</p>\n</li>\n<li><p><code>price</code> (text): The price of the item.</p>\n</li>\n<li><p><code>qtyOnHand</code> (text): The quantity of the item available.</p>\n</li>\n<li><p><code>itemPic</code> (file): The picture of the item.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p><code>status</code> (number): The status code of the response.</p>\n</li>\n<li><p><code>Content-Type</code> (string): The type of content in the response.</p>\n</li>\n<li><p><code>data</code> (null): The data returned in the response.</p>\n</li>\n</ul>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"number\"\n    },\n    \"Content-Type\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"null\"\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["springpos","api","v1","item","ITEM-89035955-de1f-458a-ad6a-e1cdbd84473f"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"371e8391-bd0a-4174-9906-5c3177a107c0"},{"name":"delete item","id":"79f3e2ee-2f27-4ad8-abb6-489f450e7686","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/springpos/api/v1/item/ITEM-89035955-de1f-458a-ad6a-e1cdbd84473f","description":"<p>The API endpoint sends an HTTP DELETE request to delete the item with the specified ID. Upon successful deletion, the server returns a 204 status code with a content type of text/xml. As per the user's request, the response can be documented as a JSON schema.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["springpos","api","v1","item","ITEM-89035955-de1f-458a-ad6a-e1cdbd84473f"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"79f3e2ee-2f27-4ad8-abb6-489f450e7686"},{"name":"get item by code","id":"65b99789-5933-4b7c-bed7-61790b784ce4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/springpos/api/v1/item/ITEM-47c14676-c060-4e45-a6c4-b5d8c954ed8b","description":"<h3 id=\"get-springposapiv1itemitem-1301bf6a-aa8c-4423-93d6-c5f38a24fb32\">GET /springpos/api/v1/item/ITEM-1301bf6a-aa8c-4423-93d6-c5f38a24fb32</h3>\n<p>This endpoint retrieves details of a specific item.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body parameters.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in JSON format and will have the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"code\": {\n      \"type\": \"string\"\n    },\n    \"name\": {\n      \"type\": \"string\"\n    },\n    \"itemPic\": {\n      \"type\": \"string\"\n    },\n    \"description\": {\n      \"type\": \"string\"\n    },\n    \"price\": {\n      \"type\": \"number\"\n    },\n    \"qtyOnHand\": {\n      \"type\": \"number\"\n    },\n    \"createdAt\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"number\"\n      }\n    },\n    \"updatedAt\": {\n      \"type\": [\"array\", \"null\"]\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["springpos","api","v1","item","ITEM-47c14676-c060-4e45-a6c4-b5d8c954ed8b"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"65b99789-5933-4b7c-bed7-61790b784ce4"},{"name":"get all items","id":"b25b5d75-1ff6-4b4f-b77b-0758a928bbbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/springpos/api/v1/item/allitems","description":"<h3 id=\"retrieve-all-items\">Retrieve All Items</h3>\n<p>This endpoint retrieves a list of all items.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response will be a JSON array containing objects with the following properties:</p>\n<ul>\n<li><p><code>code</code> (string): The code of the item.</p>\n</li>\n<li><p><code>name</code> (string): The name of the item.</p>\n</li>\n<li><p><code>itemPic</code> (string): The URL of the item's picture.</p>\n</li>\n<li><p><code>description</code> (string): The description of the item.</p>\n</li>\n<li><p><code>price</code> (number): The price of the item.</p>\n</li>\n<li><p><code>qtyOnHand</code> (number): The quantity of the item on hand.</p>\n</li>\n<li><p><code>createdAt</code> (array): The timestamp of when the item was created.</p>\n</li>\n<li><p><code>updatedAt</code> (null): The timestamp of when the item was last updated.</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"code\": \"\",\n        \"name\": \"\",\n        \"itemPic\": \"\",\n        \"description\": \"\",\n        \"price\": 0,\n        \"qtyOnHand\": 0,\n        \"createdAt\": [0],\n        \"updatedAt\": null\n    }\n]\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["springpos","api","v1","item","allitems"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b25b5d75-1ff6-4b4f-b77b-0758a928bbbe"}],"id":"d6eaae31-e9f4-44c7-baa5-373b2d27cd7a","_postman_id":"d6eaae31-e9f4-44c7-baa5-373b2d27cd7a","description":""},{"name":"order","item":[{"name":"save order","id":"369443b2-c8bb-4b1b-922b-3363608c90ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"customerId\": \"CUS-d9d16bff-a215-4acf-9aff-fda00f5edf19\",\r\n  \"orderDetailDtos\": [\r\n    {\r\n      \"itemCode\": \"ITEM-47c14676-c060-4e45-a6c4-b5d8c954ed8b\",\r\n      \"qty\": 3,\r\n      \"unitPrice\": 7000.00\r\n    },\r\n    {\r\n      \"itemCode\": \"ITEM-c8287d83-09b9-4e15-bb5d-8cce5c04cca2\",\r\n      \"qty\": 1,\r\n      \"unitPrice\": 2000.00\r\n    }\r\n  ],\r\n  \"totalAmount\": 23000.00,\r\n  \"paidAmount\": 25000.00,\r\n  \"discount\": 2000.00,\r\n  \"balance\": 4000.00\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/springpos/api/v1/orders","description":"<h3 id=\"post-springposapiv1orders\">POST /springpos/api/v1/orders</h3>\n<p>This endpoint is used to create a new order.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>customerId (string, required): The ID of the customer placing the order.</p>\n</li>\n<li><p>orderDetailDtos (array, required): An array of objects containing details of each item in the order.</p>\n<ul>\n<li><p>itemCode (string, required): The code of the item being ordered.</p>\n</li>\n<li><p>qty (integer, required): The quantity of the item being ordered.</p>\n</li>\n<li><p>unitPrice (integer, required): The unit price of the item being ordered.</p>\n</li>\n</ul>\n</li>\n<li><p>totalAmount (integer, required): The total amount of the order.</p>\n</li>\n<li><p>paidAmount (integer, required): The amount paid by the customer.</p>\n</li>\n<li><p>discount (integer, required): The discount applied to the order.</p>\n</li>\n<li><p>balance (integer, required): The remaining balance to be paid.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is in text/xml format and does not contain any specific data. To document the response as a JSON schema, further details about the response structure and data types are required.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["springpos","api","v1","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"369443b2-c8bb-4b1b-922b-3363608c90ce"},{"name":"get order by id","id":"78844486-afc2-4c0b-aa0b-9f2e738732ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/springpos/api/v1/orders/2","description":"<h3 id=\"get-springposapiv1orders2\">GET /springpos/api/v1/orders/2</h3>\n<p>This endpoint retrieves the details of a specific order.</p>\n<h4 id=\"request\">Request</h4>\n<p>There are no request parameters for this endpoint.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in JSON format with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": \"number\",\n  \"customerId\": \"string\",\n  \"orderDetailDtos\": [\n    {\n      \"id\": \"number\",\n      \"itemEntity\": {\n        \"code\": \"string\",\n        \"name\": \"string\",\n        \"itemPic\": \"string\",\n        \"description\": \"string\",\n        \"price\": \"number\",\n        \"qtyOnHand\": \"number\"\n      },\n      \"qty\": \"number\",\n      \"unitPrice\": \"number\"\n    }\n  ],\n  \"totalAmount\": \"number\",\n  \"paidAmount\": \"number\",\n  \"discount\": \"number\",\n  \"balance\": \"number\",\n  \"createdAt\": \"string\"\n}\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["springpos","api","v1","orders","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"78844486-afc2-4c0b-aa0b-9f2e738732ce"},{"name":"get all orders","id":"cb4cf2b3-9a95-42b3-835f-3f5f50f81946","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/springpos/api/v1/orders","description":"<h1 id=\"get-orders\">Get Orders</h1>\n<p>This endpoint makes an HTTP GET request to retrieve a list of orders.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>http://localhost:8080/springpos/api/v1/orders</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response will be in JSON format and will include an array of order objects. Each order object contains the following fields:</p>\n<ul>\n<li><p><code>id</code> (number): The unique identifier for the order.</p>\n</li>\n<li><p><code>customerEntity</code> (object): Details of the customer associated with the order, including <code>id</code>, <code>name</code>, <code>email</code>, and <code>address</code>.</p>\n</li>\n<li><p><code>orderDetailEntities</code> (array): An array of order details, each containing <code>id</code>, <code>itemEntity</code> (with <code>code</code>, <code>name</code>, <code>itemPic</code>, <code>description</code>, <code>price</code>, and <code>qtyOnHand</code>), <code>qty</code>, and <code>unitPrice</code>.</p>\n</li>\n<li><p><code>totalAmount</code> (number): The total amount for the order.</p>\n</li>\n<li><p><code>paidAmount</code> (number): The amount paid for the order.</p>\n</li>\n<li><p><code>discount</code> (number): The discount applied to the order.</p>\n</li>\n<li><p><code>balance</code> (number): The remaining balance for the order.</p>\n</li>\n<li><p><code>createdAt</code> (array): The timestamp of when the order was created.</p>\n</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"customerEntity\": {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"address\": \"\"\n        },\n        \"orderDetailEntities\": [\n            {\n                \"id\": 0,\n                \"itemEntity\": {\n                    \"code\": \"\",\n                    \"name\": \"\",\n                    \"itemPic\": \"\",\n                    \"description\": \"\",\n                    \"price\": 0,\n                    \"qtyOnHand\": 0\n                },\n                \"qty\": 0,\n                \"unitPrice\": 0\n            }\n        ],\n        \"totalAmount\": 0,\n        \"paidAmount\": 0,\n        \"discount\": 0,\n        \"balance\": 0,\n        \"createdAt\": [0]\n    }\n]\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["springpos","api","v1","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb4cf2b3-9a95-42b3-835f-3f5f50f81946"}],"id":"8a3da154-9c3a-4de5-a1a8-401d04c13777","_postman_id":"8a3da154-9c3a-4de5-a1a8-401d04c13777","description":""},{"name":"health check","id":"2d5170db-3429-4926-aaf0-6c8787ab65ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/springpos/api/v1/healthCheck","description":"<p>The <code>GET</code> request to <code>/healthCheck</code> endpoint is used to check the health status of the Spring POS API.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response returned is a <code>text/plain</code> content with a status code of 200. The response body contains a message indicating the status of the Spring POS API.</p>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response body is a plain text message:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": \"Spring POS API is running\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["springpos","api","v1","healthCheck"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ff1b0c02-047d-4d3d-8616-639732caf49d","name":"health check","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/springpos/api/v1/healthCheck"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"2d5170db-3429-4926-aaf0-6c8787ab65ec"}]}