{"info":{"_postman_id":"74783d53-4c4a-4bef-9cab-823ae88fee87","name":"POS Live Sync","description":"<html><head></head><body><p>The objective of the integration is to allow POS merchants to synchronize their daily sales data to Codemax RMS for inventory tracking purpose. The submitted invoices will be processed by the API server, and RMS inventory movement will be updated accordingly.</p>\n<img src=\"https://content.pstmn.io/c1f717b6-b8f6-4ca2-bff9-3a814bece141/SGlnaExldmVsU3lzdGVtT3ZlcnZpZXcucG5n\" alt=\"High%20Level%20System%20Overview\" width=\"579\" height=\"358\">\n\n<p>A total of three APIs are involved in this integration, and Bearer authentication scheme is used as the HTTP framework for access control and authentication. The first API is the Authentication API, which returns a set of access and refresh tokens after the login credentials are validated and authenticated successfully. The access token returned will be used as the Bearer token to call the second API, the Sync Invoices API. This token is valid for only 15 minutes. Once it expires, you will need to call the third API, the Refresh Authentication API, by submitting both the expired access token and refresh token to retrieve a new set of access and refresh tokens.</p>\n<img src=\"https://content.pstmn.io/bf8bc2c5-468b-42ed-8904-29587d79e079/QXBpRmxvdy5wbmc=\" alt=\"API%20Flow\" width=\"583\" height=\"478\">\n\n<p>Please be informed that a maximum of 20 invoices can be synced per request. If more than 20 invoices are pending for synchronization, you will need to make sure that your application is able to loop and sync up to 20 invoices at a time. Table below is the list of response codes for your reference.</p>\n<img src=\"https://content.pstmn.io/047a709a-e36a-4c59-8a67-41303aa8a412/Mi5wbmc=\" alt=\"Response%20Codes\">\n\n<p>Staging URL: <a href=\"https://possync.c-mx.co/api/v1/sync\">https://possync-staging.c-mx.co</a></p>\n<p>Live URL : <a href=\"https://possync.c-mx.co/api/v1/sync\">https://possync.c-mx.co</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6771787","collectionId":"74783d53-4c4a-4bef-9cab-823ae88fee87","publishedId":"2sAXqv3fhi","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-09-23T10:29:37.000Z"},"item":[{"name":"Authentication","id":"ddeb9ef0-44b9-4eab-8aae-18e355738381","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"loginId\" : \"posuser002@codemax.my\",\r\n    \"password\" : \"pos321!\",\r\n    \"branchCode\" : \"B001\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/user/auth","description":"<p>This API returns you a set of access and refresh tokens. Please get the \"loginId\", \"password\", and \"branchCode\" from Codemax.</p>\n","urlObject":{"protocol":"https","path":["api","v1","user","auth"],"host":["codemax-posintegration-staging","azurewebsites","net"],"query":[],"variable":[]}},"response":[{"id":"c88318db-520e-413c-b98a-784739f6e16e","name":"With valid credentials","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"loginId\" : \"posuser002@codemax.my\",\r\n    \"password\" : \"pos321!\",\r\n    \"branchCode\" : \"B001\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/user/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 14 Feb 2025 03:37:35 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Encoding","value":"gzip"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6ImcxTFhtLzlKL01pNlNoMXEweFd3cjRKZ0g4dytTWER5cXBiWERIckFXbEdJZXpOL2RsWFFSTXpKQkpSaUQrTlRTNFpsa09KT0xQZ1NnRTJTcTVPUUNMbUFBNzJMZ09pdnFxcng1Z1gvaVNrPSIsIm5iZiI6MTczOTUwNDI1NSwiZXhwIjoxNzM5NTA1MTU1LCJpYXQiOjE3Mzk1MDQyNTV9.kC42ax-nw02tBKJxuixQAamALS0pmqQMwrvAAVtBpU0\",\n    \"refreshToken\": \"dc840a14-bf4f-400b-929e-39e86d804b47\"\n}"},{"id":"87eeb4bd-6e1d-4de3-bd9d-ad5606d0659c","name":"With invalid loginId","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"loginId\" : \"xpossynctest1@codemax.my\",\r\n    \"password\" : \"123456\",\r\n    \"branchCode\" : \"B001\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/user/auth"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 20 Sep 2024 04:04:16 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid login ID.\"\n}"},{"id":"355a9af1-1e51-48cd-89a9-e2a743944ed6","name":"With invalid password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"loginId\" : \"posuser002@codemax.my\",\r\n    \"password\" : \"123456x\",\r\n    \"branchCode\" : \"B001\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/user/auth"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 16 Dec 2024 08:52:33 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid password.\"\n}"},{"id":"7c4bbd6a-5316-4aef-8da7-293c479c996e","name":"With invalid branchCode","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"loginId\" : \"posuser002@codemax.my\",\r\n    \"password\" : \"pos321!\",\r\n    \"branchCode\" : \"B001x\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/user/auth"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 16 Dec 2024 08:53:30 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid branch code.\"\n}"},{"id":"fce3a1d3-e292-43aa-9f56-c66bd2d94914","name":"Authentication","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"loginId\" : \"posuser001@codemax.my\",\r\n    \"password\" : \"pos123!\",\r\n    \"branchCode\" : \"B001\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/user/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 05 Nov 2024 15:04:10 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Encoding","value":"gzip"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6IlprQ29PUXdMQldtZ3R5YlBkL1NhN21BYmlyNnEyZG81UHJaQTBGL0NPQ1czNTlkMGNIV2k5bk1Ma3NlOVFNYlBlQm5JTFZ6S05HMHpab0JMMFZZRmhpaC95MkRNOG8yRXF1UktNM1gvQ3pVPSIsIm5iZiI6MTczMDgxOTA1MCwiZXhwIjoxNzMwODE5OTUwLCJpYXQiOjE3MzA4MTkwNTB9.PhHd8NXpcqN5XEdtlCEYe57BElQFs9Ve4kGnC528W5A\",\n    \"refreshToken\": \"312af8ce-402d-4ea0-9b42-e25b9e594a05\"\n}"}],"_postman_id":"ddeb9ef0-44b9-4eab-8aae-18e355738381"},{"name":"Sync Invoices","id":"c75b8cc2-bec7-4bcd-95c5-830dd599a837","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6Im41K1BiaTB0QUpSNW8yMmxPVnVUWmltbVZRdkFWeEo0a0VJbGFxdjc1TFJRNkRDd1Y2czRzL0RBSEZOYXAzRXQxbUROdno4QXgzTTJRTW8rbWNrOUpIcGFTNlRscjRtRUhVejJPZlR5NEhVPSIsIm5iZiI6MTcyNzA3MzQxMCwiZXhwIjoxNzI3MDc0MzEwLCJpYXQiOjE3MjcwNzM0MTB9.Xzz3rbj9IUqFeFjXGNDV9-hCrPnBWZKUUBPkAZHiM6M","description":"<p>Access token</p>\n","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"invoiceNo\": \"INV001\",\r\n        \"refNo\": \"INV001_REF\",\r\n        \"invoiceStatus\": \"NEW\",\r\n        \"tableNo\": \"TABLE01\",\r\n        \"pax\": \"1\",\r\n        \"invoiceCreatedDate\": \"2025-03-24 15:10:33\",\r\n        \"invoicePaymentDate\": \"2025-03-24 15:10:33\",\r\n        \"invoiceDiscountName\": \"\",\r\n        \"invoiceDiscountAmount\": 0,\r\n        \"invoiceDiscountType\": 0,\r\n        \"invoiceDiscountValue\": 0,\r\n        \"roundingAdj\": 0,\r\n        \"grandTotal\": 12.80,\r\n        \"taxDetails\": [\r\n            {\r\n                \"taxCode\": \"SC\",\r\n                \"taxName\": \"Service Charge 10%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            },\r\n            {\r\n                \"taxCode\": \"SST\",\r\n                \"taxName\": \"SST 6%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            }\r\n        ],\r\n        \"invoiceItems\": [\r\n            {\r\n                \"itemParentCode\": \"P-FG002\",\r\n                \"itemCode\": \"FG002\",\r\n                \"itemName\": \"SPAGHETTI CARBONARA\",\r\n                \"quantity\": 1,\r\n                \"uom\": \"unit\",\r\n                \"unitPrice\": 13.50,\r\n                \"totalPrice\": 27.00,\r\n                \"discountAmount\": 0,\r\n                \"discountType\": 0,\r\n                \"discountValue\": 0,\r\n                \"unitNetPrice\": 13.50,\r\n                \"totalNetPrice\": 27.00,\r\n                \"orderDate\": \"2025-03-24 15:10:33\",\r\n                \"orderLine\": 1,\r\n                \"lineMode\": 0,\r\n                \"taxDetails\": [\r\n                    {\r\n                        \"taxCode\": \"SC\",\r\n                        \"taxName\": \"Service Charge 10%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    },\r\n                    {\r\n                        \"taxCode\": \"SST\",\r\n                        \"taxName\": \"SST 6%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    }\r\n                ],\r\n                \"invoiceModifiers\": []\r\n            }\r\n        ],\r\n        \"invoicePayments\": [\r\n            {\r\n                \"paymentCode\": \"P001\",\r\n                \"paymentName\": \"CASH\",\r\n                \"AmountPaid\": 27.00\r\n            }\r\n        ]\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/sync/invoices","description":"<p>To sync invoices to Codemax, call this API using the access token retrived from the Authentication API. Please note that a maximum of 20 invoices can be synced per request. If the response code returned is 701, 703, 704, or 705, your access token is invalid</p>\n<img src=\"https://content.pstmn.io/003750a1-5a4c-4092-b090-a3b9f2d36db1/MS5wbmc=\" alt=\"Invoice%20Object\" />\n\n<img src=\"https://content.pstmn.io/5c7aa814-5d2e-4687-8a91-40365e7c7601/Mi5wbmc=\" alt=\"TaxDetails%20Object\" />\n\n<img src=\"https://content.pstmn.io/7ab80921-bec1-4975-a49a-6a98b3a44511/My5wbmc=\" alt=\"InvoiceItems%20Object\" />\n\n<img src=\"https://content.pstmn.io/6299b9f8-666a-496e-8858-0e2eed23e330/NC5wbmc=\" alt=\"InvoiceModifiers%20Object%20(Tier%201)\" />\n\n<img src=\"https://content.pstmn.io/c2325451-cafa-47a1-9444-d4668c21f1f8/NS5wbmc=\" alt=\"InvoiceModifiers%20Object%20(Tier%202)\" />\n\n<img src=\"https://content.pstmn.io/c728f84a-f5d8-482c-ba25-cfe223d80a46/Ni5wbmc=\" alt=\"InvoiceModifiers%20Object%20(Tier%203)\" />\n\n<img src=\"https://content.pstmn.io/a1b9764f-6b37-451f-a507-70f9b8886ffc/Ny5wbmc=\" alt=\"InvoicePayments%20Object\" />","urlObject":{"protocol":"https","path":["api","v1","sync","invoices"],"host":["codemax-posintegration-staging","azurewebsites","net"],"query":[],"variable":[]}},"response":[{"id":"25cc2fbe-7dd6-4b7b-abda-603b4bb75d2a","name":"Succeeded Sync","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6ImcxTFhtLzlKL01pNlNoMXEweFd3cjRKZ0g4dytTWER5cXBiWERIckFXbEdJZXpOL2RsWFFSTXpKQkpSaUQrTlRTNFpsa09KT0xQZ1NnRTJTcTVPUUNMbUFBNzJMZ09pdnFxcng1Z1gvaVNrPSIsIm5iZiI6MTczOTUwNDI1NSwiZXhwIjoxNzM5NTA1MTU1LCJpYXQiOjE3Mzk1MDQyNTV9.kC42ax-nw02tBKJxuixQAamALS0pmqQMwrvAAVtBpU0","description":"Access token","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"invoiceNo\": \"INV001\",\r\n        \"refNo\": \"INV001_REF\",\r\n        \"invoiceStatus\": \"NEW\",\r\n        \"tableNo\": \"TABLE01\",\r\n        \"pax\": \"1\",\r\n        \"salesChannel\": \"DINE-IN\",\r\n        \"businessDate\": \"2025-03-24\",\r\n        \"invoiceCreatedDate\": \"2025-03-24 15:10:33\",\r\n        \"invoicePaymentDate\": \"2025-03-24 15:10:33\",\r\n        \"invoiceDiscountName\": \"\",\r\n        \"invoiceDiscountAmount\": 0,\r\n        \"invoiceDiscountType\": 0,\r\n        \"invoiceDiscountValue\": 0,\r\n        \"roundingAdj\": 0,\r\n        \"grandTotal\": 27.00,\r\n        \"taxDetails\": [\r\n            {\r\n                \"taxCode\": \"SC\",\r\n                \"taxName\": \"Service Charge 10%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            },\r\n            {\r\n                \"taxCode\": \"SST\",\r\n                \"taxName\": \"SST 6%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            }\r\n        ],\r\n        \"invoiceItems\": [\r\n            {\r\n                \"itemParentCode\": \"P-FG002\",\r\n                \"itemCode\": \"FG002\",\r\n                \"itemName\": \"SPAGHETTI CARBONARA\",\r\n                \"quantity\": 2,\r\n                \"uom\": \"unit\",\r\n                \"unitPrice\": 13.50,\r\n                \"totalPrice\": 27.00,\r\n                \"discountAmount\": 0,\r\n                \"discountType\": 0,\r\n                \"discountValue\": 0,\r\n                \"unitNetPrice\": 13.50,\r\n                \"totalNetPrice\": 27.00,\r\n                \"orderDate\": \"2025-03-24 15:10:33\",\r\n                \"orderLine\": 1,\r\n                \"lineMode\": 0,\r\n                \"taxDetails\": [\r\n                    {\r\n                        \"taxCode\": \"SC\",\r\n                        \"taxName\": \"Service Charge 10%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    },\r\n                    {\r\n                        \"taxCode\": \"SST\",\r\n                        \"taxName\": \"SST 6%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    }\r\n                ],\r\n                \"invoiceModifiers\": []\r\n            }\r\n        ],\r\n        \"invoicePayments\": [\r\n            {\r\n                \"paymentCode\": \"P001\",\r\n                \"paymentName\": \"CASH\",\r\n                \"AmountPaid\": 27.00\r\n            }\r\n        ]\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/sync/invoices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 14 Feb 2025 03:48:19 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Encoding","value":"gzip"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"invoiceNo\": \"INV001\",\n        \"isSynced\": true,\n        \"resultCode\": \"9000\",\n        \"errorMessage\": \"\"\n    }\n]"},{"id":"695153b3-bcbe-4255-bf05-a9f9b1e0b214","name":"Supersede Existing Invoice","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6ImcxTFhtLzlKL01pNlNoMXEweFd3cjRKZ0g4dytTWER5cXBiWERIckFXbEdJZXpOL2RsWFFSTXpKQkpSaUQrTlRTNFpsa09KT0xQZ1NnRTJTcTVPUUNMbUFBNzJMZ09pdnFxcng1Z1gvaVNrPSIsIm5iZiI6MTczOTUwNDI1NSwiZXhwIjoxNzM5NTA1MTU1LCJpYXQiOjE3Mzk1MDQyNTV9.kC42ax-nw02tBKJxuixQAamALS0pmqQMwrvAAVtBpU0","description":"Access token","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"invoiceNo\": \"INV001\",\r\n        \"refNo\": \"INV001_REF\",\r\n        \"invoiceStatus\": \"SUPERSEDE\",\r\n        \"tableNo\": \"TABLE01\",\r\n        \"pax\": \"1\",\r\n        \"salesChannel\": \"DINE-IN\",\r\n        \"businessDate\": \"2025-03-24\",\r\n        \"invoiceCreatedDate\": \"2025-03-24 15:10:33\",\r\n        \"invoicePaymentDate\": \"2025-03-24 15:10:33\",\r\n        \"invoiceDiscountName\": \"\",\r\n        \"invoiceDiscountAmount\": 0,\r\n        \"invoiceDiscountType\": 0,\r\n        \"invoiceDiscountValue\": 0,\r\n        \"roundingAdj\": 0,\r\n        \"grandTotal\": 13.50,\r\n        \"taxDetails\": [\r\n            {\r\n                \"taxCode\": \"SC\",\r\n                \"taxName\": \"Service Charge 10%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            },\r\n            {\r\n                \"taxCode\": \"SST\",\r\n                \"taxName\": \"SST 6%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            }\r\n        ],\r\n        \"invoiceItems\": [\r\n            {\r\n                \"itemParentCode\": \"P-FG002\",\r\n                \"itemCode\": \"FG002\",\r\n                \"itemName\": \"SPAGHETTI CARBONARA\",\r\n                \"quantity\": 1,\r\n                \"uom\": \"unit\",\r\n                \"unitPrice\": 13.50,\r\n                \"totalPrice\": 13.50,\r\n                \"discountAmount\": 0,\r\n                \"discountType\": 0,\r\n                \"discountValue\": 0,\r\n                \"unitNetPrice\": 13.50,\r\n                \"totalNetPrice\": 13.50,\r\n                \"orderDate\": \"2025-03-24 15:10:33\",\r\n                \"orderLine\": 1,\r\n                \"lineMode\": 0,\r\n                \"taxDetails\": [\r\n                    {\r\n                        \"taxCode\": \"SC\",\r\n                        \"taxName\": \"Service Charge 10%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    },\r\n                    {\r\n                        \"taxCode\": \"SST\",\r\n                        \"taxName\": \"SST 6%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    }\r\n                ],\r\n                \"invoiceModifiers\": []\r\n            }\r\n        ],\r\n        \"invoicePayments\": [\r\n            {\r\n                \"paymentCode\": \"P001\",\r\n                \"paymentName\": \"CASH\",\r\n                \"AmountPaid\": 13.50\r\n            }\r\n        ]\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/sync/invoices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 14 Feb 2025 03:48:58 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Encoding","value":"gzip"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"invoiceNo\": \"INV001\",\n        \"isSynced\": true,\n        \"resultCode\": \"9000\",\n        \"errorMessage\": \"\"\n    }\n]"},{"id":"795d12e0-59b6-4307-b1a9-129d16ce1b29","name":"Void Invoice","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6ImcxTFhtLzlKL01pNlNoMXEweFd3cjRKZ0g4dytTWER5cXBiWERIckFXbEdJZXpOL2RsWFFSTXpKQkpSaUQrTlRTNFpsa09KT0xQZ1NnRTJTcTVPUUNMbUFBNzJMZ09pdnFxcng1Z1gvaVNrPSIsIm5iZiI6MTczOTUwNDI1NSwiZXhwIjoxNzM5NTA1MTU1LCJpYXQiOjE3Mzk1MDQyNTV9.kC42ax-nw02tBKJxuixQAamALS0pmqQMwrvAAVtBpU0","description":"Access token","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"invoiceNo\": \"INV001\",\r\n        \"refNo\": \"INV001_REF\",\r\n        \"invoiceStatus\": \"VOID\",\r\n        \"tableNo\": \"TABLE01\",\r\n        \"pax\": \"1\",\r\n        \"salesChannel\": \"DINE-IN\",\r\n        \"businessDate\": \"2025-03-24\",\r\n        \"invoiceCreatedDate\": \"2025-03-24 15:10:33\",\r\n        \"invoicePaymentDate\": \"2025-03-24 15:10:33\",\r\n        \"invoiceDiscountName\": \"\",\r\n        \"invoiceDiscountAmount\": 0,\r\n        \"invoiceDiscountType\": 0,\r\n        \"invoiceDiscountValue\": 0,\r\n        \"roundingAdj\": 0,\r\n        \"grandTotal\": 13.50,\r\n        \"taxDetails\": [\r\n            {\r\n                \"taxCode\": \"SC\",\r\n                \"taxName\": \"Service Charge 10%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            },\r\n            {\r\n                \"taxCode\": \"SST\",\r\n                \"taxName\": \"SST 6%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            }\r\n        ],\r\n        \"invoiceItems\": [\r\n            {\r\n                \"itemParentCode\": \"P-FG002\",\r\n                \"itemCode\": \"FG002\",\r\n                \"itemName\": \"SPAGHETTI CARBONARA\",\r\n                \"quantity\": 1,\r\n                \"uom\": \"unit\",\r\n                \"unitPrice\": 13.50,\r\n                \"totalPrice\": 13.50,\r\n                \"discountAmount\": 0,\r\n                \"discountType\": 0,\r\n                \"discountValue\": 0,\r\n                \"unitNetPrice\": 13.50,\r\n                \"totalNetPrice\": 13.50,\r\n                \"orderDate\": \"2025-03-24 15:10:33\",\r\n                \"orderLine\": 1,\r\n                \"lineMode\": 0,\r\n                \"taxDetails\": [\r\n                    {\r\n                        \"taxCode\": \"SC\",\r\n                        \"taxName\": \"Service Charge 10%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    },\r\n                    {\r\n                        \"taxCode\": \"SST\",\r\n                        \"taxName\": \"SST 6%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    }\r\n                ],\r\n                \"invoiceModifiers\": []\r\n            }\r\n        ],\r\n        \"invoicePayments\": [\r\n            {\r\n                \"paymentCode\": \"P001\",\r\n                \"paymentName\": \"CASH\",\r\n                \"AmountPaid\": 13.50\r\n            }\r\n        ]\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/sync/invoices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 14 Feb 2025 03:50:13 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Encoding","value":"gzip"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"invoiceNo\": \"INV001\",\n        \"isSynced\": true,\n        \"resultCode\": \"9000\",\n        \"errorMessage\": \"\"\n    }\n]"},{"id":"e0b9cc74-3a15-467f-90e2-8232903aba88","name":"Sync Invoice With Invalid Status","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6ImcxTFhtLzlKL01pNlNoMXEweFd3cjRKZ0g4dytTWER5cXBiWERIckFXbEdJZXpOL2RsWFFSTXpKQkpSaUQrTlRTNFpsa09KT0xQZ1NnRTJTcTVPUUNMbUFBNzJMZ09pdnFxcng1Z1gvaVNrPSIsIm5iZiI6MTczOTUwNTY4MCwiZXhwIjoxNzM5NTA2NTgwLCJpYXQiOjE3Mzk1MDU2ODB9.Vh-MWOSpMqiV5Ro7Q_6gRfLfPk9W5R917w_b25ug820","description":"Access token","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"invoiceNo\": \"INV002\",\r\n        \"refNo\": \"INV002_REF\",\r\n        \"invoiceStatus\": \"TEST\",\r\n        \"tableNo\": \"TABLE02\",\r\n        \"pax\": \"1\",\r\n        \"salesChannel\": \"DINE-IN\",\r\n        \"businessDate\": \"2025-03-24\",\r\n        \"invoiceCreatedDate\": \"2025-03-24 15:10:33\",\r\n        \"invoicePaymentDate\": \"2025-03-24 15:10:33\",\r\n        \"invoiceDiscountName\": \"\",\r\n        \"invoiceDiscountAmount\": 0,\r\n        \"invoiceDiscountType\": 0,\r\n        \"invoiceDiscountValue\": 0,\r\n        \"roundingAdj\": 0,\r\n        \"grandTotal\": 27.00,\r\n        \"taxDetails\": [\r\n            {\r\n                \"taxCode\": \"SC\",\r\n                \"taxName\": \"Service Charge 10%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            },\r\n            {\r\n                \"taxCode\": \"SST\",\r\n                \"taxName\": \"SST 6%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            }\r\n        ],\r\n        \"invoiceItems\": [\r\n            {\r\n                \"itemParentCode\": \"P-FG002\",\r\n                \"itemCode\": \"FG002\",\r\n                \"itemName\": \"SPAGHETTI CARBONARA\",\r\n                \"quantity\": 2,\r\n                \"uom\": \"unit\",\r\n                \"unitPrice\": 13.50,\r\n                \"totalPrice\": 27.00,\r\n                \"discountAmount\": 0,\r\n                \"discountType\": 0,\r\n                \"discountValue\": 0,\r\n                \"unitNetPrice\": 13.50,\r\n                \"totalNetPrice\": 27.00,\r\n                \"orderDate\": \"2025-03-14 15:10:33\",\r\n                \"orderLine\": 1,\r\n                \"taxDetails\": [\r\n                    {\r\n                        \"taxCode\": \"SC\",\r\n                        \"taxName\": \"Service Charge 10%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    },\r\n                    {\r\n                        \"taxCode\": \"SST\",\r\n                        \"taxName\": \"SST 6%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    }\r\n                ],\r\n                \"invoiceModifiers\": []\r\n            }\r\n        ],\r\n        \"invoicePayments\": [\r\n            {\r\n                \"paymentCode\": \"P001\",\r\n                \"paymentName\": \"CASH\",\r\n                \"AmountPaid\": 27.00\r\n            }\r\n        ]\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/sync/invoices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 14 Feb 2025 04:03:48 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Encoding","value":"gzip"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"invoiceNo\": \"INV002\",\n        \"isSynced\": false,\n        \"resultCode\": \"9105\",\n        \"errorMessage\": \"'invoiceStatus' is invalid.\"\n    }\n]"},{"id":"a787b47a-57df-429a-94d4-537c0c2c8b0e","name":"Expired Access Token","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6Im41K1BiaTB0QUpSNW8yMmxPVnVUWmltbVZRdkFWeEo0a0VJbGFxdjc1TFJRNkRDd1Y2czRzL0RBSEZOYXAzRXQxbUROdno4QXgzTTJRTW8rbWNrOUpIcGFTNlRscjRtRUhVejJPZlR5NEhVPSIsIm5iZiI6MTcyNjc1NTkzMSwiZXhwIjoxNzI2NzU2ODMxLCJpYXQiOjE3MjY3NTU5MzF9.N9JlzqDHT9MyylAUjtEMPVxo6W17n3S6qEVEJ4H2PQo","description":"Access token","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"invoiceNo\": \"INV002\",\r\n        \"refNo\": \"INV002_REF\",\r\n        \"invoiceStatus\": \"NEW\",\r\n        \"tableNo\": \"TABLE02\",\r\n        \"pax\": \"1\",\r\n        \"invoiceCreatedDate\": \"2025-03-24 15:10:33\",\r\n        \"invoicePaymentDate\": \"2025-03-24 15:10:33\",\r\n        \"invoiceDiscountName\": \"\",\r\n        \"invoiceDiscountAmount\": 0,\r\n        \"invoiceDiscountType\": 0,\r\n        \"invoiceDiscountValue\": 0,\r\n        \"roundingAdj\": 0,\r\n        \"grandTotal\": 27.00,\r\n        \"taxDetails\": [\r\n            {\r\n                \"taxCode\": \"SC\",\r\n                \"taxName\": \"Service Charge 10%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            },\r\n            {\r\n                \"taxCode\": \"SST\",\r\n                \"taxName\": \"SST 6%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            }\r\n        ],\r\n        \"invoiceItems\": [\r\n            {\r\n                \"itemParentCode\": \"P-FG002\",\r\n                \"itemCode\": \"FG002\",\r\n                \"itemName\": \"SPAGHETTI CARBONARA\",\r\n                \"quantity\": 2,\r\n                \"uom\": \"unit\",\r\n                \"unitPrice\": 13.50,\r\n                \"totalPrice\": 27.00,\r\n                \"discountAmount\": 0,\r\n                \"discountType\": 0,\r\n                \"discountValue\": 0,\r\n                \"unitNetPrice\": 13.50,\r\n                \"totalNetPrice\": 27.00,\r\n                \"orderDate\": \"2025-03-24 15:10:33\",\r\n                \"orderLine\": 1,\r\n                \"lineMode\": 0,\r\n                \"taxDetails\": [\r\n                    {\r\n                        \"taxCode\": \"SC\",\r\n                        \"taxName\": \"Service Charge 10%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    },\r\n                    {\r\n                        \"taxCode\": \"SST\",\r\n                        \"taxName\": \"SST 6%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    }\r\n                ],\r\n                \"invoiceModifiers\": []\r\n            }\r\n        ],\r\n        \"invoicePayments\": [\r\n            {\r\n                \"paymentCode\": \"P001\",\r\n                \"paymentName\": \"CASH\",\r\n                \"AmountPaid\": 27.00\r\n            }\r\n        ]\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/sync/invoices"},"code":702,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"0"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Sun, 22 Sep 2024 09:36:01 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Set-Cookie","value":"ARRAffinity=0caa877b5e3e00ed6a49be5f718d93ea412b0666a1ad0c886495e015b8a0fc60;Path=/;HttpOnly;Secure;Domain=codemax-posintegration-staging.azurewebsites.net"},{"key":"Set-Cookie","value":"ARRAffinitySameSite=0caa877b5e3e00ed6a49be5f718d93ea412b0666a1ad0c886495e015b8a0fc60;Path=/;HttpOnly;SameSite=None;Secure;Domain=codemax-posintegration-staging.azurewebsites.net"},{"key":"WWW-Authenticate","value":"Bearer error=\"invalid_token\""},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":null},{"id":"24ae5379-5b35-4ba1-ac9f-6d82426d2438","name":"Bad Request: Mandatory field not submitted","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6ImcxTFhtLzlKL01pNlNoMXEweFd3cjRKZ0g4dytTWER5cXBiWERIckFXbEdJZXpOL2RsWFFSTXpKQkpSaUQrTlRTNFpsa09KT0xQZ1NnRTJTcTVPUUNMbUFBNzJMZ09pdnFxcng1Z1gvaVNrPSIsIm5iZiI6MTczOTUwNTY4MCwiZXhwIjoxNzM5NTA2NTgwLCJpYXQiOjE3Mzk1MDU2ODB9.Vh-MWOSpMqiV5Ro7Q_6gRfLfPk9W5R917w_b25ug820","description":"Access token","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"invoiceNo\": \"INV002\",\r\n        \"refNo\": \"INV002_REF\",\r\n        \"tableNo\": \"TABLE02\",\r\n        \"pax\": \"1\",\r\n        \"salesChannel\": \"DINE-IN\",\r\n        \"businessDate\": \"2025-03-24\",\r\n        \"invoiceCreatedDate\": \"2025-03-24 15:10:33\",\r\n        \"invoicePaymentDate\": \"2025-03-24 15:10:33\",\r\n        \"invoiceDiscountName\": \"\",\r\n        \"invoiceDiscountAmount\": 0,\r\n        \"invoiceDiscountType\": 0,\r\n        \"invoiceDiscountValue\": 0,\r\n        \"roundingAdj\": 0,\r\n        \"grandTotal\": 27.00,\r\n        \"taxDetails\": [\r\n            {\r\n                \"taxCode\": \"SC\",\r\n                \"taxName\": \"Service Charge 10%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            },\r\n            {\r\n                \"taxCode\": \"SST\",\r\n                \"taxName\": \"SST 6%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            }\r\n        ],\r\n        \"invoiceItems\": [\r\n            {\r\n                \"itemParentCode\": \"P-FG002\",\r\n                \"itemCode\": \"FG002\",\r\n                \"itemName\": \"SPAGHETTI CARBONARA\",\r\n                \"quantity\": 2,\r\n                \"uom\": \"unit\",\r\n                \"unitPrice\": 13.50,\r\n                \"totalPrice\": 27.00,\r\n                \"discountAmount\": 0,\r\n                \"discountType\": 0,\r\n                \"discountValue\": 0,\r\n                \"unitNetPrice\": 13.50,\r\n                \"totalNetPrice\": 27.00,\r\n                \"orderDate\": \"2025-03-24 15:10:33\",\r\n                \"orderLine\": 1,\r\n                \"lineMode\": 0,\r\n                \"taxDetails\": [\r\n                    {\r\n                        \"taxCode\": \"SC\",\r\n                        \"taxName\": \"Service Charge 10%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    },\r\n                    {\r\n                        \"taxCode\": \"SST\",\r\n                        \"taxName\": \"SST 6%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    }\r\n                ],\r\n                \"invoiceModifiers\": []\r\n            }\r\n        ],\r\n        \"invoicePayments\": [\r\n            {\r\n                \"paymentCode\": \"P001\",\r\n                \"paymentName\": \"CASH\",\r\n                \"AmountPaid\": 27.00\r\n            }\r\n        ]\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/sync/invoices"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/problem+json; charset=utf-8"},{"key":"Date","value":"Fri, 14 Feb 2025 04:01:58 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"https://tools.ietf.org/html/rfc9110#section-15.5.1\",\n    \"title\": \"One or more validation errors occurred.\",\n    \"status\": 400,\n    \"errors\": {\n        \"theInvoicesObject\": [\n            \"The theInvoicesObject field is required.\"\n        ],\n        \"$[0]\": [\n            \"JSON deserialization for type 'CodemaxPosIntegrationV1.Classes.Invoice' was missing required properties, including the following: invoiceStatus\"\n        ]\n    },\n    \"traceId\": \"00-e7059ef82fce11e38c8e62fd139e6848-1a444257d5c01f24-00\"\n}"},{"id":"1e950887-5c4d-4047-bbbd-9737326e7a49","name":"Refund Item","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6ImcxTFhtLzlKL01pNlNoMXEweFd3cjRKZ0g4dytTWER5cXBiWERIckFXbEdJZXpOL2RsWFFSTXpKQkpSaUQrTlRTNFpsa09KT0xQZ1NnRTJTcTVPUUNMbUFBNzJMZ09pdnFxcng1Z1gvaVNrPSIsIm5iZiI6MTc2MjM5MzY1NSwiZXhwIjoxNzYyMzk0NTU1LCJpYXQiOjE3NjIzOTM2NTV9.TE5bqmU3xhnZYEUSgAMb1GdCmHmoE_2eS-8BkP0tGpU","description":"Access token","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"invoiceNo\": \"INVREF001\",\r\n        \"refNo\": \"INVREF001_REF\",\r\n        \"invoiceStatus\": \"REFUND\",\r\n        \"tableNo\": \"TABLE01\",\r\n        \"pax\": \"1\",\r\n        \"salesChannel\": \"DINE-IN\",\r\n        \"businessDate\": \"2025-05-01\",\r\n        \"invoiceCreatedDate\": \"2025-05-01 16:00:33\",\r\n        \"invoicePaymentDate\": \"2025-05-01 16:00:33\",\r\n        \"invoiceDiscountName\": \"\",\r\n        \"invoiceDiscountAmount\": 0,\r\n        \"invoiceDiscountType\": 0,\r\n        \"invoiceDiscountValue\": 0,\r\n        \"roundingAdj\": 0,\r\n        \"grandTotal\": 12.80,\r\n        \"taxDetails\": [\r\n            {\r\n                \"taxCode\": \"SC\",\r\n                \"taxName\": \"Service Charge 10%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            },\r\n            {\r\n                \"taxCode\": \"SST\",\r\n                \"taxName\": \"SST 6%\",\r\n                \"taxAmount\": 0,\r\n                \"taxPercentage\": 0\r\n            }\r\n        ],\r\n        \"invoiceItems\": [\r\n            {\r\n                \"itemParentCode\": \"P-FG002\",\r\n                \"itemCode\": \"FG002\",\r\n                \"itemName\": \"SPAGHETTI CARBONARA\",\r\n                \"quantity\": 1,\r\n                \"uom\": \"unit\",\r\n                \"unitPrice\": 13.50,\r\n                \"totalPrice\": 27.00,\r\n                \"discountAmount\": 0,\r\n                \"discountType\": 0,\r\n                \"discountValue\": 0,\r\n                \"unitNetPrice\": 13.50,\r\n                \"totalNetPrice\": 27.00,\r\n                \"orderDate\": \"2025-05-01 16:00:33\",\r\n                \"orderLine\": 1,\r\n                \"lineMode\": 0,\r\n                \"taxDetails\": [\r\n                    {\r\n                        \"taxCode\": \"SC\",\r\n                        \"taxName\": \"Service Charge 10%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    },\r\n                    {\r\n                        \"taxCode\": \"SST\",\r\n                        \"taxName\": \"SST 6%\",\r\n                        \"taxAmount\": 0,\r\n                        \"taxPercentage\": 0\r\n                    }\r\n                ],\r\n                \"invoiceModifiers\": []\r\n            }\r\n        ],\r\n        \"invoicePayments\": [\r\n            {\r\n                \"paymentCode\": \"P001\",\r\n                \"paymentName\": \"CASH\",\r\n                \"AmountPaid\": 27.00\r\n            }\r\n        ]\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/sync/invoices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 06 Nov 2025 01:49:01 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Encoding","value":"gzip"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"invoiceNo\": \"INVREF001\",\n        \"isSynced\": true,\n        \"resultCode\": \"9000\",\n        \"errorMessage\": \"\"\n    }\n]"}],"_postman_id":"c75b8cc2-bec7-4bcd-95c5-830dd599a837"},{"name":"Refresh Authentication","id":"a2ae818a-3cd7-4fcd-bff3-fc81e65c583e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6Im41K1BiaTB0QUpSNW8yMmxPVnVUWmltbVZRdkFWeEo0a0VJbGFxdjc1TFJRNkRDd1Y2czRzL0RBSEZOYXAzRXQxbUROdno4QXgzTTJRTW8rbWNrOUpIcGFTNlRscjRtRUhVejJPZlR5NEhVPSIsIm5iZiI6MTcyNzA3MzQxMCwiZXhwIjoxNzI3MDc0MzEwLCJpYXQiOjE3MjcwNzM0MTB9.Xzz3rbj9IUqFeFjXGNDV9-hCrPnBWZKUUBPkAZHiM6M\",\r\n    \"refreshToken\": \"40cfc9e9-421b-4e84-91dd-cd0320aa3077\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/user/refreshauth","description":"<p>If the response code returned from Sync Invoices API is 702, call this API by submitting both the existing access and refresh tokens. Upon validation, a new set of access and refresh tokens will be returned. If the submitted refresh token does not match with server's record, a response code of 706 will be returned ,and you will need to call Authentication API to obtain a new set of access and refresh token by using the provided login credentials.</p>\n","urlObject":{"protocol":"https","path":["api","v1","user","refreshauth"],"host":["codemax-posintegration-staging","azurewebsites","net"],"query":[],"variable":[]}},"response":[{"id":"e238f779-1bae-49ca-8d3f-bf6d8051ab70","name":"With valid tokens","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6Im41K1BiaTB0QUpSNW8yMmxPVnVUWmltbVZRdkFWeEo0a0VJbGFxdjc1TFJRNkRDd1Y2czRzL0RBSEZOYXAzRXQxbUROdno4QXgzTTJRTW8rbWNrOUpIcGFTNlRscjRtRUhVejJPZlR5NEhVPSIsIm5iZiI6MTcyNjgwNTMxNSwiZXhwIjoxNzI2ODA2MjE1LCJpYXQiOjE3MjY4MDUzMTV9.D7kVayKCiduwSV1YO7WIftL3z_9QilYglkbzag1VO4Y\",\r\n    \"refreshToken\": \"df6008be-3893-4022-96f5-e7f48abea8d3\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/user/refreshauth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 20 Sep 2024 04:08:51 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Encoding","value":"gzip"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6Im41K1BiaTB0QUpSNW8yMmxPVnVUWmltbVZRdkFWeEo0a0VJbGFxdjc1TFJRNkRDd1Y2czRzL0RBSEZOYXAzRXQxbUROdno4QXgzTTJRTW8rbWNrOUpIcGFTNlRscjRtRUhVejJPZlR5NEhVPSIsIm5iZiI6MTcyNjgwNTMzMiwiZXhwIjoxNzI2ODA2MjMyLCJpYXQiOjE3MjY4MDUzMzJ9.6F8CPpUrLkaMBgzhZjj-Xe14RSZy7yOr7CegXVoQvpM\",\n    \"refreshToken\": \"15582bb8-6ae3-4083-af3a-9ae74a304643\"\n}"},{"id":"4981fd21-cd0e-4542-98d0-6629cad508fc","name":"With Invalid Access Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6Im41K1BiaTB0QUpSNW8yMmxPVnVUWmltbVZRdkFWeEo0a0VJbGFxdjc1TFJRNkRDd1Y2czRzL0RBSEZOYXAzRXQxbUROdno4QXgzTTJRTW8rbWNrOUpIcGFTNlRscjRtRUhVejJPZlR5NEhVPSIsIm5iZiI6MTcyNjc1NTgxOSwiZXhwIjoxNzI2NzU2NzE5LCJpYXQiOjE3MjY3NTU4MTl9.OJv8t7LubTnoX4GkQrsSOnT31dRjPdMLmCH9H27ZWSs\",\r\n    \"refreshToken\": \"40cfc9e9-421b-4e84-91dd-cd0320aa3077\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/user/refreshauth"},"code":701,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 23 Sep 2024 08:49:58 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Set-Cookie","value":"ARRAffinity=1dad761c57dbf38e357e256e5c10cada67a95bb99dad8edcf8a2b89bf8df75fa;Path=/;HttpOnly;Secure;Domain=codemax-posintegration-staging.azurewebsites.net"},{"key":"Set-Cookie","value":"ARRAffinitySameSite=1dad761c57dbf38e357e256e5c10cada67a95bb99dad8edcf8a2b89bf8df75fa;Path=/;HttpOnly;SameSite=None;Secure;Domain=codemax-posintegration-staging.azurewebsites.net"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access token does not match with server record.\"\n}"},{"id":"36e455c6-1dcc-432c-89e9-e0c29262eb28","name":"With Invalid Refresh Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6Im41K1BiaTB0QUpSNW8yMmxPVnVUWmltbVZRdkFWeEo0a0VJbGFxdjc1TFJRNkRDd1Y2czRzL0RBSEZOYXAzRXQxbUROdno4QXgzTTJRTW8rbWNrOUpIcGFTNlRscjRtRUhVejJPZlR5NEhVPSIsIm5iZiI6MTcyNzA3MzQxMCwiZXhwIjoxNzI3MDc0MzEwLCJpYXQiOjE3MjcwNzM0MTB9.Xzz3rbj9IUqFeFjXGNDV9-hCrPnBWZKUUBPkAZHiM6M\",\r\n    \"refreshToken\": \"40cfc9e9-421b-4e84-91dd-cd0320aa3077\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://codemax-posintegration-staging.azurewebsites.net/api/v1/user/refreshauth"},"code":706,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 23 Sep 2024 08:53:11 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Refresh token does not match with server record.\"\n}"}],"_postman_id":"a2ae818a-3cd7-4fcd-bff3-fc81e65c583e"}]}