{"info":{"_postman_id":"51dd5ba9-585d-4253-97e5-1bf37154b523","name":"Salespoint API Documentation","description":"<html><head></head><body><p>Welcome to Salespoint API Documentation</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"17128627","collectionId":"51dd5ba9-585d-4253-97e5-1bf37154b523","publishedId":"2sAYHzF39Z","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-12-16T00:22:27.000Z"},"item":[{"name":"Auth","item":[{"name":"User Login","id":"2944c109-c4db-4b64-9f1e-d8cb16904f37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{username}}\",\n    \"password\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/auth/login","description":"<p>This API will return a session token, that needed to access other endpoints.</p>\n","urlObject":{"protocol":"http","path":["auth","login"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"af44a2ac-0102-4361-9843-5c20be425dc0","name":"User Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{username}}\",\n    \"password\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 04:35:40 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"\",\n    \"expiresIn\": 28800000\n}"}],"_postman_id":"2944c109-c4db-4b64-9f1e-d8cb16904f37"}],"id":"94092498-120b-4c01-bd3e-e867998b0941","description":"<p>All the auth related APIs are here.</p>\n","_postman_id":"94092498-120b-4c01-bd3e-e867998b0941"},{"name":"User","item":[{"name":"Get All Users","id":"67616650-9b11-4927-bb0a-6276e7e49a94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/users","description":"<p>The API will return a list users.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER</p>\n","urlObject":{"protocol":"http","path":["users"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"261762c1-8f0f-4d47-baeb-6796415bb598","name":"Get All Users","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 05:27:02 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"fullName\": \"fullname1\",\n        \"username\": \"username1\",\n        \"status\": \"ACTIVE\",\n        \"role\": \"role1\",\n        \"accountNonExpired\": true,\n        \"accountNonLocked\": true,\n        \"credentialsNonExpired\": true,\n        \"enabled\": true\n    },\n    {\n        \"id\": 2,\n        \"fullName\": \"fullname2\",\n        \"username\": \"username2\",\n        \"status\": \"ACTIVE\",\n        \"role\": \"role2\",\n        \"accountNonExpired\": true,\n        \"accountNonLocked\": true,\n        \"credentialsNonExpired\": true,\n        \"enabled\": true\n    }\n]"}],"_postman_id":"67616650-9b11-4927-bb0a-6276e7e49a94"},{"name":"Current Logged In User","id":"c585b250-9ebd-4113-9810-765ea8744486","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/users/me","description":"<p>This API will return the current logged in user. Only current logged in user has permission to access this endpoint</p>\n","urlObject":{"protocol":"http","path":["users","me"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"c1c8b091-622a-4280-89c4-3e4145d44383","name":"Current Logged In User","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/users/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 05:31:17 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"fullName\": \"fullName\",\n    \"username\": \"username\",\n    \"status\": \"ACTIVE\",\n    \"role\": \"role\",\n    \"accountNonExpired\": true,\n    \"accountNonLocked\": true,\n    \"credentialsNonExpired\": true,\n    \"enabled\": true\n}"}],"_postman_id":"c585b250-9ebd-4113-9810-765ea8744486"},{"name":"Get User By ID","id":"ea5ab28d-1106-477b-b34b-533cb39c5881","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/users/{{user_id}}","description":"<p>This API will returns the user that has the matching user id.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["users","{{user_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"abc96004-b055-42cc-8d6b-7f55dddeb3fd","name":"Get User By ID","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/users/{{user_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 05:43:51 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"fullName\": \"fullName\",\n    \"username\": \"username\",\n    \"status\": \"ACTIVE\",\n    \"role\": \"role\",\n    \"accountNonExpired\": true,\n    \"accountNonLocked\": true,\n    \"credentialsNonExpired\": true,\n    \"enabled\": true\n}"}],"_postman_id":"ea5ab28d-1106-477b-b34b-533cb39c5881"},{"name":"Get User By Name","id":"45ef5454-505c-4971-a5ef-2d7ac5a05c86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/users/find/{{username}}","description":"<p>This API will returns the user that has the matching username</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["users","find","{{username}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"07a71d95-3862-48e7-9829-17ccfb5a915e","name":"Get User By Name","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/users/find/{{username}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 05:53:47 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"fullName\": \"fullName\",\n    \"username\": \"username\",\n    \"status\": \"ACTIVE\",\n    \"role\": \"role\",\n    \"accountNonExpired\": true,\n    \"accountNonLocked\": true,\n    \"credentialsNonExpired\": true,\n    \"enabled\": true\n}"}],"_postman_id":"45ef5454-505c-4971-a5ef-2d7ac5a05c86"},{"name":"Get All User Roles","id":"b769dc0c-bd5e-42b7-8867-20169aaed150","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/users/roles","description":"<p>This API will returns all the user roles</p>\n<p>Authroized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["users","roles"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"fd473e31-6136-48ef-a536-7a1dcb5f524b","name":"Get All User Roles","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/users/roles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 05:59:06 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    \"CASHIER\",\n    \"CLERK\",\n    \"MANAGER\",\n    \"ADMIN\",\n    \"SUPER_ADMIN\"\n]"}],"_postman_id":"b769dc0c-bd5e-42b7-8867-20169aaed150"},{"name":"Get All User Statuses ","id":"3d370b42-d506-45a3-8dee-d2f7530430a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/users/statuses","description":"<p>This API will returns all the user statuses</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["users","statuses"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"a824d235-b029-43c0-8eb7-db8dbc6e04eb","name":"Get All User Statuses","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/users/statuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 06:00:46 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    \"ACTIVE\",\n    \"DELETE\"\n]"}],"_postman_id":"3d370b42-d506-45a3-8dee-d2f7530430a3"},{"name":"Create Admin","id":"e4c6e1fe-aa1c-43ad-8f3b-508865da6fb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fullName\": \"Test Admin\",\n    \"username\": \"testadmin\",\n    \"password\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/users/admin/create","description":"<p>This API will create admin user.</p>\n<p>Authorized Roles - SUPER_ADMIN</p>\n","urlObject":{"protocol":"http","path":["users","admin","create"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"ddf2a83a-25d2-46c5-b07f-023a06220b00","name":"Create Admin","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fullName\": \"Test Admin\",\n    \"username\": \"testadmin\",\n    \"password\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/users/admin/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 06:03:23 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"fullName\": \"Test Admin\",\n    \"username\": \"testadmin\",\n    \"status\": \"ACTIVE\",\n    \"role\": \"ADMIN\",\n    \"accountNonExpired\": true,\n    \"accountNonLocked\": true,\n    \"credentialsNonExpired\": true,\n    \"enabled\": true\n}"}],"_postman_id":"e4c6e1fe-aa1c-43ad-8f3b-508865da6fb3"},{"name":"Create Non-Admin User","id":"e1cea83c-b6d4-4e10-99eb-85eeb8c92019","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fullName\": \"Test Manager\",\n    \"username\": \"testmanager\",\n    \"password\": \"12345678\",\n    \"role\": \"MANAGER\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/users","description":"<p>This API will create user.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN</p>\n","urlObject":{"protocol":"http","path":["users"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"cc80cd71-2408-4c21-84b1-1e21859be5b9","name":"Create User","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fullName\": \"Test Manager\",\n    \"username\": \"testmanager\",\n    \"password\": \"12345678\",\n    \"role\": \"MANAGER\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/users"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 06:06:57 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"fullName\": \"Test Manager\",\n    \"username\": \"testmanager\",\n    \"status\": \"ACTIVE\",\n    \"role\": \"MANAGER\",\n    \"accountNonExpired\": true,\n    \"accountNonLocked\": true,\n    \"credentialsNonExpired\": true,\n    \"enabled\": true\n}"}],"_postman_id":"e1cea83c-b6d4-4e10-99eb-85eeb8c92019"},{"name":"Update User","id":"2500a366-b88f-47fc-b334-99c753f295ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 4,\n    \"fullName\": \"Test Cashier 1\",\n    \"username\": \"testcashier1\",\n    \"password\": \"12345678\",\n    \"status\": \"ACTIVE\",\n    \"role\": \"CASHIER\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/users/{{user_id}}","description":"<p>This API will update a user</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN</p>\n","urlObject":{"protocol":"http","path":["users","{{user_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"ea3c82ab-26ca-4d6b-9b2a-8687d51709ee","name":"Update User","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 4,\n    \"fullName\": \"Test Cashier 1\",\n    \"username\": \"testcashier1\",\n    \"password\": \"12345678\",\n    \"status\": \"ACTIVE\",\n    \"role\": \"CASHIER\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/users/{{user_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 06:19:52 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"fullName\": \"Test Cashier 1\",\n    \"username\": \"testcashier1\",\n    \"status\": \"ACTIVE\",\n    \"role\": \"CASHIER\",\n    \"accountNonExpired\": true,\n    \"accountNonLocked\": true,\n    \"credentialsNonExpired\": true,\n    \"enabled\": true\n}"}],"_postman_id":"2500a366-b88f-47fc-b334-99c753f295ac"},{"name":"Delete User","id":"5eaf2527-4aef-425c-8d24-1107827a27d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://{{salespoint_instance}}/users/{{user_id}}","description":"<p>This API will delete the user with the matching user id</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN</p>\n","urlObject":{"protocol":"http","path":["users","{{user_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5eaf2527-4aef-425c-8d24-1107827a27d4"}],"id":"9346efd7-42f9-4973-adae-5809feb855bb","description":"<p>All the user related APIs are here.</p>\n","_postman_id":"9346efd7-42f9-4973-adae-5809feb855bb"},{"name":"Customer","item":[{"name":"Get All Customers","id":"179bd860-02cb-418f-aa3a-35fef38bfb8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/customers","description":"<p>This API will return a list of customers.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["customers"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"8b427918-e8b5-4cd5-81fd-12191364c9b7","name":"Get All Customers","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/customers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 06:33:37 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"fullName\": \"Test Customer1\",\n        \"phone\": \"0701234567\",\n        \"status\": \"ACTIVE\"\n    },\n    {\n        \"id\": 2,\n        \"fullName\": \"Test Customer 2\",\n        \"phone\": \"0761234567\",\n        \"status\": \"ACTIVE\"\n    },\n    {\n        \"id\": 3,\n        \"fullName\": \"Test Customer 3\",\n        \"phone\": \"0751234567\",\n        \"status\": \"ACTIVE\"\n    }\n]"}],"_postman_id":"179bd860-02cb-418f-aa3a-35fef38bfb8a"},{"name":"Get Customer By Id","id":"3ed8e026-d818-4541-b552-071bee020755","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/customers/{{customer_id}}","description":"<p>This API will returns the cutomer that has the matching customer id.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["customers","{{customer_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"03275294-7ef5-4858-9b2b-49fd9a20fca7","name":"Get Customer By Id","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/customers/{{customer_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 06:37:30 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"fullName\": \"Test Customer 3\",\n    \"phone\": \"0751234567\",\n    \"status\": \"ACTIVE\"\n}"}],"_postman_id":"3ed8e026-d818-4541-b552-071bee020755"},{"name":"Get Customer By Phone","id":"caac55c7-13df-4d39-a48b-322a0334df09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/customers/phone/{{customer_phone_no}}","description":"<p>This API will return the customer that has the matching phone number.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["customers","phone","{{customer_phone_no}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"76b4ae9c-50a0-40e5-a032-bae6f5ab426d","name":"Get Customer By Phone","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/customers/phone/{{customer_phone_no}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 06:40:08 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"fullName\": \"Test Customer 3\",\n    \"phone\": \"0751234567\",\n    \"status\": \"ACTIVE\"\n}"}],"_postman_id":"caac55c7-13df-4d39-a48b-322a0334df09"},{"name":"Get All Customer Statuses","id":"923d3759-e1f2-48b2-8dcc-173c8cf0a4eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/customers/statuses","description":"<p>This API will returns all the user statuses.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["customers","statuses"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"6d339cb4-7afb-4beb-889f-edd58e3367b4","name":"Get All Customer Statuses","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/customers/statuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 06:43:33 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    \"ACTIVE\",\n    \"DELETE\"\n]"}],"_postman_id":"923d3759-e1f2-48b2-8dcc-173c8cf0a4eb"},{"name":"Create Customer","id":"8f98bfdb-cf07-433e-87e1-3126a334ad24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n        \"fullName\": \"Test Customer 4\",\n        \"phone\": \"0711234567\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/customers","description":"<p>This API will create a customer.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["customers"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"e3a0b8a3-c4cc-46e6-ae55-a38af46a296d","name":"Create Customer","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n        \"fullName\": \"Test Customer 4\",\n        \"phone\": \"0711234567\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/customers"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 06:46:30 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"fullName\": \"Test Customer 4\",\n    \"phone\": \"0711234567\",\n    \"status\": \"ACTIVE\"\n}"}],"_postman_id":"8f98bfdb-cf07-433e-87e1-3126a334ad24"},{"name":"Update Customer","id":"b3ab35be-0125-4469-944a-386ef56d82f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 1,\n    \"fullName\": \"Test Customer 1\",\n    \"phone\": \"0701234567\",\n    \"status\": \"ACTIVE\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/customers/{{customer_id}}","description":"<p>This API will update the customer that has the matching customer id\nAuthorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["customers","{{customer_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"ec882f10-b9d7-4cbb-8fa3-bf8abab87cc9","name":"Update Customer","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 1,\n    \"fullName\": \"Test Customer 1\",\n    \"phone\": \"0701234567\",\n    \"status\": \"ACTIVE\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/customers/{{customer_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 06:50:51 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"fullName\": \"Test Customer 1\",\n    \"phone\": \"0701234567\",\n    \"status\": \"ACTIVE\"\n}"}],"_postman_id":"b3ab35be-0125-4469-944a-386ef56d82f4"},{"name":"Delete Customer","id":"a24943a3-cfd7-4802-93c6-3aad97a59ea4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://{{salespoint_instance}}/customers/{{customer_id}}","description":"<p>This API will delete the customer that has the matching customer id</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK</p>\n","urlObject":{"protocol":"http","path":["customers","{{customer_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a24943a3-cfd7-4802-93c6-3aad97a59ea4"}],"id":"3529c53b-9347-416a-80f1-0aaa77d15770","description":"<p>All the customer related APIs are here.</p>\n","_postman_id":"3529c53b-9347-416a-80f1-0aaa77d15770"},{"name":"Item Categories","item":[{"name":"Get All Item Categories","id":"1ba17145-58e1-40ab-9a33-86a467aeebea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/item-categories","description":"<p>This API will return all the item categories.\nAuthorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["item-categories"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"8f6f2f26-90dd-47f5-a88f-d19c3861cf00","name":"Get All Item Categories","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/item-categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 06:59:12 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Test category 1\"\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Test category 2\"\n    },\n    {\n        \"id\": 3,\n        \"name\": \"Test category 3\"\n    },\n    {\n        \"id\": 4,\n        \"name\": \"Test category 4\"\n    },\n    {\n        \"id\": 5,\n        \"name\": \"Test category 5\"\n    }\n]"}],"_postman_id":"1ba17145-58e1-40ab-9a33-86a467aeebea"},{"name":"Get Item Category By Id","id":"aae7b315-3172-466f-8d96-8159d3743747","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/item-categories/{{item_category_id}}","description":"<p>This API will returns the item category that has the matching id.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["item-categories","{{item_category_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"0eb5654c-e024-4e56-ab62-2aa0cfe04042","name":"Get Item Category By Id","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/item-categories/{{item_category_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 07:02:31 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"Test category 1\"\n}"}],"_postman_id":"aae7b315-3172-466f-8d96-8159d3743747"},{"name":"Get Item Category By Name","id":"224572e6-f427-4ee5-827e-20fad4b25485","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/item-categories/find/{{item_category_name}}","description":"<p>This API will returns the item category that has the matching name.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["item-categories","find","{{item_category_name}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"cbffc9ed-dbe5-4c56-a409-33989de311e1","name":"Get Item Category By Name","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/item-categories/find/{{item_category_name}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 07:04:42 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"Test category 1\"\n}"}],"_postman_id":"224572e6-f427-4ee5-827e-20fad4b25485"},{"name":"Create Item Category","id":"0657435f-d03f-42fa-bc47-0947225412b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test category 5\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/item-categories","description":"<p>This API will create an item category.<br />Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK</p>\n","urlObject":{"protocol":"http","path":["item-categories"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"cdb8ea23-3d38-4675-9bb5-a4dc0960fc16","name":"Create Item Category","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test category 5\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/item-categories"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 06:57:09 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5,\n    \"name\": \"Test category 5\"\n}"}],"_postman_id":"0657435f-d03f-42fa-bc47-0947225412b1"},{"name":"Update Item Category","id":"09d87a52-86ab-4314-b902-fbaaa932611f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test category1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/item-categories/{{item_category_id}}","description":"<p>This API will update the item category that has the matching item category id.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK</p>\n","urlObject":{"protocol":"http","path":["item-categories","{{item_category_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"09d87a52-86ab-4314-b902-fbaaa932611f"},{"name":"Delete Item Category","id":"aff2af36-ec31-40ab-aca5-383c136b3f43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://{{salespoint_instance}}/item-categories/{{item_category_id}}","description":"<p>This API will delete the item category that has the matching item category id.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK</p>\n","urlObject":{"protocol":"http","path":["item-categories","{{item_category_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aff2af36-ec31-40ab-aca5-383c136b3f43"}],"id":"fe85a9de-32a8-4102-ae5e-efba1dc2cd79","description":"<p>All the item category related APIs are here.</p>\n","_postman_id":"fe85a9de-32a8-4102-ae5e-efba1dc2cd79"},{"name":"Item","item":[{"name":"Get All Items","id":"457406a4-248d-4f79-8e43-f08d47840027","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/items","description":"<p>This API will returns a list of items</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["items"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"ffa2d547-a310-436f-9478-c8ee18dfbff7","name":"Get All Items","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/items"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 07:32:01 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Test Item 1\",\n        \"unitPrice\": 350,\n        \"qty\": 0,\n        \"status\": \"ACTIVE\",\n        \"category\": \"Test category 1\",\n        \"createdAt\": \"2024-12-15T07:19:57.830+00:00\",\n        \"updatedAt\": \"2024-12-15T07:19:57.830+00:00\"\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Test Item 2\",\n        \"unitPrice\": 450,\n        \"qty\": 0,\n        \"status\": \"ACTIVE\",\n        \"category\": \"Test category 2\",\n        \"createdAt\": \"2024-12-15T07:20:13.149+00:00\",\n        \"updatedAt\": \"2024-12-15T07:20:13.149+00:00\"\n    },\n    {\n        \"id\": 3,\n        \"name\": \"Test Item 3\",\n        \"unitPrice\": 150,\n        \"qty\": 0,\n        \"status\": \"ACTIVE\",\n        \"category\": \"Test category 3\",\n        \"createdAt\": \"2024-12-15T07:20:49.420+00:00\",\n        \"updatedAt\": \"2024-12-15T07:27:10.958+00:00\"\n    },\n    {\n        \"id\": 4,\n        \"name\": \"Test Item 4\",\n        \"unitPrice\": 550,\n        \"qty\": 0,\n        \"status\": \"ACTIVE\",\n        \"category\": \"Test category 4\",\n        \"createdAt\": \"2024-12-15T07:21:52.855+00:00\",\n        \"updatedAt\": \"2024-12-15T07:21:52.855+00:00\"\n    },\n    {\n        \"id\": 5,\n        \"name\": \"Test Item 5\",\n        \"unitPrice\": 550,\n        \"qty\": 0,\n        \"status\": \"DELETE\",\n        \"category\": \"Test category 1\",\n        \"createdAt\": \"2024-12-15T07:29:28.550+00:00\",\n        \"updatedAt\": \"2024-12-15T07:30:06.386+00:00\"\n    }\n]"}],"_postman_id":"457406a4-248d-4f79-8e43-f08d47840027"},{"name":"Get Item By Id","id":"ae758101-e961-439a-9f5d-3755462b5f54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/items/{{item_id}}","description":"<p>This API will return the item that has the matching item id.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["items","{{item_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"d69b977a-0b4c-4ebe-801b-eb0b6c0acbab","name":"Get Item By Id","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/items/{{item_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 07:34:49 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"name\": \"Test Item 2\",\n    \"unitPrice\": 450,\n    \"qty\": 0,\n    \"status\": \"ACTIVE\",\n    \"category\": \"Test category 2\",\n    \"createdAt\": \"2024-12-15T07:20:13.149+00:00\",\n    \"updatedAt\": \"2024-12-15T07:20:13.149+00:00\"\n}"}],"_postman_id":"ae758101-e961-439a-9f5d-3755462b5f54"},{"name":"Get Item By Name","id":"68e265b6-4d23-4498-9aae-30551276cccc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/items/find/{{item_name}}","description":"<p>This API will return the item that has the matching item name.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["items","find","{{item_name}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"0394e503-0721-43a6-884c-bfac9942200e","name":"Get Item By Name","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/items/find/{{item_name}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 07:39:03 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"Test Item 1\",\n    \"unitPrice\": 350,\n    \"qty\": 0,\n    \"status\": \"ACTIVE\",\n    \"category\": \"Test category 1\",\n    \"createdAt\": \"2024-12-15T07:19:57.830+00:00\",\n    \"updatedAt\": \"2024-12-15T07:19:57.830+00:00\"\n}"}],"_postman_id":"68e265b6-4d23-4498-9aae-30551276cccc"},{"name":"Get All Item Statuses","id":"d6aa730f-d608-47c4-b438-f0b48aff0e95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/items/statuses","description":"<p>This API will return all the item statuses.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["items","statuses"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"ab161422-4236-4b06-98e3-9d7dfe34fc84","name":"Get All Item Statuses","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/items/statuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 07:41:20 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    \"ACTIVE\",\n    \"DELETE\"\n]"}],"_postman_id":"d6aa730f-d608-47c4-b438-f0b48aff0e95"},{"name":"Create Item","id":"4f92bb63-12e6-42f4-b3a2-ed09723c687f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Item 4\",\n    \"unitPrice\": 550.00 ,\n    \"category\": \"Test category 4\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/items","description":"<p>This API will create an item.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK</p>\n","urlObject":{"protocol":"http","path":["items"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"250c7d75-ff0d-4a67-98f2-901be44bc178","name":"Create Item","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Item 4\",\n    \"unitPrice\": 550.00 ,\n    \"category\": \"Test category 4\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/items"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 07:21:52 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"name\": \"Test Item 4\",\n    \"unitPrice\": 550,\n    \"qty\": 0,\n    \"status\": \"ACTIVE\",\n    \"category\": \"Test category 4\",\n    \"createdAt\": \"2024-12-15T07:21:52.855+00:00\",\n    \"updatedAt\": \"2024-12-15T07:21:52.855+00:00\"\n}"}],"_postman_id":"4f92bb63-12e6-42f4-b3a2-ed09723c687f"},{"name":"Update Item","id":"4ea49e32-f4ed-4a2a-806a-9f27f50b1a1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 3,\n    \"name\": \"Test Item 3\",\n    \"unitPrice\": 150.00,\n    \"qty\": 0,\n    \"status\": \"ACTIVE\",\n    \"category\": \"Test category 3\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/items/{{item_id}}","description":"<p>This API will update the item that has the matching item id.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK</p>\n","urlObject":{"protocol":"http","path":["items","{{item_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"13102b67-4fe8-4580-b804-6fe8c7b2e0ac","name":"Update Item","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 3,\n    \"name\": \"Test Item 3\",\n    \"unitPrice\": 150.00,\n    \"qty\": 0,\n    \"status\": \"ACTIVE\",\n    \"category\": \"Test category 3\"\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/items/{{item_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 07:27:10 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"name\": \"Test Item 3\",\n    \"unitPrice\": 150,\n    \"qty\": 0,\n    \"status\": \"ACTIVE\",\n    \"category\": \"Test category 3\",\n    \"createdAt\": \"2024-12-15T07:20:49.420+00:00\",\n    \"updatedAt\": \"2024-12-15T07:27:10.958+00:00\"\n}"}],"_postman_id":"4ea49e32-f4ed-4a2a-806a-9f27f50b1a1f"},{"name":"Delete Item","id":"b1cf08ae-bc81-4799-89cb-9774e9969d1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://{{salespoint_instance}}/items/{{item_id}}","description":"<p>This API will delete the item that has the matching item id.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK</p>\n","urlObject":{"protocol":"http","path":["items","{{item_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b1cf08ae-bc81-4799-89cb-9774e9969d1e"}],"id":"b018cfc8-d406-4057-9706-77ba24daf75a","description":"<p>All the item related APIs are here.</p>\n","_postman_id":"b018cfc8-d406-4057-9706-77ba24daf75a"},{"name":"Stock","item":[{"name":"Get All Stocks","id":"b2e4e29f-e590-4eb0-b292-b4bd74f8050e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/stocks","description":"<p>This API will return a list of stocks.</p>\n<p>Authroized Roles -  SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["stocks"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"409e53b9-3dfe-4caf-a202-226e3fe71777","name":"Get All Stocks","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/stocks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 07:53:11 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"qty\": 100,\n        \"createdAt\": \"2024-12-15T07:44:57.440+00:00\",\n        \"updatedAt\": \"2024-12-15T07:48:30.532+00:00\",\n        \"item\": {\n            \"id\": 1,\n            \"name\": \"Test Item 1\",\n            \"unitPrice\": 350,\n            \"qty\": 100,\n            \"status\": \"ItemStatusEntity(id=1, name=ACTIVE, createdAt=2024-12-14 12:51:31.957, updatedAt=2024-12-14 12:51:31.957)\",\n            \"category\": \"Test category 1\",\n            \"createdAt\": \"2024-12-15T07:19:57.830+00:00\",\n            \"updatedAt\": \"2024-12-15T07:48:30.531+00:00\"\n        }\n    },\n    {\n        \"id\": 2,\n        \"qty\": 200,\n        \"createdAt\": \"2024-12-15T07:49:41.985+00:00\",\n        \"updatedAt\": \"2024-12-15T07:49:41.985+00:00\",\n        \"item\": {\n            \"id\": 2,\n            \"name\": \"Test Item 2\",\n            \"unitPrice\": 450,\n            \"qty\": 200,\n            \"status\": \"ItemStatusEntity(id=1, name=ACTIVE, createdAt=2024-12-14 12:51:31.957, updatedAt=2024-12-14 12:51:31.957)\",\n            \"category\": \"Test category 2\",\n            \"createdAt\": \"2024-12-15T07:20:13.149+00:00\",\n            \"updatedAt\": \"2024-12-15T07:49:41.986+00:00\"\n        }\n    },\n    {\n        \"id\": 3,\n        \"qty\": 200,\n        \"createdAt\": \"2024-12-15T07:49:47.136+00:00\",\n        \"updatedAt\": \"2024-12-15T07:49:47.136+00:00\",\n        \"item\": {\n            \"id\": 3,\n            \"name\": \"Test Item 3\",\n            \"unitPrice\": 150,\n            \"qty\": 200,\n            \"status\": \"ItemStatusEntity(id=1, name=ACTIVE, createdAt=2024-12-14 12:51:31.957, updatedAt=2024-12-14 12:51:31.957)\",\n            \"category\": \"Test category 3\",\n            \"createdAt\": \"2024-12-15T07:20:49.420+00:00\",\n            \"updatedAt\": \"2024-12-15T07:49:47.137+00:00\"\n        }\n    },\n    {\n        \"id\": 4,\n        \"qty\": 200,\n        \"createdAt\": \"2024-12-15T07:49:53.598+00:00\",\n        \"updatedAt\": \"2024-12-15T07:49:53.598+00:00\",\n        \"item\": {\n            \"id\": 4,\n            \"name\": \"Test Item 4\",\n            \"unitPrice\": 550,\n            \"qty\": 200,\n            \"status\": \"ItemStatusEntity(id=1, name=ACTIVE, createdAt=2024-12-14 12:51:31.957, updatedAt=2024-12-14 12:51:31.957)\",\n            \"category\": \"Test category 4\",\n            \"createdAt\": \"2024-12-15T07:21:52.855+00:00\",\n            \"updatedAt\": \"2024-12-15T07:49:53.599+00:00\"\n        }\n    }\n]"}],"_postman_id":"b2e4e29f-e590-4eb0-b292-b4bd74f8050e"},{"name":"Get Stock By Id","id":"bd00b46f-440b-4e1b-8635-cec22f1335aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/stocks/{{stock_id}}","description":"<p>This API will return the stock that has the matching stock id.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["stocks","{{stock_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"664b3b4b-0dcb-401e-9c65-c0509d05bf29","name":"Get Stock By Id","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/stocks/{{stock_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 07:54:40 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"qty\": 100,\n    \"createdAt\": \"2024-12-15T07:44:57.440+00:00\",\n    \"updatedAt\": \"2024-12-15T07:48:30.532+00:00\",\n    \"item\": {\n        \"id\": 1,\n        \"name\": \"Test Item 1\",\n        \"unitPrice\": 350,\n        \"qty\": 100,\n        \"status\": \"ItemStatusEntity(id=1, name=ACTIVE, createdAt=2024-12-14 12:51:31.957, updatedAt=2024-12-14 12:51:31.957)\",\n        \"category\": \"Test category 1\",\n        \"createdAt\": \"2024-12-15T07:19:57.830+00:00\",\n        \"updatedAt\": \"2024-12-15T07:48:30.531+00:00\"\n    }\n}"}],"_postman_id":"bd00b46f-440b-4e1b-8635-cec22f1335aa"},{"name":"Get Stock By Item Id","id":"e902492d-d2f9-4162-843a-f1602bf72217","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/stocks/item/{{stock_item_id}}","description":"<p>This API will return the stock that has the item with matching item id.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["stocks","item","{{stock_item_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"8e0da516-8e0d-442f-86e0-7459501cb97a","name":"Get Stock By Item Id","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/stocks/item/{{stock_item_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 07:57:26 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"qty\": 100,\n        \"createdAt\": \"2024-12-15T07:44:57.440+00:00\",\n        \"updatedAt\": \"2024-12-15T07:48:30.532+00:00\",\n        \"item\": {\n            \"id\": 1,\n            \"name\": \"Test Item 1\",\n            \"unitPrice\": 350,\n            \"qty\": 100,\n            \"status\": \"ItemStatusEntity(id=1, name=ACTIVE, createdAt=2024-12-14 12:51:31.957, updatedAt=2024-12-14 12:51:31.957)\",\n            \"category\": \"Test category 1\",\n            \"createdAt\": \"2024-12-15T07:19:57.830+00:00\",\n            \"updatedAt\": \"2024-12-15T07:48:30.531+00:00\"\n        }\n    }\n]"}],"_postman_id":"e902492d-d2f9-4162-843a-f1602bf72217"},{"name":"Create Stock","id":"af4de678-5c04-4f73-9f05-644f1898eb07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"itemId\": 1,\n    \"qty\": 200\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/stocks","description":"<p>This API will create stock.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK</p>\n","urlObject":{"protocol":"http","path":["stocks"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"aabde71e-f446-4817-8551-1e4c1c87df23","name":"Create Stock","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"itemId\": 1,\n    \"qty\": 200\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/stocks"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 07:44:57 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"qty\": 200,\n    \"createdAt\": \"2024-12-15T07:44:57.440+00:00\",\n    \"updatedAt\": \"2024-12-15T07:44:57.440+00:00\",\n    \"item\": {\n        \"id\": 1,\n        \"name\": \"Test Item 1\",\n        \"unitPrice\": 350,\n        \"qty\": 200,\n        \"status\": \"ItemStatusEntity(id=1, name=ACTIVE, createdAt=2024-12-14 12:51:31.957, updatedAt=2024-12-14 12:51:31.957)\",\n        \"category\": \"Test category 1\",\n        \"createdAt\": \"2024-12-15T07:19:57.830+00:00\",\n        \"updatedAt\": \"2024-12-15T07:44:57.441+00:00\"\n    }\n}"}],"_postman_id":"af4de678-5c04-4f73-9f05-644f1898eb07"},{"name":"Update Stock","id":"7b8b2577-4f21-40d1-ab80-fc25f435c25f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"itemId\": 1,\n    \"qty\": 100\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/stocks/{{stock_id}}","description":"<p>This API will update the stock.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK</p>\n","urlObject":{"protocol":"http","path":["stocks","{{stock_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"e93e5e66-1fe9-4a6c-af7f-1608061fc303","name":"Update Stock","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"itemId\": 1,\n    \"qty\": 100\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/stocks/{{stock_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 15 Dec 2024 07:48:30 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"qty\": 100,\n    \"createdAt\": \"2024-12-15T07:44:57.440+00:00\",\n    \"updatedAt\": \"2024-12-15T07:48:30.532+00:00\",\n    \"item\": {\n        \"id\": 1,\n        \"name\": \"Test Item 1\",\n        \"unitPrice\": 350,\n        \"qty\": 100,\n        \"status\": \"ItemStatusEntity(id=1, name=ACTIVE, createdAt=2024-12-14 12:51:31.957, updatedAt=2024-12-14 12:51:31.957)\",\n        \"category\": \"Test category 1\",\n        \"createdAt\": \"2024-12-15T07:19:57.830+00:00\",\n        \"updatedAt\": \"2024-12-15T07:48:30.531+00:00\"\n    }\n}"}],"_postman_id":"7b8b2577-4f21-40d1-ab80-fc25f435c25f"},{"name":"Delete Stock","id":"e8d108ac-26c8-4f43-9e63-1f4962e88877","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://{{salespoint_instance}}/stocks/{{stock_id}}","description":"<p>This API will delete the stock that has matching stock id.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK</p>\n","urlObject":{"protocol":"http","path":["stocks","{{stock_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"34d0ebe3-c241-4aa2-a380-3bda98641784","name":"Delete Stock","originalRequest":{"method":"DELETE","header":[],"url":"http://{{salespoint_instance}}/stocks/{{stock_id}}"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Date","value":"Sun, 15 Dec 2024 07:51:30 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"e8d108ac-26c8-4f43-9e63-1f4962e88877"}],"id":"cd2d66d2-46e0-4561-8046-129b4c4af15b","description":"<p>All the stock related APIs are here.</p>\n","_postman_id":"cd2d66d2-46e0-4561-8046-129b4c4af15b"},{"name":"Orders","item":[{"name":"Get All Orders","id":"cbe3533b-b7d8-4002-b776-089275f1e489","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/orders","description":"<p>This API will return a list of orders.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["orders"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"79b2e8b2-b1f7-4b7d-a57c-4cf992672c4b","name":"Get All Orders","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 16 Dec 2024 00:19:00 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"totalPrice\": 0,\n        \"orderPaid\": false,\n        \"customerId\": 1,\n        \"createdAt\": \"2024-12-15T08:08:47.246+00:00\",\n        \"updatedAt\": \"2024-12-16T00:16:34.626+00:00\",\n        \"createdBy\": 1,\n        \"orderItems\": []\n    },\n    {\n        \"id\": 2,\n        \"totalPrice\": 0,\n        \"orderPaid\": false,\n        \"customerId\": 2,\n        \"createdAt\": \"2024-12-15T08:10:13.856+00:00\",\n        \"updatedAt\": \"2024-12-15T08:10:13.856+00:00\",\n        \"createdBy\": 1,\n        \"orderItems\": []\n    },\n    {\n        \"id\": 3,\n        \"totalPrice\": 0,\n        \"orderPaid\": false,\n        \"customerId\": 3,\n        \"createdAt\": \"2024-12-15T08:10:30.192+00:00\",\n        \"updatedAt\": \"2024-12-15T08:10:30.192+00:00\",\n        \"createdBy\": 1,\n        \"orderItems\": []\n    },\n    {\n        \"id\": 4,\n        \"totalPrice\": 0,\n        \"orderPaid\": false,\n        \"customerId\": 4,\n        \"createdAt\": \"2024-12-15T08:11:55.322+00:00\",\n        \"updatedAt\": \"2024-12-15T08:11:55.322+00:00\",\n        \"createdBy\": 1,\n        \"orderItems\": []\n    },\n    {\n        \"id\": 5,\n        \"totalPrice\": 0,\n        \"orderPaid\": false,\n        \"customerId\": 2,\n        \"createdAt\": \"2024-12-16T00:12:32.140+00:00\",\n        \"updatedAt\": \"2024-12-16T00:12:32.140+00:00\",\n        \"createdBy\": 1,\n        \"orderItems\": []\n    },\n    {\n        \"id\": 6,\n        \"totalPrice\": 750,\n        \"orderPaid\": false,\n        \"customerId\": 2,\n        \"createdAt\": \"2024-12-16T00:14:48.268+00:00\",\n        \"updatedAt\": \"2024-12-16T00:15:31.616+00:00\",\n        \"createdBy\": 1,\n        \"orderItems\": [\n            {\n                \"id\": 3,\n                \"qty\": 5,\n                \"itemId\": 3\n            }\n        ]\n    }\n]"}],"_postman_id":"cbe3533b-b7d8-4002-b776-089275f1e489"},{"name":"Get Order By Id","id":"62addacd-8bed-4169-a23b-dc3c3f165ade","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://{{salespoint_instance}}/orders/{{order_id}}","description":"<p>This will return the order that has the matching order id.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["orders","{{order_id}}"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"0e13e9fc-b7b6-4f5e-a334-b88e275d77e9","name":"Get Order By Id","originalRequest":{"method":"GET","header":[],"url":"http://{{salespoint_instance}}/orders/{{order_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 16 Dec 2024 00:18:45 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"totalPrice\": 0,\n    \"orderPaid\": false,\n    \"customerId\": 1,\n    \"createdAt\": \"2024-12-15T08:08:47.246+00:00\",\n    \"updatedAt\": \"2024-12-16T00:16:34.626+00:00\",\n    \"createdBy\": 1,\n    \"orderItems\": []\n}"}],"_postman_id":"62addacd-8bed-4169-a23b-dc3c3f165ade"},{"name":"Create Order","id":"0db7e0f8-59a9-4d49-a659-d1ae746ce99a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"customerId\": 2,\n    \"userId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/orders","description":"<p>This API will create an order.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["orders"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"4aa225b0-0d07-4088-ab1d-04bc56ad090e","name":"Create Order","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"customerId\": 2,\n    \"userId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/orders"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 16 Dec 2024 00:14:48 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 6,\n    \"totalPrice\": 0,\n    \"orderPaid\": false,\n    \"customerId\": 2,\n    \"createdAt\": \"2024-12-16T00:14:48.268+00:00\",\n    \"updatedAt\": \"2024-12-16T00:14:48.268+00:00\",\n    \"createdBy\": 1,\n    \"orderItems\": []\n}"}],"_postman_id":"0db7e0f8-59a9-4d49-a659-d1ae746ce99a"},{"name":"Add Item to the Order","id":"48762b3c-35e2-492d-afa9-b459d921fea9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"orderId\": 6,\n    \"itemId\": 3,\n    \"qty\": 5\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/orders/add-item","description":"<p>This API will add item to the order.</p>\n<p>Authorized Roles -  SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["orders","add-item"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"f8fe3d81-40eb-46be-a79a-953a065bfc64","name":"Add Item to the Order","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"orderId\": 6,\n    \"itemId\": 3,\n    \"qty\": 5\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/orders/add-item"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 16 Dec 2024 00:15:31 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 6,\n    \"totalPrice\": 750,\n    \"orderPaid\": false,\n    \"customerId\": 2,\n    \"createdAt\": \"2024-12-16T00:14:48.268+00:00\",\n    \"updatedAt\": \"2024-12-16T00:15:31.616+00:00\",\n    \"createdBy\": 1,\n    \"orderItems\": [\n        {\n            \"id\": 3,\n            \"qty\": 5,\n            \"itemId\": 3\n        }\n    ]\n}"}],"_postman_id":"48762b3c-35e2-492d-afa9-b459d921fea9"},{"name":"Remove Item from the Order","id":"dab5f174-1160-4cd9-bf85-9d91a1c3f259","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{session_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"orderId\": 1,\n    \"itemId\": 3\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/orders/remove-item","description":"<p>This API will remove an item from the order.</p>\n<p>Authorized Roles - SUPER_ADMIN, ADMIN, MANAGER, CLERK, CASHIER</p>\n","urlObject":{"protocol":"http","path":["orders","remove-item"],"host":["{{salespoint_instance}}"],"query":[],"variable":[]}},"response":[{"id":"bb6473ab-3ec3-43c1-bcfd-baebf0098330","name":"Remove Item from the Order","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"orderId\": 1,\n    \"itemId\": 3\n}","options":{"raw":{"language":"json"}}},"url":"http://{{salespoint_instance}}/orders/remove-item"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 16 Dec 2024 00:16:34 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"totalPrice\": 0,\n    \"orderPaid\": false,\n    \"customerId\": 1,\n    \"createdAt\": \"2024-12-15T08:08:47.246+00:00\",\n    \"updatedAt\": \"2024-12-16T00:16:34.626+00:00\",\n    \"createdBy\": 1,\n    \"orderItems\": []\n}"}],"_postman_id":"dab5f174-1160-4cd9-bf85-9d91a1c3f259"}],"id":"7cad9aed-0ad5-48e9-b7f5-4607e28a0839","description":"<p>All the orders related APIs are here.</p>\n","_postman_id":"7cad9aed-0ad5-48e9-b7f5-4607e28a0839"}]}