{"info":{"_postman_id":"d591334c-5db6-47d1-97c8-bf8ac7fe7a28","name":"Rewaa Platform","description":"<html><head></head><body><h3>Overview</h3>\nRewaa product is a retail management comprehnsive SaaS solution that gives reatilers  full control over their products they sell. With many internal and external plugins and services retailers can control the full cycle of selling starting with suppliers, selling channels, warehouses, accounting and invoices, order fullfilment and more. \n\n\n\n<h3>Integration</h3>\nRewaa is integrating with external parties through secure REST APIs and the goal in best case scenario is bidirectional integration (sync between Rewaa and the external system data in two directions). \n    <br>\n    1- Rewaa is pushing updates to external channels using the external channel REST APIs. \n    <br>\n    2- receive updates from external channels through webhooks as push based integration.\n<br><br>\nexternal channel should provide endpoints to subscribe webhooks URLs and is responsible to send any update or create through these registered webhooks. Rewaa register webhooks url with its internal user references to map events once received from external channels\ncheck the webhooks integration with Woocommerce example \n\n<h3>Terminology</h3>\nWebhook: A webhook (also called a web callback or HTTP push API) is a way for an app to provide other applications with real-time information. </body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11358802","collectionId":"d591334c-5db6-47d1-97c8-bf8ac7fe7a28","publishedId":"TW6wL9V7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"1dadac"},"publishDate":"2021-05-18T11:15:26.000Z"},"item":[{"name":"authentication","item":[{"name":"authenticate","id":"95ce587f-f337-4ad7-8509-b966ccbdf69a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"amrhesham.fci@gmail.com\",\n    \"password\": \"asd123ASD!@#\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/authenticate","description":"<p>Following the attached example you can pass your user name and password to this rest endpoint and use the idToken to authenticate against all other Rewaa APIs. \nNOTE: Tokens get invalidated after an hour and clients (caller of APIs) should handle this by using eighter refresh token to get new valid tokens</p>\n","urlObject":{"protocol":"https","path":["authenticate"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"3c5aca8c-9794-44da-8a70-41e2da056437","name":"authenticate","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"amr.ali@rewaatech.com\",\n    \"password\": \"XYZ\"\n}","options":{"raw":{"language":"json"}}},"url":"{{environment}}/authenticate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 10 Jun 2020 13:37:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3854"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"15f95bd8-d1ca-4055-8528-6ff9f810c7d8"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"},{"key":"x-amz-apigw-id","value":"N6hEiHmroAMF8fQ="},{"key":"Access-Control-Allow-Methods","value":"OPTIONS,POST,GET,DELETE,PUT"},{"key":"X-Amzn-Trace-Id","value":"Root=1-5ee0e21c-59fd41d4f44304fa7361356a;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"eyJraWQiOiIzNnBqekJ1VWZzY1JOWkVGRTlpTmZyUzlnOUlrYU1rUzJoVU1UbDhMWVJrPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiI2ZjVlMzI4OC1lZjkxLTRlZDUtYmIyYi0yNjFmZTA0NGQyOTUiLCJldmVudF9pZCI6IjBmNzc4NjlhLWY5NmQtNDdkMy1hYjc0LTAyNzg0YzE2ODYxZCIsInRva2VuX3VzZSI6ImFjY2VzcyIsInNjb3BlIjoiYXdzLmNvZ25pdG8uc2lnbmluLnVzZXIuYWRtaW4iLCJhdXRoX3RpbWUiOjE1OTE3OTYyNTMsImlzcyI6Imh0dHBzOlwvXC9jb2duaXRvLWlkcC51cy1lYXN0LTEuYW1hem9uYXdzLmNvbVwvdXMtZWFzdC0xX2dYaEFFbHIxcyIsImV4cCI6MTU5MTc5OTg1MywiaWF0IjoxNTkxNzk2MjU0LCJqdGkiOiIwZDUxYzVjMC02MDc5LTRlZDUtODU3NS01OTgzMDk0OGU2NDEiLCJjbGllbnRfaWQiOiI0Nmo3YWdtNjRkMzFnMjlxa2dqc3NpaWN2NiIsInVzZXJuYW1lIjoiYW1yLmFsaUByZXdhYXRlY2guY29tIn0.Yo7IgkqHs_Bq1Ac2arYg0eaz2W1pxZ4JT7pEXJ5xrbCqCt7z9lzjgmF7bnbkedqYjqaALUDGGF8YHPfrmRoPPeUumnK4i6AEcIAKO1b9h8z-QxyzoEetdntAcmZbEr4V7Wi1yItF2weR1n8If85HSo8uN0mfB3-MdznZD23AagEt2Lp-drNl1O8LsTOSpnCY_mOLojBls0zqFcgBPZc8KiRScMV6mXoiZ62vHFBXzMu3FVMMUwxE1vjhpMWk2q8qkH3j4KBhek6LOhuEduwjT8XFMIazbJNzvBmsUoZ_brEruz6muYVSHHhw3vDX1k9kLUyeqBMgoxcMS2V8SS2nKQ\",\n    \"refreshToken\": \"eyJjdHkiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiUlNBLU9BRVAifQ.b8kuTeoRpJRkFdFlOkl0F-vOGo_t0eITWq0NoUlI3CBq5So6htdSTHzgTB1F4Qlzio0rgzEYfD9qojq-mrwv9rVQ4cIgkriqyrhDx2sHQ3t340TjKXUJBigYXBycoe6zyLtbVpLWWq3_-b_B-xQuuweIbEMJNpSh0SzJ3TVOh5g2fMtoQrfuzhJtHr2BsZkEtn_k09H2lSUoQ6gD1XyXDp97E55q-ZRAtVip3XWjSvqy_tsJMDjPA4rT3qvBKLyKhNMmPIjCstAgzgY1WzlqKre8eKxxcwFansXZ_q0OyfZG6zMhBvokeUWoxSElCX20JidQMDD0ytMUqqJbVLFUBA.MpKzfj2W7yl0bM8c.KS7MHvVMjM1xfrKTYZvfRYZkcLrRDxIR4PgqxER2QqyO0_JGpXd2chN8Ejg-y7_zLQ9cVVrbscGbd8Ll1uex_yTyTslK8VlIPLGjI-hjmpmr7M87y8mfvT4yYpOkUTSe6Z_Nz9qk60BYnOBTGs4MKiIsMl6R-od10cGrZzjHMrrTqVWWcIxVDmQd5yAiayrmuzZ7l2FdbFQYmQRtmdnjG4nb7X_CXrFmzdxusNqfRArTCc2Mlr5Hf77tIql7mnfxlXKAPJHya3kqJfe4YwyVGqRcl9nV9a9w-h2LjzxBa3Ul_LN6VzTab_fWZDjD-qK1UXELb4EeVCbNp7I_Z0I_zelGh9FOMsnjrepIlAJ_BfFhjSop3bxuXtBOpiqbf94KcIg-E694b1pj7NyuYIntJqYoB0cJS_ZtKoPUMvLwUfEPTwFM66u0ljgJtCqDj-rD-0AaaXpQaSQ3bPUGMJsEP2xzdzOr2j8HutYeHNMkJCirvfPe_XjT6j-wG7DoCWsPTiCPQuGtncc06l7ttBmnMlvJcrZl7wosaZS3JZ_63WVmGfFSbvuLqe_wkaJx2oKGeh_48TCJUapnnauq_QHgT6NL05FGXPD-HkFsVuRvH8w9ySQxG77rNAEZqAbw3VbovB-JVyMPO-XkRWzS7ZDNmy9toRentTPhDucRkH-NbD-dxPKT9z-XkxB7ado_vM8RY3Vw_LLo9IdjaTtzNTxJlrxQYal14XqSutuNiC9gNJNhBW-nzcoQt03iqapbC00FsibZzJGFUWtxqFVD56yslFjQ7TXWfTlK_NnfV7bMSgtpCXFT7sGOaxINQehMXPrFfAWPQ7tWP0Vil5S6OmwUQ-x4lXc4U5A9ivQoSE5BwMkvGjrAPeZ4fSrBIy1FEC_Gf34I3msWhzIssgVfRzvaZsSFbd2Dhg1-HfxBY5Qqw4L3Zcv5esRXztiHFASGCgYs7l9YYbVCpkm0I3qiSkeWlk7OEsoI7xKnO1zLyKhEI_iyugR7qwyEwlomzMrC_hjwtIz9tDqZp4nZ_hxqPPsgYouN-QVASWJtahxFc7naJRifA-nue_wKdCphmiFD0BXTfn89gEvH9gzmZrvuGsaQTD7KoQfBqC6vq1WKSfMcdPXZyqHmsMx9DLN32_VXYJdTSBIFZZcv21e9Rm_xtbQ25-o4EBIo2-trdCO22e8YVc9j-Odc13oQ8yCAGiwpkIyJ4yw_KUZJrmUXb32xd9wOxTzO8icJLcYN-ASFeiY1MgytJzxzEn12vg8B3LbMUDZ68ZCm4kEKOKQnpSwAopKGVaWcFfWqDwc.olYs9hySavYI3oIOTbqH-w\",\n    \"idToken\": \"eyJraWQiOiJWUGtBQVg2OGlVdjRqbXZ0YzZcL0JlVTdqUVA1WWRnV1BrcEpoYWRpemUzdz0iLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiI2ZjVlMzI4OC1lZjkxLTRlZDUtYmIyYi0yNjFmZTA0NGQyOTUiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiY3VzdG9tOmNvbXBhbnlfbmFtZSI6ImFtciIsImlzcyI6Imh0dHBzOlwvXC9jb2duaXRvLWlkcC51cy1lYXN0LTEuYW1hem9uYXdzLmNvbVwvdXMtZWFzdC0xX2dYaEFFbHIxcyIsInBob25lX251bWJlcl92ZXJpZmllZCI6ZmFsc2UsImNvZ25pdG86dXNlcm5hbWUiOiJhbXIuYWxpQHJld2FhdGVjaC5jb20iLCJhdWQiOiI0Nmo3YWdtNjRkMzFnMjlxa2dqc3NpaWN2NiIsImV2ZW50X2lkIjoiMGY3Nzg2OWEtZjk2ZC00N2QzLWFiNzQtMDI3ODRjMTY4NjFkIiwiY3VzdG9tOnNjaGVtYV9uYW1lIjoiZGJfY2xpZW50X2FtciIsInRva2VuX3VzZSI6ImlkIiwiYXV0aF90aW1lIjoxNTkxNzk2MjUzLCJleHAiOjE1OTE3OTk4NTMsImlhdCI6MTU5MTc5NjI1NCwiZW1haWwiOiJhbXIuYWxpQHJld2FhdGVjaC5jb20ifQ.BxjACutP8g-fwW5g_5C3ZzSJtAtf5WmY5fPKFEAJImNSNfQz2ufFgHPs-T2BuvWeQRMJbFPy_U4OGeVS2WY2G_SI0vUdvf-Lb9uCMjk5OHpTqrGvuAwN8K7lhsgqBgWFWQyhWlCjntvzjCZmQhPSgNJVUIKOvjPFqaQ-W4OKamXAwZMGSbVMtTuQ9AzY821L2up_vqEte6SmRUa4Qp1XiKZ8l-0x8_m8a1nLgjHfS5lv81xgxjYp7620HCoeLx4eyHF9ch6rgjOpCS7LLoXKXEfTG1-LN5NEINGRfBbGTcAuKmbykBtoUOxwzmtzjWV0KOOXHOQeGwPwcrcp22NUTg\"\n}"}],"_postman_id":"95ce587f-f337-4ad7-8509-b966ccbdf69a"}],"id":"04180c0a-2ba1-4c57-b9ea-bf2f27f19d51","_postman_id":"04180c0a-2ba1-4c57-b9ea-bf2f27f19d51","description":""},{"name":"product","item":[{"name":"get all products","id":"52f5eb23-59c7-42b6-9023-a3cbddaba910","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"url":"https://{{rewaa-url}}/products?offset=0&limit=5","urlObject":{"protocol":"https","path":["products"],"host":["{{rewaa-url}}"],"query":[{"key":"offset","value":"0"},{"key":"limit","value":"5"}],"variable":[]}},"response":[{"id":"aed7308c-b5cd-46d7-b491-5496aec49458","name":"get all products","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"url":{"raw":"{{environment}}/products?offset=0&limit=5","host":["{{environment}}"],"path":["products"],"query":[{"key":"offset","value":"0"},{"key":"limit","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"access-control-allow-headers","value":"Content-Type"},{"key":"access-control-allow-methods","value":"OPTIONS,POST,GET,DELETE,PUT"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"vary","value":"origin,accept-encoding"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"},{"key":"content-encoding","value":"gzip"},{"key":"Date","value":"Thu, 14 May 2020 15:30:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": [\n        {\n            \"name\": \"variablefordocs\",\n            \"description\": \"\",\n            \"options\": [\n                {\n                    \"option\": \"Color\",\n                    \"values\": [\n                        \"red\",\n                        \"blue\"\n                    ]\n                }\n            ],\n            \"batchTracked\": false,\n            \"Brand\": 1,\n            \"ProductTypeId\": 1,\n            \"ProductVariants\": [\n                {\n                    \"name\": \"variablefordocs-red\",\n                    \"sku\": \"VARA01\",\n                    \"buyPrice\": 22,\n                    \"retailPrice\": 0,\n                    \"wholeSalePrice\": 0,\n                    \"isSellable\": false,\n                    \"weight\": 0\n                },\n                {\n                    \"name\": \"variablefordocs-blue\",\n                    \"sku\": \"VARA02\",\n                    \"buyPrice\": 33,\n                    \"retailPrice\": 0,\n                    \"wholeSalePrice\": 0,\n                    \"isSellable\": false,\n                    \"weight\": 0\n                }\n            ]\n        }\n    ],\n    \"total\": 59\n}"}],"_postman_id":"52f5eb23-59c7-42b6-9023-a3cbddaba910"},{"name":"get product by id","id":"e68a76fd-9d87-48ed-aebf-2c6991a320a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/products/{productId}","urlObject":{"protocol":"https","path":["products","{productId}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"c27930f2-b4c3-4901-95a2-ef6ac6e26fdd","name":"get product by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/products/180"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 180,\n    \"name\": \"variablefordocs\",\n    \"description\": \"\",\n    \"options\": [\n        {\n            \"option\": \"Color\",\n            \"values\": [\n                \"red\",\n                \"blue\"\n            ]\n        }\n    ],\n    \"batchTracked\": false,\n    \"Brand\": 1,\n    \"ProductTypeId\": 1,\n    \"ProductVariants\": [\n        {\n            \"name\": \"variablefordocs-red\",\n            \"sku\": \"VARA01\",\n            \"buyPrice\": 22,\n            \"retailPrice\": 0,\n            \"wholeSalePrice\": 0,\n            \"isSellable\": false,\n            \"weight\": 0\n        },\n        {\n            \"name\": \"variablefordocs-blue\",\n            \"sku\": \"VARA02\",\n            \"buyPrice\": 33,\n            \"retailPrice\": 0,\n            \"wholeSalePrice\": 0,\n            \"isSellable\": false,\n            \"weight\": 0\n        }\n    ]\n}"}],"_postman_id":"e68a76fd-9d87-48ed-aebf-2c6991a320a1"},{"name":"update product quantity","id":"df9f901f-f558-46f2-b6a8-0d56542252ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"[\n    {\n        \"id\": 77,\n        \"name\": \"pos\",\n        \"qty\": \"1\",\n        \"variantId\": 454,\n        \"locationId\": 4\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/variants/stockUpdate","urlObject":{"protocol":"https","path":["variants","stockUpdate"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"df9f901f-f558-46f2-b6a8-0d56542252ef"},{"name":"create product","id":"f77932ee-fdd7-48e9-8b7c-542cfaf91371","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/products","urlObject":{"protocol":"https","path":["products"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"01e6c2f2-2fff-4c4e-8ea6-659b14180f4f","name":"with sample product","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"pro3\",\r\n    \"description\": \"\",\r\n    \"batchTracked\": false,\r\n    \"brandId\": 1,\r\n    \"productTypeId\": 1,\r\n    \"ProductVariants\": [\r\n        {\r\n            \"name\": \"pro3\",\r\n            \"initialStock\": 0,\r\n            \"sku\": \"pro3\",\r\n            \"initialCost\": 0,\r\n            \"isSellable\": false,\r\n            \"weight\": 0,\r\n            \"weightUnit\": \"g\",\r\n            \"ProductVariantToStockLocations\": [\r\n                {\r\n                    \"buyPrice\": 3.3,\r\n                    \"retailPrice\": 3.3,\r\n                    \"wholeSalePrice\": 3.3,\r\n                    \"quantity\": 0,\r\n                    \"stockLocationId\": 1,\r\n                    \"taxId\": 1\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/products"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"7fd84047-974b-40ec-b4b6-8ef675e5596c","name":"with variable product","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"variablefordocs\",\r\n    \"description\": \"\",\r\n    \"options\": [\r\n        {\r\n            \"option\": \"Color\",\r\n            \"values\": [\r\n                \"red\",\r\n                \"blue\"\r\n            ]\r\n        }\r\n    ],\r\n    \"batchTracked\": false,\r\n    \"Brand\": 1,\r\n    \"ProductTypeId\": 1,\r\n    \"ProductVariants\": [\r\n        {\r\n            \"name\": \"variablefordocs-red\",\r\n            \"sku\": \"VARA01\",\r\n            \"buyPrice\": 22,\r\n            \"retailPrice\": 0,\r\n            \"wholeSalePrice\": 0,\r\n            \"isSellable\": false,\r\n            \"weight\": 0\r\n        },\r\n        {\r\n            \"name\": \"variablefordocs-blue\",\r\n            \"sku\": \"VARA02\",\r\n            \"buyPrice\": 33,\r\n            \"retailPrice\": 0,\r\n            \"wholeSalePrice\": 0,\r\n            \"isSellable\": false,\r\n            \"weight\": 0\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/products"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"f77932ee-fdd7-48e9-8b7c-542cfaf91371"},{"name":"delete products","id":"3365243f-221f-4607-a74e-c7d735c1fcc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/products","urlObject":{"protocol":"https","path":["products"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"c237d991-a74d-4692-8652-db475bbed55a","name":"delete products","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":{"raw":"https://{{rewaa-url}}/products?ids=1,23,45","protocol":"https","host":["{{rewaa-url}}"],"path":["products"],"query":[{"key":"ids","value":"1,23,45"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"3365243f-221f-4607-a74e-c7d735c1fcc8"},{"name":"update product","id":"6affa056-a62e-474c-aff8-e4cbf42f5c0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/products/{productId}","urlObject":{"protocol":"https","path":["products","{productId}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"05072ae4-7255-403d-837c-76ef4775709e","name":"update product","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"pro3\",\r\n    \"description\": \"\",\r\n    \"batchTracked\": false,\r\n    \"brandId\": 1,\r\n    \"productTypeId\": 1,\r\n    \"ProductVariants\": [\r\n        {\r\n            \"name\": \"pro3\",\r\n            \"initialStock\": 0,\r\n            \"sku\": \"pro3\",\r\n            \"initialCost\": 0,\r\n            \"isSellable\": false,\r\n            \"weight\": 0,\r\n            \"weightUnit\": \"g\",\r\n            \"ProductVariantToStockLocations\": [\r\n                {\r\n                    \"buyPrice\": 3.3,\r\n                    \"retailPrice\": 3.3,\r\n                    \"wholeSalePrice\": 3.3,\r\n                    \"quantity\": 0,\r\n                    \"stockLocationId\": 1,\r\n                    \"taxId\": 1\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/products/1"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"6affa056-a62e-474c-aff8-e4cbf42f5c0a"},{"name":"product publish","id":"188335ef-cf47-4771-a482-618daec8eb5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/products/publish","urlObject":{"protocol":"https","path":["products","publish"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"228a7624-a7c8-405b-a173-8c74de1802b2","name":"product publish","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"id\": 1\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"https://{{rewaa-url}}/products/publish?app=woocommerce","protocol":"https","host":["{{rewaa-url}}"],"path":["products","publish"],"query":[{"key":"app","value":"woocommerce"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"188335ef-cf47-4771-a482-618daec8eb5e"},{"name":"save product image","id":"c6d3ea4c-fcc9-4780-b56e-d3b921f7ce63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/products/{productId}/images","urlObject":{"protocol":"https","path":["products","{productId}","images"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6d3ea4c-fcc9-4780-b56e-d3b921f7ce63"},{"name":"get product image","id":"ee4586aa-4ca6-4180-88b6-8bbaf2ad3ea6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/products/{productId}/images","urlObject":{"protocol":"https","path":["products","{productId}","images"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee4586aa-4ca6-4180-88b6-8bbaf2ad3ea6"},{"name":"get products templete","id":"3b7f92e3-a3b6-456b-a04f-4cb9113c8ded","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/products/templates","urlObject":{"protocol":"https","path":["products","templates"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3b7f92e3-a3b6-456b-a04f-4cb9113c8ded"},{"name":"product unpublish","id":"edebcbe2-f02d-4924-bd1d-a8b376325ff6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/products/unPublish?app","urlObject":{"protocol":"https","path":["products","unPublish"],"host":["{{rewaa-url}}"],"query":[{"key":"app","value":""}],"variable":[]}},"response":[{"id":"2029a35e-51a9-4c22-9400-5916a423ec93","name":"product unpublish","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"id\": 1\r\n    },\r\n    {\r\n        \"id\": 2\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"https://{{rewaa-url}}/products/unPublish?app=woocommerce","protocol":"https","host":["{{rewaa-url}}"],"path":["products","unPublish"],"query":[{"key":"app","value":"woocommerce"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"edebcbe2-f02d-4924-bd1d-a8b376325ff6"},{"name":"import product","id":"b97cb5ce-ee50-40ea-a936-d82ded0079bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/products/imports","urlObject":{"protocol":"https","path":["products","imports"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"47731e93-5c02-4de8-b1d1-ea13b965fbea","name":"import product","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fileName\": \"products_import_1.csv\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/products/imports"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"b97cb5ce-ee50-40ea-a936-d82ded0079bf"}],"id":"7ab8e40d-f35e-4cc2-832e-c2035dd9712f","_postman_id":"7ab8e40d-f35e-4cc2-832e-c2035dd9712f","description":""},{"name":"stock location","item":[{"name":"create stock location","id":"2403eb5b-4574-4340-8d78-dd35dd5043c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/stock-location","urlObject":{"protocol":"https","path":["stock-location"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"f3c99ae9-dba3-42aa-abfe-12544c005654","name":"create stock location","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"body":{"mode":"raw","raw":"{\n    \"isActive\": true,\n    \"name\": \"test112\",\n    \"code\": \"test112\",\n    \"buildingNo\": \"building\",\n    \"streetName\": \"street\",\n    \"districtName\": \"\",\n    \"city\": \"Riyadh\",\n    \"zipCode\": \"11011\",\n    \"countryId\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/stock-location"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"2403eb5b-4574-4340-8d78-dd35dd5043c0"},{"name":"list stock locations","id":"5e0fd6ea-7bf8-4d88-809d-0f7c2ae70b6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/stock-location","urlObject":{"protocol":"https","path":["stock-location"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"2bf13061-f71b-4347-816c-e71292b5d05d","name":"list stock locations","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"{{environment}}/stock-location"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"access-control-allow-headers","value":"Content-Type"},{"key":"access-control-allow-methods","value":"OPTIONS,POST,GET,DELETE,PUT"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"vary","value":"origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"},{"key":"content-length","value":"277"},{"key":"accept-ranges","value":"bytes"},{"key":"Date","value":"Thu, 14 May 2020 15:33:40 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"default\",\n        \"description\": \"\",\n        \"city\": \"\",\n        \"countryId\": \"\",\n        \"doesHoldStock\": null,\n        \"buildingNo\": \"\",\n        \"streetName\": \"\",\n        \"zipCode\": \"\",\n        \"isActive\": true,\n        \"districtName\": \"\",\n        \"code\": \"DEF\",\n        \"id\": 1,\n        \"createdAt\": null,\n        \"updatedAt\": null,\n        \"deletedAt\": null\n    },\n    {\n        \"name\": \"Bangalore\",\n        \"description\": \"\",\n        \"city\": \"\",\n        \"countryId\": \"\",\n        \"doesHoldStock\": null,\n        \"buildingNo\": \"\",\n        \"streetName\": \"\",\n        \"zipCode\": \"\",\n        \"isActive\": true,\n        \"districtName\": \"\",\n        \"code\": \"123456\",\n        \"id\": 2,\n        \"createdAt\": \"2021-01-05T11:39:12.000Z\",\n        \"updatedAt\": \"2021-01-05T11:39:12.000Z\",\n        \"deletedAt\": null\n    }\n]"}],"_postman_id":"5e0fd6ea-7bf8-4d88-809d-0f7c2ae70b6f"},{"name":"get all location stocks","id":"d6267904-3df9-4323-8f78-18563cb523ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/all-location-stocks","urlObject":{"protocol":"https","path":["all-location-stocks"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"0a4844b3-d418-479b-b403-93f1f668d849","name":"get all location stocks","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/all-location-stocks"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"locationId\": 1,\n        \"totalStock\": \"30\",\n        \"channelMapped\": 0\n    },\n    {\n        \"locationId\": 2,\n        \"totalStock\": \"0\",\n        \"channelMapped\": 0\n    }\n]"}],"_postman_id":"d6267904-3df9-4323-8f78-18563cb523ce"},{"name":"get active list stock locations","id":"5479ff65-7dc1-4a6c-9bb8-c346a71cbc77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/stock-location/active","urlObject":{"protocol":"https","path":["stock-location","active"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"6f2b103b-d6cb-4104-ab72-815be3061fb1","name":"get active list stock locations","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/stock-location/active"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"default\",\n        \"description\": \"\",\n        \"city\": \"\",\n        \"countryId\": \"\",\n        \"doesHoldStock\": null,\n        \"buildingNo\": \"\",\n        \"streetName\": \"\",\n        \"zipCode\": \"\",\n        \"isActive\": true,\n        \"districtName\": \"\",\n        \"code\": \"DEF\",\n        \"id\": 1,\n        \"createdAt\": null,\n        \"updatedAt\": null,\n        \"deletedAt\": null\n    },\n    {\n        \"name\": \"Bangalore\",\n        \"description\": \"\",\n        \"city\": \"\",\n        \"countryId\": \"\",\n        \"doesHoldStock\": null,\n        \"buildingNo\": \"\",\n        \"streetName\": \"\",\n        \"zipCode\": \"\",\n        \"isActive\": true,\n        \"districtName\": \"\",\n        \"code\": \"123456\",\n        \"id\": 2,\n        \"createdAt\": \"2021-01-05T11:39:12.000Z\",\n        \"updatedAt\": \"2021-01-05T11:39:12.000Z\",\n        \"deletedAt\": null\n    }\n]"}],"_postman_id":"5479ff65-7dc1-4a6c-9bb8-c346a71cbc77"},{"name":"get stock location by code","id":"54d2369a-df64-4528-9dab-405354ec59d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/stock-location/code/{code}","urlObject":{"protocol":"https","path":["stock-location","code","{code}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"7ce71762-a021-43c0-a574-635feb2118cf","name":"get stock location by code","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/stock-location/code/123456"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Bangalore\",\n    \"description\": \"\",\n    \"city\": \"\",\n    \"countryId\": \"\",\n    \"doesHoldStock\": null,\n    \"buildingNo\": \"\",\n    \"streetName\": \"\",\n    \"zipCode\": \"\",\n    \"isActive\": true,\n    \"districtName\": \"\",\n    \"code\": \"123456\",\n    \"id\": 2,\n    \"createdAt\": \"2021-01-05T11:39:12.000Z\",\n    \"updatedAt\": \"2021-01-05T11:39:12.000Z\",\n    \"deletedAt\": null\n}"}],"_postman_id":"54d2369a-df64-4528-9dab-405354ec59d2"},{"name":"update stock location","id":"3adb044c-236f-40e2-8e62-3213c7a90306","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/stock-location/{locationId}","urlObject":{"protocol":"https","path":["stock-location","{locationId}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"80aa5973-7ae8-4fca-8a9d-0c1edef6b530","name":"update stock location","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"isActive\": true,\r\n    \"name\": \"test112\",\r\n    \"code\": \"test112\",\r\n    \"buildingNo\": \"building\",\r\n    \"streetName\": \"street\",\r\n    \"districtName\": \"\",\r\n    \"city\": \"Riyadh\",\r\n    \"zipCode\": \"11011\",\r\n    \"countryId\": \"1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/stock-location/1"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"3adb044c-236f-40e2-8e62-3213c7a90306"}],"id":"0d4becd6-4856-4dee-90f6-c4e9a04ba887","_postman_id":"0d4becd6-4856-4dee-90f6-c4e9a04ba887","description":""},{"name":"invoices","item":[{"name":"purchase orders","item":[{"name":"get all pruchase orders","id":"3bcd12ee-dfb6-44e7-acc8-300adc878bc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"url":"https://{{rewaa-url}}/invoicesByType/PurchaseOrder?offset=0&limit=4","urlObject":{"protocol":"https","path":["invoicesByType","PurchaseOrder"],"host":["{{rewaa-url}}"],"query":[{"key":"offset","value":"0"},{"key":"limit","value":"4"}],"variable":[]}},"response":[{"id":"c9a816be-6f42-4fda-be78-3fb7944e6143","name":"get all pruchase orders","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"url":{"raw":"{{environment}}/purchase-orders?offset=0&limit=4","host":["{{environment}}"],"path":["purchase-orders"],"query":[{"key":"offset","value":"0"},{"key":"limit","value":"4"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"access-control-allow-headers","value":"Content-Type"},{"key":"access-control-allow-methods","value":"OPTIONS,POST,GET,DELETE,PUT"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"vary","value":"origin,accept-encoding"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"},{"key":"content-encoding","value":"gzip"},{"key":"Date","value":"Thu, 14 May 2020 15:17:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    {\n  \"invoiceNumber\":474776,\n  \"completeDate\":\"2020-06-14T12:25:07.000Z\",\n  \"status\":\"Completed\",\n  \"notes\":\"\",\n  \"type\":\"PurchaseOrder\",\n  \"subTotalTaxExclusive\":100,\n  \"totalTax\":15,\n  \"totalTaxInclusive\":115,\n  \"destinationLocationId\":null,\n  \"id\":1,\n  \"stockLocationId\":1,\n  \"supplierId\":1,\n  \"createdAt\":\"2020-06-14T12:25:07.000Z\",\n  \"updatedAt\":\"2020-06-14T12:25:07.000Z\",\n  \"deletedAt\":null,\n  \"PayableInvoice\":{\n    \"paymentDueDate\":\"2020-06-14T12:24:51.000Z\",\n    \"paymentMethod\":\"CreditCard\",\n    \"taxation\":\"Exclusive\",\n    \"supplierInvoiceNumber\":\"pos-21\",\n    \"paymentStatus\":\"PartiallyPaidCreditor\",\n    \"paymentOption\":\"PayNow\",\n    \"paidAmount\":10,\n    \"debitAmount\":105,\n    \"totalBeforePayment\":null,\n    \"totalAfterPayment\":null,\n    \"id\":1,\"invoiceId\":1,\n    \"createdAt\":\"2020-06-14T12:25:07.000Z\",\n    \"updatedAt\":\"2020-06-14T12:25:07.000Z\",\n    \"deletedAt\":null\n  },\n  \"Supplier\":{\n    \"name\":\"ali moahammed\",\n    \"email\":\"moh@rewaa.com\",\n    \"phoneNumber\":\"0562541254\",\n    \"streetAddress\":\"Palestine\",\n    \"suburb\":\"gaza\",\n    \"city\":\"Dallas\",\n    \"country\":1,\n    \"code\":\"\",\n    \"buildingNumber\":\"\",\n    \"district\":\"\",\n    \"zipCode\":\"00972\",\n    \"additionalNumber\":\"\",\n    \"debitAmount\":null,\n    \"creditAmount\":null,\n    \"totalPaidAmount\":null,\n    \"id\":1,\n    \"createdAt\":\"2020-06-14T12:19:10.000Z\",\n    \"updatedAt\":\"2020-06-14T12:19:10.000Z\",\n    \"deletedAt\":null\n  },\n  \"StockLocation\":{\n    \"name\":\"main\",\n    \"description\":\"\",\n    \"city\":\"\",\n    \"countryId\":\"\",\n    \"doesHoldStock\":null,\n    \"buildingNo\":\"\",\n    \"streetName\":\"\",\n    \"zipCode\":\"\",\n    \"isActive\":true,\n    \"districtName\":\"\",\n    \"code\":\"123\",\n    \"id\":1,\n    \"createdAt\":\"2020-06-14T12:19:31.000Z\",\n    \"updatedAt\":\"2020-06-14T12:19:31.000Z\",\n    \"deletedAt\":null\n  },\n  \"VariantToInvoices\":[{\n    \"sku\":\"68899898\",\n    \"name\":\"test\",\n    \"quantity\":10,\n    \"changedQuantity\":null,\n    \"availableDestnationLocationQuantity\":null,\n    \"availableLocationQuantity\":12,\n    \"costInclusive\":11.5,\n    \"buyPriceExclusive\":0,\n    \"costExclusive\":10,\n    \"totalExclusive\":100,\n    \"id\":1,\n    \"invoiceId\":1,\n    \"productVariantId\":1,\n    \"createdAt\":\"2020-06-14T12:25:07.000Z\",\n    \"updatedAt\":\"2020-06-14T12:25:07.000Z\",\n    \"deletedAt\":null,\n    \"ProductVariant\":{\n      \"sku\":\"68899898\",\n      \"initialStock\":12,\n      \"initialCost\":21,\n      \"buyPrice\":0,\n      \"wholeSalePrice\":0,\n      \"retailPrice\":0,\n      \"isPurchasable\":null,\n      \"weight\":0,\n      \"weightUnit\":\"g\",\n      \"length\":null,\n      \"width\":null,\n      \"height\":null,\n      \"handlingTime\":null,\n      \"isContainsBattery\":null,\n      \"isFreeShipping\":null,\n      \"packSizeLabel\":\"\",\n      \"packSizeQuantity\":null,\n      \"manageStockLevel\":null,\n      \"isSellable\":false,\n      \"isTaxable\":null,\n      \"name\":\"\",\n      \"hsCode\":\"\",\n      \"barCode\":\"\",\n      \"supplierCode\":\"\",\n      \"description\":\"\",\n      \"variantAttributes\":\"\",\n      \"id\":1,\n      \"productId\":1,\n      \"createdAt\":\"2020-06-14T12:23:58.000Z\",\n      \"updatedAt\":\"2020-06-14T12:23:58.000Z\",\n      \"deletedAt\":null\n     }\n   }]\n  }\n]"}],"_postman_id":"3bcd12ee-dfb6-44e7-acc8-300adc878bc2"},{"name":"create purchase order","id":"b803884f-a343-4ca7-a12e-6f9aa5773521","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoices/purchase-orders/create","urlObject":{"protocol":"https","path":["invoices","purchase-orders","create"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"2ea2856c-62db-406f-b876-8072d4fc1071","name":"create complete purchase order","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"supplierId\":1,\r\n  \"supplierName\":\"sup1\",\r\n  \"stockLocationId\":1,\r\n  \"stockLocationName\":\"default\",\r\n  \"status\":\"Completed\",\r\n  \"notes\":\"\",\r\n  \"type\":\"PurchaseOrder\",\r\n  \"subTotalTaxExclusive\":1,\r\n  \"totalTax\":0.15,\r\n  \"totalTaxInclusive\":1.15,\r\n  \"completeDate\":\"2020-12-30T08:12:22.631Z\",\r\n  \"PayableInvoice\":{\r\n    \"paymentDueDate\":\"2020-12-30T08:11:55.755Z\",\r\n    \"paymentMethod\":\"CreditCard\",\r\n    \"taxation\":\"Exclusive\",\r\n    \"supplierInvoiceNumber\":\"\",\r\n    \"paymentOption\":\"PayNow\",\r\n    \"paidAmount\":1,\r\n    \"debitAmount\":0.15,\r\n    \"taxLinesJson\":\"[{\\\"name\\\":\\\"Value Added Tax\\\",\\\"rate\\\":15,\\\"id\\\":1,\\\"taxId\\\":2,\\\"createdAt\\\":null,\\\"updatedAt\\\":null,\\\"deletedAt\\\":null}]\"\r\n  },\r\n  \"VariantToInvoices\":[\r\n    {\r\n      \"sku\":\"simple1\",\r\n      \"name\":\"simple1\",\r\n      \"quantity\":1,\r\n      \"totalExclusive\":1,\r\n      \"buyPriceExclusive\":1,\r\n      \"availableLocationQuantity\":1,\r\n      \"productVariantId\":1,\r\n      \"Tax\":{\r\n        \"name\":\"Value Added Tax\",\r\n        \"code\":\"VAT\",\r\n        \"coumpoundTaxLineId\":null,\r\n        \"id\":2,\r\n        \"createdAt\":null,\r\n        \"updatedAt\":null,\r\n        \"deletedAt\":null,\r\n        \"TaxLines\":[\r\n          {\r\n            \"name\":\"Value Added Tax\",\r\n            \"rate\":15,\r\n            \"id\":1,\r\n            \"taxId\":2,\r\n            \"createdAt\":null,\r\n            \"updatedAt\":null,\r\n            \"deletedAt\":null\r\n          }\r\n        ],\r\n        \"CoumpoundTax\":{\r\n\r\n        },\r\n        \"rate\":15,\r\n        \"subtotal\":15\r\n      },\r\n      \"taxJson\":\"{\\\"name\\\":\\\"Value Added Tax\\\",\\\"code\\\":\\\"VAT\\\",\\\"coumpoundTaxLineId\\\":null,\\\"id\\\":2,\\\"createdAt\\\":null,\\\"updatedAt\\\":null,\\\"deletedAt\\\":null,\\\"TaxLines\\\":[{\\\"name\\\":\\\"Value Added Tax\\\",\\\"rate\\\":15,\\\"id\\\":1,\\\"taxId\\\":2,\\\"createdAt\\\":null,\\\"updatedAt\\\":null,\\\"deletedAt\\\":null}],\\\"CoumpoundTax\\\":{},\\\"rate\\\":15,\\\"subtotal\\\":15}\",\r\n      \"costExclusive\":1,\r\n      \"costInclusive\":1.15\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/invoices/purchase-orders/create"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"a5c7d87d-1ae0-4c8a-a79e-66af900ffeab","name":"create open purchase order","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"supplierId\":1,\r\n  \"supplierName\":\"sup1\",\r\n  \"stockLocationId\":1,\r\n  \"stockLocationName\":\"default\",\r\n  \"status\":\"Open\",\r\n  \"notes\":\"\",\r\n  \"type\":\"PurchaseOrder\",\r\n  \"subTotalTaxExclusive\":4,\r\n  \"totalTax\":0,\r\n  \"totalTaxInclusive\":4,\r\n  \"PayableInvoice\":{\r\n    \"paymentDueDate\":\"2020-12-30T08:15:01.186Z\",\r\n    \"taxation\":\"Exclusive\",\r\n    \"supplierInvoiceNumber\":\"\",\r\n    \"paymentOption\":\"PayLater\",\r\n    \"paidAmount\":0,\r\n    \"debitAmount\":4,\r\n    \"taxLinesJson\":\"[]\"\r\n  },\r\n  \"VariantToInvoices\":[\r\n    {\r\n      \"sku\":\"simple1\",\r\n      \"name\":\"simple1\",\r\n      \"quantity\":2,\r\n      \"totalExclusive\":4,\r\n      \"buyPriceExclusive\":1,\r\n      \"availableLocationQuantity\":2,\r\n      \"productVariantId\":1,\r\n      \"Tax\":{\r\n        \"name\":\"No Tax\",\r\n        \"code\":\"NONE\",\r\n        \"coumpoundTaxLineId\":null,\r\n        \"id\":1,\r\n        \"createdAt\":null,\r\n        \"updatedAt\":null,\r\n        \"deletedAt\":null,\r\n        \"TaxLines\":[\r\n\r\n        ],\r\n        \"CoumpoundTax\":{\r\n\r\n        },\r\n        \"rate\":0,\r\n        \"subtotal\":0\r\n      },\r\n      \"taxJson\":\"{\\\"name\\\":\\\"No Tax\\\",\\\"code\\\":\\\"NONE\\\",\\\"coumpoundTaxLineId\\\":null,\\\"id\\\":1,\\\"createdAt\\\":null,\\\"updatedAt\\\":null,\\\"deletedAt\\\":null,\\\"TaxLines\\\":[],\\\"CoumpoundTax\\\":{},\\\"rate\\\":0,\\\"subtotal\\\":0}\",\r\n      \"costExclusive\":2,\r\n      \"costInclusive\":2\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/invoices/purchase-orders/create"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"b803884f-a343-4ca7-a12e-6f9aa5773521"},{"name":"update purchase order","id":"5fc7bcff-b2e2-4125-a2c6-73324c5aeb5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoices/purchase-orders/{InvoiceNumber}","urlObject":{"protocol":"https","path":["invoices","purchase-orders","{InvoiceNumber}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"c9a3ceed-ec22-4f9e-9e6e-8b074feb8a63","name":"update purchase order","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"supplierId\":1,\r\n  \"supplierName\":\"sup1\",\r\n  \"stockLocationId\":1,\r\n  \"stockLocationName\":\"default\",\r\n  \"status\":\"Completed\",\r\n  \"notes\":\"\",\r\n  \"type\":\"PurchaseOrder\",\r\n  \"subTotalTaxExclusive\":1,\r\n  \"totalTax\":0.15,\r\n  \"totalTaxInclusive\":1.15,\r\n  \"completeDate\":\"2020-12-30T08:12:22.631Z\",\r\n  \"PayableInvoice\":{\r\n    \"paymentDueDate\":\"2020-12-30T08:11:55.755Z\",\r\n    \"paymentMethod\":\"CreditCard\",\r\n    \"taxation\":\"Exclusive\",\r\n    \"supplierInvoiceNumber\":\"\",\r\n    \"paymentOption\":\"PayNow\",\r\n    \"paidAmount\":1,\r\n    \"debitAmount\":0.15,\r\n    \"taxLinesJson\":\"[{\\\"name\\\":\\\"Value Added Tax\\\",\\\"rate\\\":15,\\\"id\\\":1,\\\"taxId\\\":2,\\\"createdAt\\\":null,\\\"updatedAt\\\":null,\\\"deletedAt\\\":null}]\"\r\n  },\r\n  \"VariantToInvoices\":[\r\n    {\r\n      \"sku\":\"simple1\",\r\n      \"name\":\"simple1\",\r\n      \"quantity\":1,\r\n      \"totalExclusive\":1,\r\n      \"buyPriceExclusive\":1,\r\n      \"availableLocationQuantity\":1,\r\n      \"productVariantId\":1,\r\n      \"Tax\":{\r\n        \"name\":\"Value Added Tax\",\r\n        \"code\":\"VAT\",\r\n        \"coumpoundTaxLineId\":null,\r\n        \"id\":2,\r\n        \"createdAt\":null,\r\n        \"updatedAt\":null,\r\n        \"deletedAt\":null,\r\n        \"TaxLines\":[\r\n          {\r\n            \"name\":\"Value Added Tax\",\r\n            \"rate\":15,\r\n            \"id\":1,\r\n            \"taxId\":2,\r\n            \"createdAt\":null,\r\n            \"updatedAt\":null,\r\n            \"deletedAt\":null\r\n          }\r\n        ],\r\n        \"CoumpoundTax\":{\r\n\r\n        },\r\n        \"rate\":15,\r\n        \"subtotal\":15\r\n      },\r\n      \"taxJson\":\"{\\\"name\\\":\\\"Value Added Tax\\\",\\\"code\\\":\\\"VAT\\\",\\\"coumpoundTaxLineId\\\":null,\\\"id\\\":2,\\\"createdAt\\\":null,\\\"updatedAt\\\":null,\\\"deletedAt\\\":null,\\\"TaxLines\\\":[{\\\"name\\\":\\\"Value Added Tax\\\",\\\"rate\\\":15,\\\"id\\\":1,\\\"taxId\\\":2,\\\"createdAt\\\":null,\\\"updatedAt\\\":null,\\\"deletedAt\\\":null}],\\\"CoumpoundTax\\\":{},\\\"rate\\\":15,\\\"subtotal\\\":15}\",\r\n      \"costExclusive\":1,\r\n      \"costInclusive\":1.15\r\n    }\r\n  ]\r\n}"},"url":"https://{{rewaa-url}}/invoices/purchase-orders/6782"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"5fc7bcff-b2e2-4125-a2c6-73324c5aeb5b"}],"id":"cfcd3b4d-6736-4f80-a683-d04ce3597a1e","_postman_id":"cfcd3b4d-6736-4f80-a683-d04ce3597a1e","description":""},{"name":"return stocks","item":[{"name":"get all return stocks","id":"2b8556a2-447a-4e4e-88e5-e2cfcef9484e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{rewaa-url}}/invoicesByType/ReturnStock?limit=10&offset=0","urlObject":{"protocol":"https","path":["invoicesByType","ReturnStock"],"host":["{{rewaa-url}}"],"query":[{"key":"limit","value":"10"},{"key":"offset","value":"0"}],"variable":[]}},"response":[{"id":"fad21eb2-7338-455d-be14-c59be1c93669","name":"get all return stocks","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":{"raw":"https://{{rewaa-url}}/invoicesByType/ReturnStock?limit=10&offset=0","protocol":"https","host":["{{rewaa-url}}"],"path":["invoicesByType","ReturnStock"],"query":[{"key":"limit","value":"10"},{"key":"offset","value":"0"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"invoiceNumber\": 654567,\n        \"completeDate\": \"2020-06-10T09:19:43.000Z\",\n        \"status\": \"Completed\",\n        \"notes\": \"\",\n        \"type\": \"ReturnStock\",\n        \"subTotalTaxExclusive\": 6,\n        \"totalTax\": 0.8999999999999999,\n        \"totalTaxInclusive\": 6.9,\n        \"destinationLocationId\": null,\n        \"id\": 23,\n        \"stockLocationId\": 1,\n        \"supplierId\": 1,\n        \"createdAt\": \"2020-06-10T09:19:43.000Z\",\n        \"updatedAt\": \"2020-06-10T09:19:43.000Z\",\n        \"deletedAt\": null,\n        \"VariantToInvoices\": [\n            {\n                \"sku\": \"CAR01\",\n                \"name\": \"car\",\n                \"quantity\": 3,\n                \"changedQuantity\": null,\n                \"availableDestnationLocationQuantity\": null,\n                \"availableLocationQuantity\": 43,\n                \"costInclusive\": 2.3,\n                \"buyPriceExclusive\": 0,\n                \"costExclusive\": 2,\n                \"totalExclusive\": 6,\n                \"id\": 16,\n                \"invoiceId\": 23,\n                \"productVariantId\": 1,\n                \"createdAt\": \"2020-06-10T09:19:43.000Z\",\n                \"updatedAt\": \"2020-06-10T09:19:43.000Z\",\n                \"deletedAt\": null\n            }\n        ],\n        \"PayableInvoice\": {\n            \"paymentDueDate\": \"2020-06-10T09:18:32.000Z\",\n            \"paymentMethod\": \"CreditCard\",\n            \"taxation\": \"Exclusive\",\n            \"supplierInvoiceNumber\": \"\",\n            \"paymentStatus\": \"NotPaidCreditor\",\n            \"paymentOption\": \"PayNow\",\n            \"paidAmount\": 0,\n            \"debitAmount\": 6.9,\n            \"totalBeforePayment\": null,\n            \"totalAfterPayment\": null,\n            \"id\": 19,\n            \"invoiceId\": 23,\n            \"createdAt\": \"2020-06-10T09:19:43.000Z\",\n            \"updatedAt\": \"2020-06-10T09:19:43.000Z\",\n            \"deletedAt\": null\n        }\n    },\n    {\n        \"invoiceNumber\": 767969,\n        \"completeDate\": \"2020-06-10T09:19:43.000Z\",\n        \"status\": \"Open\",\n        \"notes\": \"\",\n        \"type\": \"ReturnStock\",\n        \"subTotalTaxExclusive\": 6,\n        \"totalTax\": 0.8999999999999999,\n        \"totalTaxInclusive\": 6.9,\n        \"destinationLocationId\": null,\n        \"id\": 23,\n        \"stockLocationId\": 1,\n        \"supplierId\": 1,\n        \"createdAt\": \"2020-06-10T09:19:43.000Z\",\n        \"updatedAt\": \"2020-06-10T09:19:43.000Z\",\n        \"deletedAt\": null,\n        \"VariantToInvoices\": [\n            {\n                \"sku\": \"CAR01\",\n                \"name\": \"car\",\n                \"quantity\": 3,\n                \"changedQuantity\": null,\n                \"availableDestnationLocationQuantity\": null,\n                \"availableLocationQuantity\": 43,\n                \"costInclusive\": 2.3,\n                \"buyPriceExclusive\": 0,\n                \"costExclusive\": 2,\n                \"totalExclusive\": 6,\n                \"id\": 16,\n                \"invoiceId\": 23,\n                \"productVariantId\": 1,\n                \"createdAt\": \"2020-06-10T09:19:43.000Z\",\n                \"updatedAt\": \"2020-06-10T09:19:43.000Z\",\n                \"deletedAt\": null\n            }\n        ],\n        \"PayableInvoice\": {\n            \"paymentDueDate\": \"2020-06-10T09:18:32.000Z\",\n            \"paymentMethod\": \"CreditCard\",\n            \"taxation\": \"Exclusive\",\n            \"supplierInvoiceNumber\": \"\",\n            \"paymentStatus\": \"NotPaidCreditor\",\n            \"paymentOption\": \"PayNow\",\n            \"paidAmount\": 0,\n            \"debitAmount\": 6.9,\n            \"totalBeforePayment\": null,\n            \"totalAfterPayment\": null,\n            \"id\": 19,\n            \"invoiceId\": 23,\n            \"createdAt\": \"2020-06-10T09:19:43.000Z\",\n            \"updatedAt\": \"2020-06-10T09:19:43.000Z\",\n            \"deletedAt\": null\n        }\n    }\n]"}],"_postman_id":"2b8556a2-447a-4e4e-88e5-e2cfcef9484e"},{"name":"create return stock","id":"c4731c46-6174-4ec8-8a88-ac95ecf8682d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/invoices/return-stocks/create","urlObject":{"protocol":"https","path":["invoices","return-stocks","create"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"91047251-1481-4725-bbb4-78c792e331df","name":"create complete return stock","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"PayableInvoice\": {\r\n\t\t\"debitAmount\": 75.9,\r\n\t\t\"paidAmount\": 0,\r\n\t\t\"paymentDueDate\": \"2020-06-10T13:13:20.621Z\",\r\n\t\t\"paymentMethod\": \"CreditCard\",\r\n\t\t\"paymentOption\": \"PayNow\",\r\n\t\t\"supplierInvoiceNumber\": \"\",\r\n\t\t\"taxation\": \"Exclusive\"\r\n\t},\r\n\t\"VariantToInvoices\": [{\r\n\t\t\"availableLocationQuantity\": 46,\r\n\t\t\"buyPriceExclusive\": 0,\r\n\t\t\"costExclusive\": 33,\r\n\t\t\"costInclusive\": 37.949999999999996,\r\n\t\t\"name\": \"car\",\r\n\t\t\"productVariantId\": 1,\r\n\t\t\"quantity\": 2,\r\n\t\t\"sku\": \"CAR01\",\r\n\t\t\"totalExclusive\": 66\r\n\t}],\r\n\t\"completeDate\": \"2020-06-10T13:13:36.009Z\",\r\n\t\"notes\": \"\",\r\n\t\"status\": \"Completed\",\r\n\t\"stockLocationId\": 1,\r\n\t\"subTotalTaxExclusive\": 66,\r\n\t\"supplierId\": 1,\r\n\t\"totalTax\": 9.9,\r\n\t\"totalTaxInclusive\": 75.9,\r\n\t\"type\": \"ReturnStock\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/invoices/return-stocks/create"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"e22be1f7-108e-415a-b26a-a7ab53fcbce7","name":"create open return stock","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"supplierId\":1,\r\n    \"stockLocationId\":1,\r\n    \"status\":\"Open\",\r\n    \"notes\":\"\",\r\n    \"type\":\"ReturnStock\",\r\n    \"subTotalTaxExclusive\":66,\r\n    \"totalTax\":9.9,\r\n    \"totalTaxInclusive\":75.9,\r\n    \"completeDate\":\"2020-06-10T13:13:36.009Z\",\r\n    \"PayableInvoice\":{\r\n        \"paymentDueDate\":\"2020-06-10T13:13:20.621Z\",\r\n        \"paymentMethod\":\"CreditCard\",\r\n        \"taxation\":\"Exclusive\",\r\n        \"supplierInvoiceNumber\":\"\",\r\n        \"paymentOption\":\"PayNow\",\r\n        \"paidAmount\":0,\"debitAmount\":75.9\r\n    },\r\n    \"VariantToInvoices\":[\r\n        {\r\n            \"sku\":\"CAR01\",\r\n            \"name\":\"car\",\r\n            \"quantity\":2,\r\n            \"totalExclusive\":66,\r\n            \"buyPriceExclusive\":0,\r\n            \"availableLocationQuantity\":46,\r\n            \"productVariantId\":1,\r\n            \"costExclusive\":33,\r\n            \"costInclusive\":37.949999999999996\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/invoices/return-stocks/create"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"c4731c46-6174-4ec8-8a88-ac95ecf8682d"},{"name":"get all return stock with invoice","id":"7b49d66f-f059-4f9e-9a4f-368221524ccb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoices/pay-return-stock/{invoiceNumber}","urlObject":{"protocol":"https","path":["invoices","pay-return-stock","{invoiceNumber}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7b49d66f-f059-4f9e-9a4f-368221524ccb"}],"id":"46a118de-1625-4050-b734-fe33c4702fd5","_postman_id":"46a118de-1625-4050-b734-fe33c4702fd5","description":""},{"name":"remove stocks","item":[{"name":"get all remove stocks","id":"f7162112-ef56-4f1c-bfb2-9251e558ce71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{rewaa-url}}/invoicesByType/RemoveStock?limit=10&offset=0","urlObject":{"protocol":"https","path":["invoicesByType","RemoveStock"],"host":["{{rewaa-url}}"],"query":[{"key":"limit","value":"10"},{"key":"offset","value":"0"}],"variable":[]}},"response":[{"id":"94b65ae0-c3a0-4bf1-8115-909e64477870","name":"get all remove stocks","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{{rewaa-url}}/invoicesByType/RemoveStock?limit=10&offset=0","protocol":"https","host":["{{rewaa-url}}"],"path":["invoicesByType","RemoveStock"],"query":[{"key":"limit","value":"10"},{"key":"offset","value":"0"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"invoiceNumber\": 23778,\n        \"status\": \"Completed\",\n        \"notes\": \"\",\n        \"type\": \"RemoveStock\",\n        \"subTotalTaxExclusive\": 0,\n        \"totalTax\": 0,\n        \"totalTaxInclusive\": 0,\n        \"stockLocationId\": 1,\n        \"VariantToInvoices\": [\n            {\n                \"sku\": \"CAR01\",\n                \"name\": \"car\",\n                \"quantity\": 3,\n                \"changedQuantity\": null,\n                \"availableDestnationLocationQuantity\": null,\n                \"availableLocationQuantity\": 43,\n                \"costInclusive\": 0,\n                \"buyPriceExclusive\": 0,\n                \"costExclusive\": 0,\n                \"totalExclusive\": 0,\n                \"productVariantId\": 1\n            }\n        ]\n    }\n]"}],"_postman_id":"f7162112-ef56-4f1c-bfb2-9251e558ce71"},{"name":"create remove stock","id":"237be3b0-d59c-4068-9bb6-107da4ddd0c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/invoices/remove-stock/create","urlObject":{"protocol":"https","path":["invoices","remove-stock","create"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"755264dc-3c38-4109-b42b-43f82466b4f6","name":"create remove stock","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"status\": \"Completed\",\r\n    \"notes\": \"\",\r\n    \"type\": \"RemoveStock\",\r\n    \"subTotalTaxExclusive\": 0,\r\n    \"totalTax\": 0,\r\n    \"totalTaxInclusive\": 0,\r\n    \"stockLocationId\": 1,\r\n    \"VariantToInvoices\": [\r\n        {\r\n            \"sku\": \"CAR01\",\r\n            \"name\": \"car\",\r\n            \"quantity\": 3,\r\n            \"changedQuantity\": null,\r\n            \"availableDestnationLocationQuantity\": null,\r\n            \"availableLocationQuantity\": 43,\r\n            \"costInclusive\": 0,\r\n            \"buyPriceExclusive\": 0,\r\n            \"costExclusive\": 0,\r\n            \"totalExclusive\": 0,\r\n            \"productVariantId\": 1\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/invoices/remove-stock/create"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"237be3b0-d59c-4068-9bb6-107da4ddd0c9"},{"name":"get remove stock by invoice number","id":"0c31fb72-a33d-4e66-9bc8-b099dfca688f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}//invoices/remove-stock-by-no/{InvoiceNumber}","urlObject":{"protocol":"https","path":["","invoices","remove-stock-by-no","{InvoiceNumber}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"390754cb-7efe-4fad-abcc-26764d238aad","name":"get remove stock by invoice number","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}//invoices/remove-stock-by-no/{InvoiceNumber}"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"sku\": \"CAR01\",\n    \"name\": \"car\",\n    \"quantity\": 3,\n    \"changedQuantity\": null,\n    \"availableDestnationLocationQuantity\": null,\n    \"availableLocationQuantity\": 43,\n    \"costInclusive\": 2.3,\n    \"buyPriceExclusive\": 0,\n    \"costExclusive\": 2,\n    \"totalExclusive\": 6,\n    \"id\": 16,\n    \"invoiceId\": 23,\n    \"productVariantId\": 1,\n    \"createdAt\": \"2020-06-10T09:19:43.000Z\",\n    \"updatedAt\": \"2020-06-10T09:19:43.000Z\",\n    \"deletedAt\": null\n}"}],"_postman_id":"0c31fb72-a33d-4e66-9bc8-b099dfca688f"}],"id":"dd300ad7-0cb7-4773-b492-dca621ba6311","_postman_id":"dd300ad7-0cb7-4773-b492-dca621ba6311","description":""},{"name":"transfer stocks","item":[{"name":"get all transfer stocks","id":"dd702b6e-4266-4f8d-8c80-166f0df3a793","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoicesByType/TransferStock?limit=10&offset=0","urlObject":{"protocol":"https","path":["invoicesByType","TransferStock"],"host":["{{rewaa-url}}"],"query":[{"key":"limit","value":"10"},{"key":"offset","value":"0"}],"variable":[]}},"response":[],"_postman_id":"dd702b6e-4266-4f8d-8c80-166f0df3a793"},{"name":"get transfer stock by id","id":"cef7b3a2-26b8-4932-a112-e2ab75d3f798","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoice/stock-transfer/{invoiceId}","urlObject":{"protocol":"https","path":["invoice","stock-transfer","{invoiceId}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"961e50d5-0e54-4bc4-aa1d-de81e6478476","name":"get transfer stock by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoice/stock-transfer/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"notes\": \"\",\n    \"id\": 1,\n    \"invoiceNumber\": 23213,\n    \"destinationLocationId\": 2,\n    \"stockLocationId\": 1,\n    \"type\": \"TransferStock\",\n    \"status\": \"Open\",\n    \"VariantToInvoices\": [\n        {\n            \"name\": \"Testing Product\",\n            \"id\": 1,\n            \"sku\": \"SKU-1\",\n            \"quantity\": 10,\n            \"availableDestnationLocationQuantity\": 10,\n            \"availableLocationQuantity\": 100,\n            \"productVariantId\": 1,\n            \"invoiceId\": 1,\n            \"updatedAt\": \"2020-06-05T07:51:31.962Z\",\n            \"createdAt\": \"2020-06-05T07:51:31.962Z\"\n        }\n    ],\n    \"updatedAt\": \"2020-06-05T07:51:31.940Z\",\n    \"createdAt\": \"2020-06-05T07:51:31.940Z\"\n}"}],"_postman_id":"cef7b3a2-26b8-4932-a112-e2ab75d3f798"},{"name":"create stock transfer","id":"b7db00cf-5416-49dd-8bd8-e299bfdede20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/invoice/stock-transfer/create","urlObject":{"protocol":"https","path":["invoice","stock-transfer","create"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"2fce2a2f-e91e-4786-b620-7d34fc567ab5","name":"create stock transfer","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"invoiceNumber\": 239792,\r\n    \"destinationLocationId\":2,\r\n    \"stockLocationId\":1,\r\n    \"note\":\"\",\r\n    \"variants\":[{\r\n       \"id\": 1,\r\n       \"name\": \"Testing Product\",\r\n       \"sku\": \"SKU-1\",\r\n       \"quantity\": 10,\r\n       \"destLocationQuantity\": 10,\r\n       \"srcLocationQuantity\": 100\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/invoice/stock-transfer/create"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"b7db00cf-5416-49dd-8bd8-e299bfdede20"},{"name":"get accept stock transfer","id":"cc2cb592-a282-46e2-a166-d551aa1ebf47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoice/stock-transfer/accept/{invoiceId}","urlObject":{"protocol":"https","path":["invoice","stock-transfer","accept","{invoiceId}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc2cb592-a282-46e2-a166-d551aa1ebf47"},{"name":"get reject stock transfer","id":"462a18f6-739d-4fe7-af28-1dafefe8146e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoice/stock-transfer/reject/{invoiceId}","urlObject":{"protocol":"https","path":["invoice","stock-transfer","reject","{invoiceId}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"462a18f6-739d-4fe7-af28-1dafefe8146e"}],"id":"75a48b02-8689-46a8-9e99-7711575c1358","_postman_id":"75a48b02-8689-46a8-9e99-7711575c1358","description":""},{"name":"stock counts","item":[{"name":"get all stock count","id":"02f0f111-c13d-4401-8b8a-eedbed455921","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoicesByType/StockCount?limit=10&offset=0","urlObject":{"protocol":"https","path":["invoicesByType","StockCount"],"host":["{{rewaa-url}}"],"query":[{"key":"limit","value":"10"},{"key":"offset","value":"0"}],"variable":[]}},"response":[],"_postman_id":"02f0f111-c13d-4401-8b8a-eedbed455921"},{"name":"create stock count","id":"41d0c708-6b9d-4639-a7bc-f7e01f2651be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/invoice/stock-count/create","urlObject":{"protocol":"https","path":["invoice","stock-count","create"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"9c4a47eb-22f2-4ac8-9b7b-18eb85d1d283","name":"create stock count","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"https://{{rewaa-url}}/invoice/stock-count/create"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"41d0c708-6b9d-4639-a7bc-f7e01f2651be"},{"name":"get stock count by id","id":"54e2959c-63a7-49a6-a8fc-351f9ab5e34e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoice/stock-count/{invoiceId}","urlObject":{"protocol":"https","path":["invoice","stock-count","{invoiceId}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"54e2959c-63a7-49a6-a8fc-351f9ab5e34e"}],"id":"51b1af57-b596-4bdd-bdda-e311b2eecf5c","_postman_id":"51b1af57-b596-4bdd-bdda-e311b2eecf5c","description":""},{"name":"pay purchase orders","item":[{"name":"create pay purchase order","id":"f122f0f8-1085-4ab6-884c-690c2637afe3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/invoices/pay-purchase-orders/create","urlObject":{"protocol":"https","path":["invoices","pay-purchase-orders","create"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f122f0f8-1085-4ab6-884c-690c2637afe3"},{"name":"get purchase order with invoice","id":"f17c3903-9025-46e1-b972-e5b6a2514dff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoices/pay-purchase-order/{invoiceNumber}","urlObject":{"protocol":"https","path":["invoices","pay-purchase-order","{invoiceNumber}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f17c3903-9025-46e1-b972-e5b6a2514dff"}],"id":"dd053199-560a-4ee8-894f-675902612c43","_postman_id":"dd053199-560a-4ee8-894f-675902612c43","description":""},{"name":"get all invoices","id":"ee6bdf5a-c898-4e64-955b-e942ca81f76a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoices?offset=0&limit=4","urlObject":{"protocol":"https","path":["invoices"],"host":["{{rewaa-url}}"],"query":[{"key":"offset","value":"0"},{"key":"limit","value":"4"}],"variable":[]}},"response":[{"id":"796b9e00-7c9d-4fdf-86f6-4c004fb3a95f","name":"get all invoices","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":{"raw":"{{environment}}/invoices?offset=0&limit=4","host":["{{environment}}"],"path":["invoices"],"query":[{"key":"offset","value":"0"},{"key":"limit","value":"4"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"access-control-allow-headers","value":"Content-Type"},{"key":"access-control-allow-methods","value":"OPTIONS,POST,GET,DELETE,PUT"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"vary","value":"origin,accept-encoding"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"},{"key":"content-encoding","value":"gzip"},{"key":"Date","value":"Thu, 14 May 2020 15:02:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n  {\n  \"invoiceNumber\":687686,\n  \"completeDate\":\"2020-06-14T12:25:07.000Z\",\n  \"status\":\"Completed\",\n  \"notes\":\"\",\n  \"type\":\"PurchaseOrder\",\n  \"subTotalTaxExclusive\":100,\n  \"totalTax\":15,\n  \"totalTaxInclusive\":115,\n  \"destinationLocationId\":null,\n  \"id\":1,\n  \"stockLocationId\":1,\n  \"supplierId\":1,\n  \"createdAt\":\"2020-06-14T12:25:07.000Z\",\n  \"updatedAt\":\"2020-06-14T12:25:07.000Z\",\n  \"deletedAt\":null,\n  \"PayableInvoice\":{\n    \"paymentDueDate\":\"2020-06-14T12:24:51.000Z\",\n    \"paymentMethod\":\"CreditCard\",\n    \"taxation\":\"Exclusive\",\n    \"supplierInvoiceNumber\":\"pos-21\",\n    \"paymentStatus\":\"PartiallyPaidCreditor\",\n    \"paymentOption\":\"PayNow\",\n    \"paidAmount\":10,\n    \"debitAmount\":105,\n    \"totalBeforePayment\":null,\n    \"totalAfterPayment\":null,\n    \"id\":1,\"invoiceId\":1,\n    \"createdAt\":\"2020-06-14T12:25:07.000Z\",\n    \"updatedAt\":\"2020-06-14T12:25:07.000Z\",\n    \"deletedAt\":null\n  },\n  \"Supplier\":{\n    \"name\":\"ali moahammed\",\n    \"email\":\"moh@rewaa.com\",\n    \"phoneNumber\":\"0562541254\",\n    \"streetAddress\":\"Palestine\",\n    \"suburb\":\"gaza\",\n    \"city\":\"Dallas\",\n    \"country\":1,\n    \"code\":\"\",\n    \"buildingNumber\":\"\",\n    \"district\":\"\",\n    \"zipCode\":\"00972\",\n    \"additionalNumber\":\"\",\n    \"debitAmount\":null,\n    \"creditAmount\":null,\n    \"totalPaidAmount\":null,\n    \"id\":1,\n    \"createdAt\":\"2020-06-14T12:19:10.000Z\",\n    \"updatedAt\":\"2020-06-14T12:19:10.000Z\",\n    \"deletedAt\":null\n  },\n  \"StockLocation\":{\n    \"name\":\"main\",\n    \"description\":\"\",\n    \"city\":\"\",\n    \"countryId\":\"\",\n    \"doesHoldStock\":null,\n    \"buildingNo\":\"\",\n    \"streetName\":\"\",\n    \"zipCode\":\"\",\n    \"isActive\":true,\n    \"districtName\":\"\",\n    \"code\":\"123\",\n    \"id\":1,\n    \"createdAt\":\"2020-06-14T12:19:31.000Z\",\n    \"updatedAt\":\"2020-06-14T12:19:31.000Z\",\n    \"deletedAt\":null\n  },\n  \"VariantToInvoices\":[{\n    \"sku\":\"68899898\",\n    \"name\":\"test\",\n    \"quantity\":10,\n    \"changedQuantity\":null,\n    \"availableDestnationLocationQuantity\":null,\n    \"availableLocationQuantity\":12,\n    \"costInclusive\":11.5,\n    \"buyPriceExclusive\":0,\n    \"costExclusive\":10,\n    \"totalExclusive\":100,\n    \"id\":1,\n    \"invoiceId\":1,\n    \"productVariantId\":1,\n    \"createdAt\":\"2020-06-14T12:25:07.000Z\",\n    \"updatedAt\":\"2020-06-14T12:25:07.000Z\",\n    \"deletedAt\":null,\n    \"ProductVariant\":{\n      \"sku\":\"68899898\",\n      \"initialStock\":12,\n      \"initialCost\":21,\n      \"buyPrice\":0,\n      \"wholeSalePrice\":0,\n      \"retailPrice\":0,\n      \"isPurchasable\":null,\n      \"weight\":0,\n      \"weightUnit\":\"g\",\n      \"length\":null,\n      \"width\":null,\n      \"height\":null,\n      \"handlingTime\":null,\n      \"isContainsBattery\":null,\n      \"isFreeShipping\":null,\n      \"packSizeLabel\":\"\",\n      \"packSizeQuantity\":null,\n      \"manageStockLevel\":null,\n      \"isSellable\":false,\n      \"isTaxable\":null,\n      \"name\":\"\",\n      \"hsCode\":\"\",\n      \"barCode\":\"\",\n      \"supplierCode\":\"\",\n      \"description\":\"\",\n      \"variantAttributes\":\"\",\n      \"id\":1,\n      \"productId\":1,\n      \"createdAt\":\"2020-06-14T12:23:58.000Z\",\n      \"updatedAt\":\"2020-06-14T12:23:58.000Z\",\n      \"deletedAt\":null\n     }\n   }]\n  }\n]"}],"_postman_id":"ee6bdf5a-c898-4e64-955b-e942ca81f76a"},{"name":"get invoice by it's number","id":"63b225d6-ea89-4e6e-9bd1-080eac1697af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoices/invoiceByInvoiceNumber/{InvoiceNumber}","urlObject":{"protocol":"https","path":["invoices","invoiceByInvoiceNumber","{InvoiceNumber}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"52ce02d0-e8f1-4812-8034-4ebbc31da239","name":"get invoice by it's number","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoices/invoiceByInvoiceNumber/236872"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"invoiceNumber\":236872,\n  \"completeDate\":\"2020-06-14T12:25:07.000Z\",\n  \"status\":\"Completed\",\n  \"notes\":\"\",\n  \"type\":\"PurchaseOrder\",\n  \"subTotalTaxExclusive\":100,\n  \"totalTax\":15,\n  \"totalTaxInclusive\":115,\n  \"destinationLocationId\":null,\n  \"id\":1,\n  \"stockLocationId\":1,\n  \"supplierId\":1,\n  \"createdAt\":\"2020-06-14T12:25:07.000Z\",\n  \"updatedAt\":\"2020-06-14T12:25:07.000Z\",\n  \"deletedAt\":null,\n  \"PayableInvoice\":{\n    \"paymentDueDate\":\"2020-06-14T12:24:51.000Z\",\n    \"paymentMethod\":\"CreditCard\",\n    \"taxation\":\"Exclusive\",\n    \"supplierInvoiceNumber\":\"pos-21\",\n    \"paymentStatus\":\"PartiallyPaidCreditor\",\n    \"paymentOption\":\"PayNow\",\n    \"paidAmount\":10,\n    \"debitAmount\":105,\n    \"totalBeforePayment\":null,\n    \"totalAfterPayment\":null,\n    \"id\":1,\"invoiceId\":1,\n    \"createdAt\":\"2020-06-14T12:25:07.000Z\",\n    \"updatedAt\":\"2020-06-14T12:25:07.000Z\",\n    \"deletedAt\":null\n  },\n  \"Supplier\":{\n    \"name\":\"ali moahammed\",\n    \"email\":\"moh@rewaa.com\",\n    \"phoneNumber\":\"0562541254\",\n    \"streetAddress\":\"Palestine\",\n    \"suburb\":\"gaza\",\n    \"city\":\"Dallas\",\n    \"country\":1,\n    \"code\":\"\",\n    \"buildingNumber\":\"\",\n    \"district\":\"\",\n    \"zipCode\":\"00972\",\n    \"additionalNumber\":\"\",\n    \"debitAmount\":null,\n    \"creditAmount\":null,\n    \"totalPaidAmount\":null,\n    \"id\":1,\n    \"createdAt\":\"2020-06-14T12:19:10.000Z\",\n    \"updatedAt\":\"2020-06-14T12:19:10.000Z\",\n    \"deletedAt\":null\n  },\n  \"StockLocation\":{\n    \"name\":\"main\",\n    \"description\":\"\",\n    \"city\":\"\",\n    \"countryId\":\"\",\n    \"doesHoldStock\":null,\n    \"buildingNo\":\"\",\n    \"streetName\":\"\",\n    \"zipCode\":\"\",\n    \"isActive\":true,\n    \"districtName\":\"\",\n    \"code\":\"123\",\n    \"id\":1,\n    \"createdAt\":\"2020-06-14T12:19:31.000Z\",\n    \"updatedAt\":\"2020-06-14T12:19:31.000Z\",\n    \"deletedAt\":null\n  },\n  \"VariantToInvoices\":[{\n    \"sku\":\"68899898\",\n    \"name\":\"test\",\n    \"quantity\":10,\n    \"changedQuantity\":null,\n    \"availableDestnationLocationQuantity\":null,\n    \"availableLocationQuantity\":12,\n    \"costInclusive\":11.5,\n    \"buyPriceExclusive\":0,\n    \"costExclusive\":10,\n    \"totalExclusive\":100,\n    \"id\":1,\n    \"invoiceId\":1,\n    \"productVariantId\":1,\n    \"createdAt\":\"2020-06-14T12:25:07.000Z\",\n    \"updatedAt\":\"2020-06-14T12:25:07.000Z\",\n    \"deletedAt\":null,\n    \"ProductVariant\":{\n      \"sku\":\"68899898\",\n      \"initialStock\":12,\n      \"initialCost\":21,\n      \"buyPrice\":0,\n      \"wholeSalePrice\":0,\n      \"retailPrice\":0,\n      \"isPurchasable\":null,\n      \"weight\":0,\n      \"weightUnit\":\"g\",\n      \"length\":null,\n      \"width\":null,\n      \"height\":null,\n      \"handlingTime\":null,\n      \"isContainsBattery\":null,\n      \"isFreeShipping\":null,\n      \"packSizeLabel\":\"\",\n      \"packSizeQuantity\":null,\n      \"manageStockLevel\":null,\n      \"isSellable\":false,\n      \"isTaxable\":null,\n      \"name\":\"\",\n      \"hsCode\":\"\",\n      \"barCode\":\"\",\n      \"supplierCode\":\"\",\n      \"description\":\"\",\n      \"variantAttributes\":\"\",\n      \"id\":1,\n      \"productId\":1,\n      \"createdAt\":\"2020-06-14T12:23:58.000Z\",\n      \"updatedAt\":\"2020-06-14T12:23:58.000Z\",\n      \"deletedAt\":null\n    }\n    }]}"}],"_postman_id":"63b225d6-ea89-4e6e-9bd1-080eac1697af"},{"name":"get rtn or po payment details","id":"7644847c-c39a-40b7-85dd-a297dbfe65b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoices/{invoiceNumber}/payments","urlObject":{"protocol":"https","path":["invoices","{invoiceNumber}","payments"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7644847c-c39a-40b7-85dd-a297dbfe65b1"},{"name":"get all payments","id":"7f8206de-eb17-4248-b904-9976cec7bc5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoices/paymentlist?limit=10&offset=0","urlObject":{"protocol":"https","path":["invoices","paymentlist"],"host":["{{rewaa-url}}"],"query":[{"key":"limit","value":"10"},{"key":"offset","value":"0"}],"variable":[]}},"response":[],"_postman_id":"7f8206de-eb17-4248-b904-9976cec7bc5b"},{"name":"get pay credit with PO and Rtn invoice","id":"8e1084c3-a851-41b0-9361-9d61cb8e1159","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoices/pay-credit/{invoiceNumber}","urlObject":{"protocol":"https","path":["invoices","pay-credit","{invoiceNumber}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e1084c3-a851-41b0-9361-9d61cb8e1159"},{"name":"get pay debit with return invoice","id":"0af6d08d-5a02-495c-afc8-b6f238508fc5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoices/receive-debit/{invoiceNumber}","urlObject":{"protocol":"https","path":["invoices","receive-debit","{invoiceNumber}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0af6d08d-5a02-495c-afc8-b6f238508fc5"},{"name":"get pay return stock with return invoice","id":"d44a1a0a-4dce-4b02-9690-cd28950ef343","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/invoices/pay-return-stock/{invoiceNumber}","urlObject":{"protocol":"https","path":["invoices","pay-return-stock","{invoiceNumber}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d44a1a0a-4dce-4b02-9690-cd28950ef343"},{"name":"get non payable invoices","id":"ba9ab3d7-8da6-43c2-9c8c-f095ee3b3511","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/non-payable-invoices-by-type/{invoiceType}","urlObject":{"protocol":"https","path":["non-payable-invoices-by-type","{invoiceType}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba9ab3d7-8da6-43c2-9c8c-f095ee3b3511"},{"name":"export invoices","id":"62e1c9a7-5ca9-491d-8a52-1f4bf6e4f308","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}//invoices/export","urlObject":{"protocol":"https","path":["","invoices","export"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"873088ab-3f54-458a-b39a-1caffe5ac211","name":"export invoices","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{ \"type\": \"RemoveStock\" }","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}//invoices/export"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"62e1c9a7-5ca9-491d-8a52-1f4bf6e4f308"},{"name":"get payable invoice","id":"2799aa99-4725-4b72-b074-93f783887230","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}//invoices/payable-invoices","urlObject":{"protocol":"https","path":["","invoices","payable-invoices"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2799aa99-4725-4b72-b074-93f783887230"}],"id":"a6594bec-b74a-4a25-9568-8ff7ff9f8b50","_postman_id":"a6594bec-b74a-4a25-9568-8ff7ff9f8b50","description":""},{"name":"orders","item":[{"name":"order invoices","item":[{"name":"get all order invoices","id":"0b487ad1-ad17-440f-99ed-f5de30e91410","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/orders/invoices","urlObject":{"protocol":"https","path":["orders","invoices"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"fecbe684-83ab-44c5-9c61-c5a1136bb4c7","name":"get all order invoices","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/orders/invoices"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"invoiceNumber\": 432332,\n        \"orderNumber\": \"123\",\n        \"username\": \"Mudit\",\n        \"name\": \"Mudit_Supplier\",\n        \"createdAt\": \"1611753369795\",\n        \"deliveryAt\": \"1611753369795\",\n        \"paymentDueAt\": \"1611753369795\",\n        \"subTotalTaxInclusive\": 12,\n        \"totalTax\": 3,\n        \"totalTaxInclusive\": 3,\n        \"totalPaidAmount\": 12,\n        \"creditAmount\": 0,\n        \"productList\": \"\"\n    },\n    {\n        \"invoiceNumber\": 323121,\n        \"orderNumber\": \"123\",\n        \"username\": \"Mudit\",\n        \"name\": \"Mudit_Supplier\",\n        \"createdAt\": \"1611753369795\",\n        \"deliveryAt\": \"1611753369795\",\n        \"paymentDueAt\": \"1611753369795\",\n        \"subTotalTaxInclusive\": 12,\n        \"totalTax\": 3,\n        \"totalTaxInclusive\": 3,\n        \"totalPaidAmount\": 12,\n        \"creditAmount\": 0,\n        \"productList\": \"\"\n    },\n    {\n        \"invoiceNumber\": 21323,\n        \"orderNumber\": \"123\",\n        \"username\": \"Mudit\",\n        \"name\": \"Mudit_Supplier\",\n        \"createdAt\": \"1611753369795\",\n        \"deliveryAt\": \"1611753369795\",\n        \"paymentDueAt\": \"1611753369795\",\n        \"subTotalTaxInclusive\": 12,\n        \"totalTax\": 3,\n        \"totalTaxInclusive\": 3,\n        \"totalPaidAmount\": 12,\n        \"creditAmount\": 0,\n        \"productList\": \"\"\n    },\n    {\n        \"invoiceNumber\": 213121,\n        \"orderNumber\": \"123\",\n        \"username\": \"Mudit\",\n        \"name\": \"Mudit_Supplier\",\n        \"createdAt\": \"1611753369795\",\n        \"deliveryAt\": \"1611753369795\",\n        \"paymentDueAt\": \"1611753369795\",\n        \"subTotalTaxInclusive\": 12,\n        \"totalTax\": 3,\n        \"totalTaxInclusive\": 3,\n        \"totalPaidAmount\": 12,\n        \"creditAmount\": 0,\n        \"productList\": \"\"\n    },\n    {\n        \"invoiceNumber\": 21312,\n        \"orderNumber\": \"123\",\n        \"username\": \"Mudit\",\n        \"name\": \"Mudit_Supplier\",\n        \"createdAt\": \"1611753369795\",\n        \"deliveryAt\": \"1611753369795\",\n        \"paymentDueAt\": \"1611753369795\",\n        \"subTotalTaxInclusive\": 12,\n        \"totalTax\": 3,\n        \"totalTaxInclusive\": 3,\n        \"totalPaidAmount\": 12,\n        \"creditAmount\": 0,\n        \"productList\": \"\"\n    }\n]"}],"_postman_id":"0b487ad1-ad17-440f-99ed-f5de30e91410"},{"name":"get order invoice detail","id":"c2dd8b6f-b668-46ff-8516-42db42bae8fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/orders/invoices/{orderInvoiceId}","urlObject":{"protocol":"https","path":["orders","invoices","{orderInvoiceId}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"e5a3f5c4-0a76-4461-9f45-430c13d59989","name":"get order invoice detail","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/orders/invoices/{orderInvoiceId}"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"invoiceNumber\": 432332,\n    \"orderNumber\": \"123\",\n    \"username\": \"Mudit\",\n    \"name\": \"Mudit_Supplier\",\n    \"createdAt\": \"1611753369795\",\n    \"deliveryAt\": \"1611753369795\",\n    \"paymentDueAt\": \"1611753369795\",\n    \"subTotalTaxInclusive\": 12,\n    \"totalTax\": 3,\n    \"totalTaxInclusive\": 3,\n    \"totalPaidAmount\": 12,\n    \"creditAmount\": 0,\n    \"productList\": \"\"\n}"}],"_postman_id":"c2dd8b6f-b668-46ff-8516-42db42bae8fd"}],"id":"62e2d379-1547-4147-b23e-b81d17b663c7","_postman_id":"62e2d379-1547-4147-b23e-b81d17b663c7","description":""},{"name":"get all orders","id":"fadc5680-641f-4f75-a769-f5092b893d54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"url":"https://{{rewaa-url}}/orders","urlObject":{"protocol":"https","path":["orders"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"ec0a9264-9293-4eca-b7c5-cf02a17e94c4","name":"get all orders","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{Authorization}}"}],"url":"https://{{rewaa-url}}/orders"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1\",\n        \"customerName\": \"Customer1\",\n        \"status\": \"Pending\",\n        \"channel\": \"ZID\",\n        \"orderNumber\": \"145679\",\n        \"createdAt\": \"2021-01-27T13:39:18.776Z\",\n        \"updatedAt\": \"2021-01-27T13:39:18.776Z\",\n        \"totalDue\": 567\n    },\n    {\n        \"id\": \"2\",\n        \"customerName\": \"Customer2\",\n        \"status\": \"InProcessing\",\n        \"channel\": \"ZID\",\n        \"orderNumber\": \"145680\",\n        \"createdAt\": \"2021-01-27T13:39:18.776Z\",\n        \"updatedAt\": \"2021-01-27T13:39:18.776Z\",\n        \"totalDue\": 967\n    }\n]"}],"_postman_id":"fadc5680-641f-4f75-a769-f5092b893d54"},{"name":"get order detail","id":"d47e3db7-81bc-4f75-ab54-92662a990cfb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}//orders/{orderId}","urlObject":{"protocol":"https","path":["","orders","{orderId}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"5a9d2667-1269-44b7-b434-05f27d351722","name":"get order detail","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}//orders/7"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"channel\": \"woocommerce\",\n    \"receivedAt\": \"2020-08-09T12:12:22.000Z\",\n    \"orderNumber\": \"161289\",\n    \"paymentMethod\": \"CASH\",\n    \"shippingMethod\": \"Flat rate\",\n    \"vatAmount\": 0,\n    \"shippingFee\": 35,\n    \"comments\": \"\",\n    \"status\": \"Canceled\",\n    \"shipmentDate\": null,\n    \"reference\": \"\",\n    \"customerName\": \"\",\n    \"otherFees\": 0,\n    \"subtotal\": null,\n    \"total\": null,\n    \"shippedFrom\": \"\",\n    \"id\": 7,\n    \"customerId\": 6,\n    \"stockLocationId\": null,\n    \"createdAt\": \"2020-08-09T12:12:22.000Z\",\n    \"updatedAt\": \"2020-08-09T12:12:24.000Z\",\n    \"deletedAt\": null,\n    \"Customer\": {\n        \"name\": \"Asmaa Mostafa\",\n        \"mobileNumber\": \"\",\n        \"email\": \"asmaaa.mostafa@rewaatech.com\",\n        \"shippingAddress\": \"يي\\n\\nيي\\nيي\\n2131\\nSA\",\n        \"billingAddress\": \"يي\\n\\nيي\\nيي\\n2131\\nSA\",\n        \"shippingToAddress\": \"\",\n        \"id\": 6,\n        \"createdAt\": \"2020-08-09T12:12:22.000Z\",\n        \"updatedAt\": \"2020-08-09T12:12:22.000Z\",\n        \"deletedAt\": null\n    },\n    \"Invoices\": [\n        {\n            \"invoiceNumber\": 12,\n            \"completeDate\": \"2020-08-18T00:00:00.000Z\",\n            \"status\": \"Active\",\n            \"notes\": \"advcaascacasc\",\n            \"type\": \"SaleOrder\",\n            \"subTotalTaxExclusive\": 12,\n            \"totalTax\": 23,\n            \"totalTaxInclusive\": 123,\n            \"destinationLocationId\": 0,\n            \"destinationLocationName\": \"\",\n            \"stockLocationName\": \"\",\n            \"supplierName\": \"\",\n            \"id\": 1,\n            \"customerId\": 6,\n            \"stockLocationId\": 1,\n            \"supplierId\": null,\n            \"orderId\": 7,\n            \"createdAt\": \"2020-08-14T00:00:00.000Z\",\n            \"updatedAt\": \"2020-08-17T00:00:00.000Z\",\n            \"deletedAt\": null\n        },\n        {\n            \"invoiceNumber\": 3,\n            \"completeDate\": \"2020-08-18T00:00:00.000Z\",\n            \"status\": \"Active\",\n            \"notes\": \"rrrrrrrrrrrrrrrrrrrrrrr\",\n            \"type\": \"ReturnOrder\",\n            \"subTotalTaxExclusive\": 4,\n            \"totalTax\": 45,\n            \"totalTaxInclusive\": 44,\n            \"destinationLocationId\": null,\n            \"destinationLocationName\": \"\",\n            \"stockLocationName\": \"\",\n            \"supplierName\": \"\",\n            \"id\": 2,\n            \"customerId\": 6,\n            \"stockLocationId\": 1,\n            \"supplierId\": null,\n            \"orderId\": 7,\n            \"createdAt\": \"2020-08-09T00:00:00.000Z\",\n            \"updatedAt\": null,\n            \"deletedAt\": null\n        }\n    ],\n    \"OrderItems\": [\n        {\n            \"quantity\": 1,\n            \"pricePerItem\": 24,\n            \"discount\": null,\n            \"variantName\": \"\",\n            \"sku\": \"\",\n            \"id\": 6,\n            \"orderId\": 7,\n            \"productVariantId\": 1,\n            \"createdAt\": \"2020-08-09T12:12:22.000Z\",\n            \"updatedAt\": \"2020-08-09T12:12:22.000Z\",\n            \"deletedAt\": null,\n            \"ProductVariant\": {\n                \"sku\": \"Z.48478.1594739496668772\",\n                \"initialStock\": null,\n                \"initialCost\": null,\n                \"buyPrice\": null,\n                \"wholeSalePrice\": 6,\n                \"retailPrice\": 6,\n                \"isPurchasable\": true,\n                \"weight\": 0,\n                \"weightUnit\": null,\n                \"length\": null,\n                \"width\": null,\n                \"height\": null,\n                \"handlingTime\": null,\n                \"isContainsBattery\": null,\n                \"isFreeShipping\": null,\n                \"packSizeLabel\": \"\",\n                \"packSizeQuantity\": null,\n                \"manageStockLevel\": true,\n                \"isSellable\": false,\n                \"isTaxable\": null,\n                \"name\": \"\",\n                \"hsCode\": \"\",\n                \"barCode\": \"\",\n                \"supplierCode\": \"\",\n                \"description\": \"<p></p>\\n\",\n                \"variantAttributes\": \"\",\n                \"id\": 1,\n                \"productId\": 1,\n                \"createdAt\": \"2020-08-13T12:13:48.000Z\",\n                \"updatedAt\": \"2020-08-13T12:13:48.000Z\",\n                \"deletedAt\": null,\n                \"ProductVariantToStockLocations\": [\n                    {\n                        \"quantity\": 0,\n                        \"id\": 1,\n                        \"stockLocationId\": 1,\n                        \"productVariantId\": 1,\n                        \"createdAt\": \"2020-08-13T12:13:48.000Z\",\n                        \"updatedAt\": \"2020-08-13T12:13:48.000Z\",\n                        \"deletedAt\": null\n                    }\n                ]\n            }\n        }\n    ]\n}"}],"_postman_id":"d47e3db7-81bc-4f75-ab54-92662a990cfb"},{"name":"update order status","id":"0b1c53e2-a6e0-4f3b-aa80-61646454607f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"/orders/status/{orderId}","urlObject":{"path":["orders","status","{orderId}"],"query":[],"variable":[]}},"response":[{"id":"7a9aca8e-dd50-41d2-9f9c-4cf171c820fd","name":"update order status","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"orderReturn\": {\r\n        \"locationId\": 1,\r\n        \"note\": \"\",\r\n        \"partialItems\": [\r\n            {\r\n                \"itemId\": 99,\r\n                \"returnQuantity\": 1\r\n            }\r\n        ]\r\n    },\r\n    \"newStatus\": \"PartiallyReturned\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/orders/status/1"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"0b1c53e2-a6e0-4f3b-aa80-61646454607f"}],"id":"5f82f3e1-3a99-4e48-8693-d778ccab6e13","_postman_id":"5f82f3e1-3a99-4e48-8693-d778ccab6e13","description":""},{"name":"webhooks","item":[{"name":"woocommerce","item":[{"name":"order created","id":"8a074bf7-7dcb-41d6-a53a-b09657895a1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 153528,\n    \"name\": \"product 8\",\n    \"slug\": \"product-8\",\n    \"permalink\": \"https:\\\\/\\\\/gitexwp.rewaatech.com\\\\/product\\\\/product-8\\\\/\",\n    \"date_created\": \"2020-07-30T08:11:53\",\n    \"date_created_gmt\": \"2020-07-30T08:11:53\",\n    \"date_modified\": \"2020-07-30T09:26:51\",\n    \"date_modified_gmt\": \"2020-07-30T09:26:51\",\n    \"type\": \"simple\",\n    \"status\": \"publish\",\n    \"featured\": false,\n    \"catalog_visibility\": \"visible\",\n    \"description\": \"\",\n    \"short_description\": \"\",\n    \"sku\": \"768039494499\",\n    \"price\": \"0\",\n    \"regular_price\": \"0\",\n    \"sale_price\": \"\",\n    \"date_on_sale_from\": null,\n    \"date_on_sale_from_gmt\": null,\n    \"date_on_sale_to\": null,\n    \"date_on_sale_to_gmt\": null,\n    \"price_html\": \"\",\n    \"on_sale\": false,\n    \"purchasable\": true,\n    \"total_sales\": 0,\n    \"virtual\": false,\n    \"downloadable\": false,\n    \"downloads\": [],\n    \"download_limit\": -1,\n    \"download_expiry\": -1,\n    \"external_url\": \"\",\n    \"button_text\": \"\",\n    \"tax_status\": \"taxable\",\n    \"tax_class\": \"\",\n    \"manage_stock\": true,\n    \"stock_quantity\": 21,\n    \"stock_status\": \"instock\",\n    \"backorders\": \"no\",\n    \"backorders_allowed\": false,\n    \"backordered\": false,\n    \"sold_individually\": false,\n    \"weight\": \"\",\n    \"dimensions\": {\n        \"length\": \"\",\n        \"width\": \"\",\n        \"height\": \"\"\n    },\n    \"shipping_required\": true,\n    \"shipping_taxable\": true,\n    \"shipping_class\": \"\",\n    \"shipping_class_id\": 0,\n    \"reviews_allowed\": true,\n    \"average_rating\": \"0.00\",\n    \"rating_count\": 0,\n    \"related_ids\": [\n        137231,\n        137361,\n        136602,\n        137279,\n        137312\n    ],\n    \"upsell_ids\": [],\n    \"cross_sell_ids\": [],\n    \"parent_id\": 0,\n    \"purchase_note\": \"\",\n    \"categories\": [\n        {\n            \"id\": 15,\n            \"name\": \"Uncategorized\",\n            \"slug\": \"uncategorized\"\n        }\n    ],\n    \"tags\": [],\n    \"images\": [],\n    \"attributes\": [],\n    \"default_attributes\": [],\n    \"variations\": [],\n    \"grouped_products\": [],\n    \"menu_order\": 0,\n    \"meta_data\": [],\n    \"_links\": {\n        \"self\": [\n            {\n                \"href\": \"https:\\\\/\\\\/gitexwp.rewaatech.com\\\\/wp-json\\\\/wc\\\\/v3\\\\/products\\\\/153528\"\n            }\n        ],\n        \"collection\": [\n            {\n                \"href\": \"https:\\\\/\\\\/gitexwp.rewaatech.com\\\\/wp-json\\\\/wc\\\\/v3\\\\/products\"\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/{{rewaa-user-id}}/webhooks","description":"<p>when order created in Woocommerce it send its event to all subscribers through the registered webhooks. when Rewaa user install Woocommerce it create such hooks on Woocommerce.</p>\n","urlObject":{"protocol":"https","path":["{{rewaa-user-id}}","webhooks"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"1c84fd2a-ef23-46e1-8bfb-7ca199745720","name":"order created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 153528,\n    \"name\": \"product 8\",\n    \"slug\": \"product-8\",\n    \"permalink\": \"https:\\\\/\\\\/gitexwp.rewaatech.com\\\\/product\\\\/product-8\\\\/\",\n    \"date_created\": \"2020-07-30T08:11:53\",\n    \"date_created_gmt\": \"2020-07-30T08:11:53\",\n    \"date_modified\": \"2020-07-30T09:26:51\",\n    \"date_modified_gmt\": \"2020-07-30T09:26:51\",\n    \"type\": \"simple\",\n    \"status\": \"publish\",\n    \"featured\": false,\n    \"catalog_visibility\": \"visible\",\n    \"description\": \"\",\n    \"short_description\": \"\",\n    \"sku\": \"768039494499\",\n    \"price\": \"0\",\n    \"regular_price\": \"0\",\n    \"sale_price\": \"\",\n    \"date_on_sale_from\": null,\n    \"date_on_sale_from_gmt\": null,\n    \"date_on_sale_to\": null,\n    \"date_on_sale_to_gmt\": null,\n    \"price_html\": \"\",\n    \"on_sale\": false,\n    \"purchasable\": true,\n    \"total_sales\": 0,\n    \"virtual\": false,\n    \"downloadable\": false,\n    \"downloads\": [],\n    \"download_limit\": -1,\n    \"download_expiry\": -1,\n    \"external_url\": \"\",\n    \"button_text\": \"\",\n    \"tax_status\": \"taxable\",\n    \"tax_class\": \"\",\n    \"manage_stock\": true,\n    \"stock_quantity\": 21,\n    \"stock_status\": \"instock\",\n    \"backorders\": \"no\",\n    \"backorders_allowed\": false,\n    \"backordered\": false,\n    \"sold_individually\": false,\n    \"weight\": \"\",\n    \"dimensions\": {\n        \"length\": \"\",\n        \"width\": \"\",\n        \"height\": \"\"\n    },\n    \"shipping_required\": true,\n    \"shipping_taxable\": true,\n    \"shipping_class\": \"\",\n    \"shipping_class_id\": 0,\n    \"reviews_allowed\": true,\n    \"average_rating\": \"0.00\",\n    \"rating_count\": 0,\n    \"related_ids\": [\n        137231,\n        137361,\n        136602,\n        137279,\n        137312\n    ],\n    \"upsell_ids\": [],\n    \"cross_sell_ids\": [],\n    \"parent_id\": 0,\n    \"purchase_note\": \"\",\n    \"categories\": [\n        {\n            \"id\": 15,\n            \"name\": \"Uncategorized\",\n            \"slug\": \"uncategorized\"\n        }\n    ],\n    \"tags\": [],\n    \"images\": [],\n    \"attributes\": [],\n    \"default_attributes\": [],\n    \"variations\": [],\n    \"grouped_products\": [],\n    \"menu_order\": 0,\n    \"meta_data\": [],\n    \"_links\": {\n        \"self\": [\n            {\n                \"href\": \"https:\\\\/\\\\/gitexwp.rewaatech.com\\\\/wp-json\\\\/wc\\\\/v3\\\\/products\\\\/153528\"\n            }\n        ],\n        \"collection\": [\n            {\n                \"href\": \"https:\\\\/\\\\/gitexwp.rewaatech.com\\\\/wp-json\\\\/wc\\\\/v3\\\\/products\"\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/{{rewaa-user-id}}/webhooks"},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Aug 2020 16:18:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"36"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"c79d3d92-5eb7-41ad-b4d4-c6826e11d11c"},{"key":"x-amzn-ErrorType","value":"InternalServerErrorException"},{"key":"x-amz-apigw-id","value":"QpkW2HA4IAMF7Yw="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Internal server error\"\n}"}],"_postman_id":"8a074bf7-7dcb-41d6-a53a-b09657895a1d"}],"id":"fc371f75-e726-45ad-9000-f1215a5f292a","_postman_id":"fc371f75-e726-45ad-9000-f1215a5f292a","description":""}],"id":"ad50ca6a-9723-449f-8b28-19be93607f99","description":"<p>Rewaa is integrating with external applications through webhooks as push based integration, webhooks are urls that should be retained and called by the external application whenever an event happens . Rewaa interests in the following events</p>\n<p>Order created\nOrder updated</p>\n<p>Product created\nProduct updated\nProduct deleted</p>\n","event":[{"listen":"prerequest","script":{"id":"7f3ca844-b01c-47d4-b5a6-2ea4eda11983","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ec1afc13-eb3b-4d81-9fc3-840d1aec3f85","type":"text/javascript","exec":[""]}}],"_postman_id":"ad50ca6a-9723-449f-8b28-19be93607f99"},{"name":"suppliers","item":[{"name":"get all suppliers","id":"c20a1352-0e88-4d1a-9386-6a6373d7d2c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/suppliers?limit=10&offset=0","urlObject":{"protocol":"https","path":["suppliers"],"host":["{{rewaa-url}}"],"query":[{"key":"limit","value":"10"},{"key":"offset","value":"0"}],"variable":[]}},"response":[{"id":"70213c3c-5f6a-4cde-b082-4777706e8e15","name":"get all suppliers","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":{"raw":"https://{{rewaa-url}}/suppliers?limit=10&offset=0","protocol":"https","host":["{{rewaa-url}}"],"path":["suppliers"],"query":[{"key":"limit","value":"10"},{"key":"offset","value":"0"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"Test Supplier\",\n        \"email\": \"supplier@supply.com\",\n        \"phoneNumber\": \"123456789\",\n        \"streetAddress\": \"Bangalore\",\n        \"suburb\": \"Bangalore\",\n        \"city\": \"Bangalore\",\n        \"country\": 1,\n        \"id\": 2,\n        \"createdAt\": \"2020-05-27T07:10:50.000Z\",\n        \"updatedAt\": \"2020-05-27T07:10:50.000Z\",\n        \"deletedAt\": null\n    }\n]"}],"_postman_id":"c20a1352-0e88-4d1a-9386-6a6373d7d2c9"},{"name":"create supplier","id":"cf64e6b5-282e-412f-a17b-b3c57f8eb4d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/suppliers","urlObject":{"protocol":"https","path":["suppliers"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"6fa6905c-f094-4a38-b5ee-1fcfe359ddcc","name":"create supplier","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Test Supplier\",\r\n    \"email\": \"supplier@supply.com\",\r\n    \"phoneNumber\": \"123456789\",\r\n    \"streetAddress\": \"Bangalore\",\r\n    \"suburb\": \"Bangalore\",\r\n    \"city\": \"Bangalore\",\r\n    \"country\": 1\r\n}   ","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/suppliers"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"cf64e6b5-282e-412f-a17b-b3c57f8eb4d4"},{"name":"update supplier","id":"a0923a12-3e09-49e6-9884-6fae8f5805e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/suppliers/{id}","urlObject":{"protocol":"https","path":["suppliers","{id}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"7aac46c1-8c8f-4261-a234-8451de4f73a4","name":"update supplier","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Test Supplier\",\r\n    \"email\": \"supplier@supply.com\",\r\n    \"phoneNumber\": \"123456789\",\r\n    \"streetAddress\": \"Bangalore\",\r\n    \"suburb\": \"Bangalore\",\r\n    \"city\": \"Bangalore\",\r\n    \"country\": 1\r\n}   ","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/suppliers/1"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"a0923a12-3e09-49e6-9884-6fae8f5805e4"},{"name":"get supplier detail","id":"a10779f3-5bc3-4b25-9891-148ef154aa55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/suppliers/{id}","urlObject":{"protocol":"https","path":["suppliers","{id}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"8648668b-e06e-433d-b0ac-32c1fb3bafc7","name":"get supplier detail","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/suppliers/2"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Test Supplier\",\n    \"email\": \"supplier@supply.com\",\n    \"phoneNumber\": \"123456789\",\n    \"streetAddress\": \"Bangalore\",\n    \"suburb\": \"Bangalore\",\n    \"city\": \"Bangalore\",\n    \"country\": 1,\n    \"id\": 2,\n    \"createdAt\": \"2020-05-27T07:10:50.000Z\",\n    \"updatedAt\": \"2020-05-27T07:10:50.000Z\",\n    \"deletedAt\": null\n}"}],"_postman_id":"a10779f3-5bc3-4b25-9891-148ef154aa55"},{"name":"delete supplier","id":"b4fa2cce-6b44-4c89-b7b8-8a923c6815ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/suppliers/{id}","urlObject":{"protocol":"https","path":["suppliers","{id}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"4231d120-c355-442a-8c28-89d5a2d124f7","name":"delete supplier","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/suppliers/1"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"b4fa2cce-6b44-4c89-b7b8-8a923c6815ca"},{"name":"get supplier payment detail","id":"cdfe658b-68be-4d8c-b077-c6db3e6daba0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/suppliers/payments/{id}","urlObject":{"protocol":"https","path":["suppliers","payments","{id}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cdfe658b-68be-4d8c-b077-c6db3e6daba0"}],"id":"3dc3ae46-cda3-4388-a012-f336292c67db","_postman_id":"3dc3ae46-cda3-4388-a012-f336292c67db","description":""},{"name":"payments","item":[{"name":"create receive debit","id":"a0561805-e604-4ce9-a4f0-da2f0aff5f66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}//payments/receive-debit","urlObject":{"protocol":"https","path":["","payments","receive-debit"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"1df4b77a-e813-4d9e-a584-2aa98f96a1fc","name":"with credit card invoice","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 68,\r\n    \"status\": \"Completed\",\r\n    \"notes\": \"\",\r\n    \"type\": \"ReceiveDebit\",\r\n    \"supplierId\": 1,\r\n    \"PayableInvoice\": {\r\n        \"supplierInvoiceNumber\": \"\",\r\n        \"id\": 68,\r\n        \"paymentMethod\": \"CreditCard\",\r\n        \"paymentStatus\": \"Paid\",\r\n        \"totalBeforePayment\": 69.2,\r\n        \"totalAfterPayment\": 65.2,\r\n        \"invoiceId\": 68,\r\n        \"updatedAt\": \"2020-06-29T07:55:56.989Z\",\r\n        \"createdAt\": \"2020-06-29T07:55:56.989Z\"\r\n    },\r\n    \"updatedAt\": \"2020-06-29T07:55:56.976Z\",\r\n    \"createdAt\": \"2020-06-29T07:55:56.976Z\",\r\n    \"invoiceNumber\": 236781\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}//payments/receive-debit"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"a622908f-2689-4458-b6db-ce51700e0e33","name":"with credit card","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"supplierId\": 1,\r\n    \"paymentMethod\": \"CreditCard\",\r\n    \"invoicesDetails\": [\r\n        {\r\n            \"id\": 17,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidDebtor\"\r\n        },\r\n        {\r\n            \"id\": 19,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidDebtor\"\r\n        },\r\n        {\r\n            \"id\": 20,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidDebtor\"\r\n        },\r\n        {\r\n            \"id\": 22,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidDebtor\"\r\n        }\r\n    ],\r\n    \"note\": \"\",\r\n    \"totalDebitAfterPayment\": 65.2,\r\n    \"totalPaid\": 4,\r\n    \"totalDebitBeforePayment\": 69.2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}//payments/receive-debit"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"b876b3b2-47da-4a4c-bef8-d3a29482e726","name":"with cash","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"supplierId\": 1,\r\n\t\"paymentMethod\": \"Cash\",\r\n\t\"invoicesDetails\": [{\r\n\t\t\"id\": 17,\r\n\t\t\"amount\": 1,\r\n\t\t\"statusAfterPayment\": \"PartiallyPaidDebtor\"\r\n\t}, {\r\n\t\t\"id\": 19,\r\n\t\t\"amount\": 1,\r\n\t\t\"statusAfterPayment\": \"PartiallyPaidDebtor\"\r\n\t}, {\r\n\t\t\"id\": 20,\r\n\t\t\"amount\": 1,\r\n\t\t\"statusAfterPayment\": \"PartiallyPaidDebtor\"\r\n\t}, {\r\n\t\t\"id\": 22,\r\n\t\t\"amount\": 1,\r\n\t\t\"statusAfterPayment\": \"PartiallyPaidDebtor\"\r\n\t}],\r\n\t\"note\": \"\",\r\n\t\"totalDebitAfterPayment\": 65.2,\r\n\t\"totalPaid\": 4,\r\n\t\"totalDebitBeforePayment\": 69.2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}//payments/receive-debit"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"f2c271d3-72d7-4d81-94c6-f3ebea581724","name":"with cash invoice","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 63,\r\n    \"status\": \"Completed\",\r\n    \"notes\": \"\",\r\n    \"type\": \"ReceiveDebit\",\r\n    \"supplierId\": 1,\r\n    \"PayableInvoice\": {\r\n        \"supplierInvoiceNumber\": \"\",\r\n        \"id\": 63,\r\n        \"paymentMethod\": \"Cash\",\r\n        \"paymentStatus\": \"Paid\",\r\n        \"totalBeforePayment\": 69.2,\r\n        \"totalAfterPayment\": 65.2,\r\n        \"invoiceId\": 63,\r\n        \"updatedAt\": \"2020-06-29T06:58:11.432Z\",\r\n        \"createdAt\": \"2020-06-29T06:58:11.432Z\"\r\n    },\r\n    \"updatedAt\": \"2020-06-29T06:58:11.405Z\",\r\n    \"createdAt\": \"2020-06-29T06:58:11.405Z\",\r\n    \"invoiceNumber\": 23881\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}//payments/receive-debit"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"a0561805-e604-4ce9-a4f0-da2f0aff5f66"},{"name":"create receive credit","id":"028e143f-135e-46db-8f08-a173777c1b9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/payments/pay-credit","urlObject":{"protocol":"https","path":["payments","pay-credit"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"27bca055-8694-4544-bead-613176b1886d","name":"with cash","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"supplierId\": 1,\r\n    \"paymentMethod\": \"Cash\",\r\n    \"invoicesDetails\": [\r\n        {\r\n            \"id\": 17,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidCreditor\"\r\n        },\r\n        {\r\n            \"id\": 19,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidCreditor\"\r\n        },\r\n        {\r\n            \"id\": 20,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidCreditor\"\r\n        },\r\n        {\r\n            \"id\": 22,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidCreditor\"\r\n        }\r\n    ],\r\n    \"note\": \"\",\r\n    \"totalCreditAfterPayment\": 65.2,\r\n    \"totalPaid\": 4,\r\n    \"totalCreditBeforePayment\": 69.2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/payments/pay-credit"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"33acbf6e-c620-4b0f-a74a-4545094124ea","name":"with debit","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"supplierId\": 1,\r\n    \"paymentMethod\": \"Debit\",\r\n    \"invoicesDetails\": [\r\n        {\r\n            \"id\": 17,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidCreditor\"\r\n        },\r\n        {\r\n            \"id\": 19,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidCreditor\"\r\n        },\r\n        {\r\n            \"id\": 20,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidCreditor\"\r\n        },\r\n        {\r\n            \"id\": 22,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidCreditor\"\r\n        }\r\n    ],\r\n    \"note\": \"\",\r\n    \"totalCreditAfterPayment\": 65.2,\r\n    \"totalPaid\": 4,\r\n    \"totalCreditBeforePayment\": 69.2,\r\n    \"rtnInvoicesDetails\": [\r\n        {\r\n            \"id\": 25,\r\n            \"payableInvoiceId\": 26,\r\n            \"amount\": 4,\r\n            \"statusAfterPayment\": \"PartiallyPaidDebtor\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/payments/pay-credit"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"6eec04f7-f784-4597-b932-b628b7dd0976","name":"with credit card","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"supplierId\": 1,\r\n    \"paymentMethod\": \"CreditCard\",\r\n    \"invoicesDetails\": [\r\n        {\r\n            \"id\": 17,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidCreditor\"\r\n        },\r\n        {\r\n            \"id\": 19,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidCreditor\"\r\n        },\r\n        {\r\n            \"id\": 20,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidCreditor\"\r\n        },\r\n        {\r\n            \"id\": 22,\r\n            \"amount\": 1,\r\n            \"statusAfterPayment\": \"PartiallyPaidCreditor\"\r\n        }\r\n    ],\r\n    \"note\": \"\",\r\n    \"totalCreditAfterPayment\": 65.2,\r\n    \"totalPaid\": 4,\r\n    \"totalCreditBeforePayment\": 69.2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/payments/pay-credit"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"85c76c2d-8939-4f3e-ba59-913a40e9df01","name":"with cash invoice","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 63,\r\n    \"status\": \"Completed\",\r\n    \"notes\": \"\",\r\n    \"type\": \"PayCredit\",\r\n    \"supplierId\": 1,\r\n    \"PayableInvoice\": {\r\n        \"supplierInvoiceNumber\": \"\",\r\n        \"id\": 63,\r\n        \"paymentMethod\": \"Cash\",\r\n        \"paymentStatus\": \"Paid\",\r\n        \"totalBeforePayment\": 69.2,\r\n        \"totalAfterPayment\": 65.2,\r\n        \"invoiceId\": 63,\r\n        \"updatedAt\": \"2020-06-29T06:58:11.432Z\",\r\n        \"createdAt\": \"2020-06-29T06:58:11.432Z\"\r\n    },\r\n    \"updatedAt\": \"2020-06-29T06:58:11.405Z\",\r\n    \"createdAt\": \"2020-06-29T06:58:11.405Z\",\r\n    \"invoiceNumber\": 236872\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/payments/pay-credit"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"ac3471b8-b3ff-4163-baf8-2f7243313e81","name":"with debit invoice","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 69,\r\n    \"status\": \"Completed\",\r\n    \"notes\": \"\",\r\n    \"type\": \"PayCredit\",\r\n    \"supplierId\": 1,\r\n    \"PayableInvoice\": {\r\n        \"supplierInvoiceNumber\": \"\",\r\n        \"id\": 69,\r\n        \"paymentMethod\": \"DebitCard\",\r\n        \"paymentStatus\": \"Paid\",\r\n        \"totalBeforePayment\": 69.2,\r\n        \"totalAfterPayment\": 65.2,\r\n        \"invoiceId\": 69,\r\n        \"updatedAt\": \"2020-06-29T08:00:04.620Z\",\r\n        \"createdAt\": \"2020-06-29T08:00:04.620Z\"\r\n    },\r\n    \"updatedAt\": \"2020-06-29T08:00:04.609Z\",\r\n    \"createdAt\": \"2020-06-29T08:00:04.609Z\",\r\n    \"invoiceNumber\": 5686868\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/payments/pay-credit"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"b30c67f7-077a-4c56-a40d-ea5102a6859a","name":"with credit card invoice","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 68,\r\n    \"status\": \"Completed\",\r\n    \"notes\": \"\",\r\n    \"type\": \"PayCredit\",\r\n    \"supplierId\": 1,\r\n    \"PayableInvoice\": {\r\n        \"supplierInvoiceNumber\": \"\",\r\n        \"id\": 68,\r\n        \"paymentMethod\": \"CreditCard\",\r\n        \"paymentStatus\": \"Paid\",\r\n        \"totalBeforePayment\": 69.2,\r\n        \"totalAfterPayment\": 65.2,\r\n        \"invoiceId\": 68,\r\n        \"updatedAt\": \"2020-06-29T07:55:56.989Z\",\r\n        \"createdAt\": \"2020-06-29T07:55:56.989Z\"\r\n    },\r\n    \"updatedAt\": \"2020-06-29T07:55:56.976Z\",\r\n    \"createdAt\": \"2020-06-29T07:55:56.976Z\",\r\n    \"invoiceNumber\": 325167\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/payments/pay-credit"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"028e143f-135e-46db-8f08-a173777c1b9a"}],"id":"2b7d9aef-2678-46f0-bf47-cc5bc144d40e","_postman_id":"2b7d9aef-2678-46f0-bf47-cc5bc144d40e","description":""},{"name":"customers","item":[{"name":"get all customers","id":"99fc743e-757a-4e9c-a5f1-9e87ae8ab192","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/customers","urlObject":{"protocol":"https","path":["customers"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"4a315154-4b34-4ce9-9827-958bf1bead41","name":"get all customers","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/customers"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": null,\n        \"name\": \"ibrahim\",\n        \"mobileNumber\": \"966591409727\",\n        \"email\": \"e.abdulqadir@zid.sa\",\n        \"birthDate\": null,\n        \"gender\": null,\n        \"buildingNo\": null,\n        \"streetName\": \"\",\n        \"city\": \"\",\n        \"district\": \"\",\n        \"zip\": null,\n        \"additionalNumber\": null,\n        \"country\": null,\n        \"debitAmount\": 0,\n        \"totalPaid\": 0,\n        \"notes\": \"\",\n        \"shippingAddress\": \"السعودية\",\n        \"billingAddress\": \"السعودية\",\n        \"shippingToAddress\": \"\",\n        \"id\": 1,\n        \"createdAt\": \"2020-07-23T10:19:24.000Z\",\n        \"updatedAt\": \"2020-07-23T10:19:24.000Z\",\n        \"deletedAt\": null\n    },\n    {\n        \"code\": null,\n        \"name\": \"إحسان فهمي\",\n        \"mobileNumber\": \"966555081957\",\n        \"email\": \"e.abdulqadir@zid.sa\",\n        \"birthDate\": null,\n        \"gender\": null,\n        \"buildingNo\": null,\n        \"streetName\": \"\",\n        \"city\": \"\",\n        \"district\": \"\",\n        \"zip\": null,\n        \"additionalNumber\": null,\n        \"country\": null,\n        \"debitAmount\": 0,\n        \"totalPaid\": 0,\n        \"notes\": \"\",\n        \"shippingAddress\": \"السعودية\",\n        \"billingAddress\": \"السعودية\",\n        \"shippingToAddress\": \"\",\n        \"id\": 2,\n        \"createdAt\": \"2020-07-23T10:19:26.000Z\",\n        \"updatedAt\": \"2020-07-23T10:19:26.000Z\",\n        \"deletedAt\": null\n    }\n]"}],"_postman_id":"99fc743e-757a-4e9c-a5f1-9e87ae8ab192"},{"name":"get customer detail by code","id":"294a9317-4a75-4e8b-b044-13cb7b7c4d32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/customers/getByCode/{code}","urlObject":{"protocol":"https","path":["customers","getByCode","{code}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"9d736357-7891-464d-90d2-12170526d926","name":"get customer detail by code","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/customers/getByCode/111123"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 111123,\n    \"name\": \"ibrahim\",\n    \"mobileNumber\": \"966591409727\",\n    \"email\": \"e.abdulqadir@zid.sa\",\n    \"birthDate\": null,\n    \"gender\": null,\n    \"buildingNo\": null,\n    \"streetName\": \"\",\n    \"city\": \"\",\n    \"district\": \"\",\n    \"zip\": null,\n    \"additionalNumber\": null,\n    \"country\": null,\n    \"debitAmount\": 0,\n    \"totalPaid\": 0,\n    \"notes\": \"\",\n    \"shippingAddress\": \"السعودية\",\n    \"billingAddress\": \"السعودية\",\n    \"shippingToAddress\": \"\",\n    \"id\": 1,\n    \"createdAt\": \"2020-07-23T10:19:24.000Z\",\n    \"updatedAt\": \"2020-07-23T10:19:24.000Z\",\n    \"deletedAt\": null\n}"}],"_postman_id":"294a9317-4a75-4e8b-b044-13cb7b7c4d32"},{"name":"get customer detail by mobile number","id":"87eb1d58-6b45-4fda-933c-092c06b1bc2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/customers/getByMobile/{mobileNumber}","urlObject":{"protocol":"https","path":["customers","getByMobile","{mobileNumber}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"962a880d-4bd9-452a-b094-ab770f505ece","name":"get customer detail by mobile number","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/customers/getByMobile/966591409727"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"code\": null,\n    \"name\": \"ibrahim\",\n    \"mobileNumber\": \"966591409727\",\n    \"email\": \"e.abdulqadir@zid.sa\",\n    \"birthDate\": null,\n    \"gender\": null,\n    \"buildingNo\": null,\n    \"streetName\": \"\",\n    \"city\": \"\",\n    \"district\": \"\",\n    \"zip\": null,\n    \"additionalNumber\": null,\n    \"country\": null,\n    \"debitAmount\": 0,\n    \"totalPaid\": 0,\n    \"notes\": \"\",\n    \"shippingAddress\": \"السعودية\",\n    \"billingAddress\": \"السعودية\",\n    \"shippingToAddress\": \"\",\n    \"id\": 1,\n    \"createdAt\": \"2020-07-23T10:19:24.000Z\",\n    \"updatedAt\": \"2020-07-23T10:19:24.000Z\",\n    \"deletedAt\": null\n}"}],"_postman_id":"87eb1d58-6b45-4fda-933c-092c06b1bc2e"},{"name":"create customer","id":"6a0ef03a-0a5b-4af5-a61d-6d30577c03db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/customers","urlObject":{"protocol":"https","path":["customers"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"7bf5aee4-2772-4ae0-8ca6-978f1144f935","name":"create customer","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"111123\",\r\n    \"name\": \"ibrahim\",\r\n    \"mobileNumber\": \"0523456789\",\r\n    \"email\": \"e.abdulqadir@zid.sa\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/customers"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"6a0ef03a-0a5b-4af5-a61d-6d30577c03db"},{"name":"delete customer","id":"b84b8372-0af5-4afd-ab45-02911d28682c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/customers?id=<id>","urlObject":{"protocol":"https","path":["customers"],"host":["{{rewaa-url}}"],"query":[{"key":"id","value":"<id>"}],"variable":[]}},"response":[],"_postman_id":"b84b8372-0af5-4afd-ab45-02911d28682c"},{"name":"update customer","id":"86100495-c37b-4688-8b14-3d2d198aa9ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/customers/{id}","urlObject":{"protocol":"https","path":["customers","{id}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"8cf127f8-9945-44fb-ab54-d5882fdda069","name":"update customer","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": 1,\r\n    \"code\": \"111123\",\r\n    \"name\": \"ibrahim\",\r\n    \"mobileNumber\": \"0523456789\",\r\n    \"email\": \"e.abdulqadir@zid.sa\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/customers/1"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"86100495-c37b-4688-8b14-3d2d198aa9ee"},{"name":"export customer","id":"0d95c083-d908-4a48-bee1-4f206149965d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/customers/export","urlObject":{"protocol":"https","path":["customers","export"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"e11c4fa9-53a2-4711-b24d-3b21a91aaf3c","name":"export customer","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"[12, 45, 5]","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/customers/export"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"0d95c083-d908-4a48-bee1-4f206149965d"},{"name":"get next code","id":"ccfe94af-9c0e-43b5-9d27-455fd0f52ab8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/customers/nextCode","urlObject":{"protocol":"https","path":["customers","nextCode"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ccfe94af-9c0e-43b5-9d27-455fd0f52ab8"}],"id":"4602322f-5c12-4c8a-955b-d90aad1a7cb2","_postman_id":"4602322f-5c12-4c8a-955b-d90aad1a7cb2","description":""},{"name":"taxes","item":[{"name":"get all taxes","id":"027a4bbf-6cda-4819-abf3-e76ac2ff3086","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/taxes","urlObject":{"protocol":"https","path":["taxes"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"9c2eef35-bbb0-4b58-8ec3-a2b1ee78c083","name":"get all taxes","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/taxes"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"Value Added TAX test\",\n        \"code\": \"VAT test\",\n        \"coumpoundTaxLineId\": 3,\n        \"id\": 2,\n        \"TaxLines\": [\n            {\n                \"name\": \"Value Added Tax 10\",\n                \"rate\": 10,\n                \"id\": 1,\n                \"taxId\": 2\n            },\n            {\n                \"name\": \"New Tax Line\",\n                \"rate\": 7,\n                \"taxId\": 2\n            }\n        ],\n        \"CoumpoundTax\": {\n            \"name\": \"Coumpound Tax\",\n            \"rate\": 10,\n            \"id\": 3\n        }\n    }\n]"}],"_postman_id":"027a4bbf-6cda-4819-abf3-e76ac2ff3086"},{"name":"create tax","id":"8f5a985d-3d33-49c7-b31b-3f1e9357bb03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/taxes","urlObject":{"protocol":"https","path":["taxes"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"d7ecc8f0-c93e-47e0-83e0-d7a653738c2f","name":"create tax","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Test Tax\",\r\n    \"code\": \"test\",\r\n    \"TaxLines\": [\r\n        {\r\n            \"name\": \"Test Tax\",\r\n            \"rate\": 10\r\n        }\r\n    ],\r\n    \"CoumpoundTax\": {\r\n        \"name\": \"Test Tax\",\r\n        \"rate\": 10\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/taxes"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"8f5a985d-3d33-49c7-b31b-3f1e9357bb03"},{"name":"update tax","id":"74511bb3-0b9d-4454-a6a3-0d9d05847eca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/taxes","urlObject":{"protocol":"https","path":["taxes"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"4d72cb09-dcac-4eb5-af8a-57f2d0dae69d","name":"update tax","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Value Added TAX test\",\r\n    \"code\": \"VAT test\",\r\n    \"coumpoundTaxLineId\": 3,\r\n    \"id\": 2,\r\n    \"TaxLines\": [\r\n        {\r\n            \"name\": \"Value Added Tax 10\",\r\n            \"rate\": 10,\r\n            \"id\": 1,\r\n            \"taxId\": 2\r\n        },\r\n        {\r\n            \"name\": \"New Tax Line\",\r\n            \"rate\": 7,\r\n            \"taxId\": 2\r\n        }\r\n    ],\r\n    \"CoumpoundTax\": {\r\n        \"name\": \"Coumpound Tax\",\r\n        \"rate\": 10,\r\n        \"id\": 3\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/taxes"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"74511bb3-0b9d-4454-a6a3-0d9d05847eca"},{"name":"get tax by id","id":"a2991086-2f56-4a63-b81d-bd494418b9f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/taxes/{id}","urlObject":{"protocol":"https","path":["taxes","{id}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"910bd545-9f27-4254-929d-dd793e8629eb","name":"get tax by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/taxes/2"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Value Added TAX test\",\n    \"code\": \"VAT test\",\n    \"coumpoundTaxLineId\": 3,\n    \"id\": 2,\n    \"TaxLines\": [\n        {\n            \"name\": \"Value Added Tax 10\",\n            \"rate\": 10,\n            \"id\": 1,\n            \"taxId\": 2\n        },\n        {\n            \"name\": \"New Tax Line\",\n            \"rate\": 7,\n            \"taxId\": 2\n        }\n    ],\n    \"CoumpoundTax\": {\n        \"name\": \"Coumpound Tax\",\n        \"rate\": 10,\n        \"id\": 3\n    }\n}"}],"_postman_id":"a2991086-2f56-4a63-b81d-bd494418b9f6"},{"name":"get tax by code","id":"30795328-daf9-4739-a0b4-dce73c714585","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/taxes/{code}","urlObject":{"protocol":"https","path":["taxes","{code}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"cbb78d49-25e0-4396-abc4-2303ba4c7527","name":"get tax by code","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/taxes/VAT_test"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Value Added TAX test\",\n    \"code\": \"VAT_test\",\n    \"coumpoundTaxLineId\": 3,\n    \"id\": 2,\n    \"TaxLines\": [\n        {\n            \"name\": \"Value Added Tax 10\",\n            \"rate\": 10,\n            \"id\": 1,\n            \"taxId\": 2\n        },\n        {\n            \"name\": \"New Tax Line\",\n            \"rate\": 7,\n            \"taxId\": 2\n        }\n    ],\n    \"CoumpoundTax\": {\n        \"name\": \"Coumpound Tax\",\n        \"rate\": 10,\n        \"id\": 3\n    }\n}"}],"_postman_id":"30795328-daf9-4739-a0b4-dce73c714585"},{"name":"get all taxes configuration","id":"75856e94-cc15-4e22-b8cb-e3eff280bf63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/taxes/configuration","urlObject":{"protocol":"https","path":["taxes","configuration"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"679109f8-69cd-4999-b175-a8c9c7236fa8","name":"get all taxes configuration","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/taxes/configuration"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"sellTaxation\": \"Inclusive\",\n        \"costTaxation\": \"Inclusive\",\n        \"id\": 1,\n        \"Tax\": {\n            \"name\": \"Value Added TAX test\",\n            \"code\": \"VAT_test\",\n            \"coumpoundTaxLineId\": 3,\n            \"id\": 2\n        }\n    }\n]"}],"_postman_id":"75856e94-cc15-4e22-b8cb-e3eff280bf63"},{"name":"save tax configuration","id":"4f80058d-e276-4242-8deb-df94bdb28fa8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/taxes/configuration","urlObject":{"protocol":"https","path":["taxes","configuration"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"cb733274-01ac-4aaf-826e-f86612a9586a","name":"save tax configuration","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"taxId\": 1,\r\n    \"sellTaxation\": \"Inclusive\",\r\n    \"costTaxation\": \"Exclusive\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/taxes/configuration"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"4f80058d-e276-4242-8deb-df94bdb28fa8"}],"id":"f5e5790f-53d1-4544-9b0e-64cd7487240d","_postman_id":"f5e5790f-53d1-4544-9b0e-64cd7487240d","description":""},{"name":"variants","item":[{"name":"get product variant","id":"9a4a5231-b11f-43ce-bf7b-e2aa9b94f39f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/products/{productId}/variant/{variantId}","urlObject":{"protocol":"https","path":["products","{productId}","variant","{variantId}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"471d6acb-16ff-42b5-b61c-93386fd1230b","name":"get product variant","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/products/1/variant/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"variablefordocs-red\",\n    \"sku\": \"VARA01\",\n    \"buyPrice\": 22,\n    \"retailPrice\": 0,\n    \"wholeSalePrice\": 0,\n    \"isSellable\": false,\n    \"weight\": 0,\n    \"Tax\": null,\n    \"ProductVariantToStockLocations\": [\n        {\n            \"buyPrice\": 3.3,\n            \"retailPrice\": 3.3,\n            \"wholeSalePrice\": 3.3,\n            \"quantity\": 0,\n            \"stockLocationId\": 1,\n            \"taxId\": 1\n        }\n    ],\n    \"Product\": {\n        \"id\": 1,\n        \"name\": \"test\"\n    }\n}"}],"_postman_id":"9a4a5231-b11f-43ce-bf7b-e2aa9b94f39f"},{"name":"get product variants","id":"e8f8161d-9f36-42d4-afc6-5a4a7cbb7915","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/products/{productId}/variants","urlObject":{"protocol":"https","path":["products","{productId}","variants"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"723ac981-0a85-4b15-8eac-c4f8ba2fae2b","name":"get product variants","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/products/1/variants"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"variablefordocs-red\",\n        \"sku\": \"VARA01\",\n        \"buyPrice\": 22,\n        \"retailPrice\": 0,\n        \"wholeSalePrice\": 0,\n        \"isSellable\": false,\n        \"weight\": 0,\n        \"Tax\": null,\n        \"ProductVariantToStockLocations\": [\n            {\n                \"buyPrice\": 3.3,\n                \"retailPrice\": 3.3,\n                \"wholeSalePrice\": 3.3,\n                \"quantity\": 0,\n                \"stockLocationId\": 1,\n                \"taxId\": 1\n            }\n        ],\n        \"Product\": {\n            \"id\": 1,\n            \"name\": \"test\"\n        }\n    }\n]"}],"_postman_id":"e8f8161d-9f36-42d4-afc6-5a4a7cbb7915"},{"name":"get variant by sku","id":"988fa481-cd1b-4ce4-a9a3-8a5c367af224","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/variants/variant?sku","urlObject":{"protocol":"https","path":["variants","variant"],"host":["{{rewaa-url}}"],"query":[{"key":"sku","value":""}],"variable":[]}},"response":[{"id":"68bf3e8b-a958-42cc-8b11-c95a1ad8fd63","name":"get variant by sku","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":{"raw":"https://{{rewaa-url}}/variants/variant?sku=VARA01","protocol":"https","host":["{{rewaa-url}}"],"path":["variants","variant"],"query":[{"key":"sku","value":"VARA01"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"name\": \"variablefordocs-red\",\r\n    \"sku\": \"VARA01\",\r\n    \"buyPrice\": 22,\r\n    \"retailPrice\": 0,\r\n    \"wholeSalePrice\": 0,\r\n    \"isSellable\": false,\r\n    \"weight\": 0,\r\n    \"Tax\": null,\r\n    \"ProductVariantToStockLocations\": [\r\n        {\r\n            \"buyPrice\": 3.3,\r\n            \"retailPrice\": 3.3,\r\n            \"wholeSalePrice\": 3.3,\r\n            \"quantity\": 0,\r\n            \"stockLocationId\": 1,\r\n            \"taxId\": 1\r\n        }\r\n    ],\r\n    \"Product\": {\r\n        \"id\": 1,\r\n        \"name\": \"test\"\r\n    }\r\n}"}],"_postman_id":"988fa481-cd1b-4ce4-a9a3-8a5c367af224"},{"name":"get all variants","id":"e52625c5-ee5e-45c6-ba1f-e53ffdf424f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/variants","urlObject":{"protocol":"https","path":["variants"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"f569c8f0-6f4b-43e6-bae4-c55f19661bbe","name":"get all variants","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/variants"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"[\r\n    {\r\n        \"name\": \"variablefordocs-red\",\r\n        \"sku\": \"VARA01\",\r\n        \"buyPrice\": 22,\r\n        \"retailPrice\": 0,\r\n        \"wholeSalePrice\": 0,\r\n        \"isSellable\": false,\r\n        \"weight\": 0,\r\n        \"Tax\": null,\r\n        \"ProductVariantToStockLocations\": [\r\n            {\r\n                \"buyPrice\": 3.3,\r\n                \"retailPrice\": 3.3,\r\n                \"wholeSalePrice\": 3.3,\r\n                \"quantity\": 0,\r\n                \"stockLocationId\": 1,\r\n                \"taxId\": 1\r\n            }\r\n        ]\r\n    }\r\n]"}],"_postman_id":"e52625c5-ee5e-45c6-ba1f-e53ffdf424f7"},{"name":"create variant","id":"a66b3954-a587-4560-9ad9-9db9ac225fbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/variants","urlObject":{"protocol":"https","path":["variants"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"2757f37f-8c17-4101-ba19-84ffd12b7ade","name":"create variant","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"variablefordocs-red\",\r\n    \"sku\": \"VARA01\",\r\n    \"buyPrice\": 22,\r\n    \"retailPrice\": 0,\r\n    \"wholeSalePrice\": 0,\r\n    \"isSellable\": false,\r\n    \"weight\": 0,\r\n    \"Tax\": null,\r\n    \"ProductVariantToStockLocations\": [\r\n        {\r\n            \"buyPrice\": 3.3,\r\n            \"retailPrice\": 3.3,\r\n            \"wholeSalePrice\": 3.3,\r\n            \"quantity\": 0,\r\n            \"stockLocationId\": 1,\r\n            \"taxId\": 1\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/variants"},"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"a66b3954-a587-4560-9ad9-9db9ac225fbe"},{"name":"sku code generator","id":"2e5bd97c-e367-4c6e-aa91-5f8bcb7fc328","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/variants/nextSKUCode?productSku=&limit=","urlObject":{"protocol":"https","path":["variants","nextSKUCode"],"host":["{{rewaa-url}}"],"query":[{"key":"productSku","value":""},{"key":"limit","value":""}],"variable":[]}},"response":[{"id":"6b04f6d8-288c-4cd1-bfe0-32df3ba6f7ff","name":"sku code generator","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":{"raw":"https://{{rewaa-url}}/variants/nextSKUCode?productSku=12443&limit=1","protocol":"https","host":["{{rewaa-url}}"],"path":["variants","nextSKUCode"],"query":[{"key":"productSku","value":"12443"},{"key":"limit","value":"1"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"12444"}],"_postman_id":"2e5bd97c-e367-4c6e-aa91-5f8bcb7fc328"},{"name":"save variant image","id":"55d0bb71-e5f1-4fe6-9186-0da3e14c64c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/variants/{variantId}/images","urlObject":{"protocol":"https","path":["variants","{variantId}","images"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"55d0bb71-e5f1-4fe6-9186-0da3e14c64c8"},{"name":"get variant image","id":"c9f70d1f-6b1a-46c8-a1f3-495242e4949a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/variants/{variantId}/images","urlObject":{"protocol":"https","path":["variants","{variantId}","images"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c9f70d1f-6b1a-46c8-a1f3-495242e4949a"},{"name":"delete variant","id":"6d2ddfae-b2f3-4116-a444-b05784a40d91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/products/{productId}/variants/{variantId}","urlObject":{"protocol":"https","path":["products","{productId}","variants","{variantId}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"304cced8-e50e-45c2-809a-4a2df65bf228","name":"delete variant","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/products/{productId}/variants/1"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"6d2ddfae-b2f3-4116-a444-b05784a40d91"},{"name":"delete variants","id":"6c455da9-9e31-4602-82bf-660a37dda836","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/variants?ids=<ids>","urlObject":{"protocol":"https","path":["variants"],"host":["{{rewaa-url}}"],"query":[{"key":"ids","value":"<ids>"}],"variable":[]}},"response":[{"id":"fca606a5-ac0b-4e8c-8748-ba5f4bc268de","name":"delete variants","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":{"raw":"https://{{rewaa-url}}/variants?ids=1,24,5","protocol":"https","host":["{{rewaa-url}}"],"path":["variants"],"query":[{"key":"ids","value":"1,24,5"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"6c455da9-9e31-4602-82bf-660a37dda836"},{"name":"unpublish variant","id":"9d6a36a5-f8e3-4c31-ad48-b654cd7aa3af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/products/{productId}/variants/{variantId}/unpublish?appId=<appId>","urlObject":{"protocol":"https","path":["products","{productId}","variants","{variantId}","unpublish"],"host":["{{rewaa-url}}"],"query":[{"key":"appId","value":"<appId>"}],"variable":[]}},"response":[],"_postman_id":"9d6a36a5-f8e3-4c31-ad48-b654cd7aa3af"},{"name":"publish variant","id":"ce9bab11-c347-4ff9-abc4-3512e7c2de06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/products/{productId}/variants/{variantId}/publish?appId=<appId>","urlObject":{"protocol":"https","path":["products","{productId}","variants","{variantId}","publish"],"host":["{{rewaa-url}}"],"query":[{"key":"appId","value":"<appId>"}],"variable":[]}},"response":[],"_postman_id":"ce9bab11-c347-4ff9-abc4-3512e7c2de06"},{"name":"variant stock location quantity","id":"14820270-e984-484f-95f1-509b5f009c94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/variants/stock-locations","urlObject":{"protocol":"https","path":["variants","stock-locations"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[{"id":"4f296cbb-6d21-45b8-8b7e-d69e796a238e","name":"variant stock location quantity","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"qty\": 6, \r\n        \"variantId\": 1, \r\n        \"locationId\": 1, \r\n        \"taxId\": 1\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://{{rewaa-url}}/variants/stock-locations"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"14820270-e984-484f-95f1-509b5f009c94"},{"name":"search variant","id":"392752cd-217a-4c9c-bbde-0df897e00330","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/variants/search?query=","urlObject":{"protocol":"https","path":["variants","search"],"host":["{{rewaa-url}}"],"query":[{"key":"query","value":""}],"variable":[]}},"response":[],"_postman_id":"392752cd-217a-4c9c-bbde-0df897e00330"}],"id":"8d9a3031-fe66-41c0-9723-badeefdb3adc","_postman_id":"8d9a3031-fe66-41c0-9723-badeefdb3adc","description":""},{"name":"internal-apps","item":[{"name":"pos","item":[{"name":"registers","item":[{"name":"create register","id":"64b41515-2896-4ac2-a570-23d9f707f5d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers","urlObject":{"protocol":"https","path":["pos","registers"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"64b41515-2896-4ac2-a570-23d9f707f5d0"},{"name":"get register by id","id":"fe550819-52c7-4c48-91d6-e1b437786b8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}","urlObject":{"protocol":"https","path":["pos","registers","{id}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fe550819-52c7-4c48-91d6-e1b437786b8d"},{"name":"delete register","id":"0bcaec06-cf9b-4332-a544-49ba9a7d5215","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}","urlObject":{"protocol":"https","path":["pos","registers","{id}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0bcaec06-cf9b-4332-a544-49ba9a7d5215"},{"name":"update register","id":"2b0f3825-cffe-427d-a33a-90d9c76b2c30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}","urlObject":{"protocol":"https","path":["pos","registers","{id}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b0f3825-cffe-427d-a33a-90d9c76b2c30"},{"name":"activate register","id":"081663c0-dd49-4cac-804a-ce45e3ef5331","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}/activate","urlObject":{"protocol":"https","path":["pos","registers","{id}","activate"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"081663c0-dd49-4cac-804a-ce45e3ef5331"},{"name":"deactivate register","id":"e87aa7d7-0986-4306-bd8c-ea6e3bb814dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}/deactivate","urlObject":{"protocol":"https","path":["pos","registers","{id}","deactivate"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e87aa7d7-0986-4306-bd8c-ea6e3bb814dd"},{"name":"book selling session","id":"f4dd5e6d-a5a9-4f79-a6df-be19c5cd195c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}/book-selling-session","urlObject":{"protocol":"https","path":["pos","registers","{id}","book-selling-session"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f4dd5e6d-a5a9-4f79-a6df-be19c5cd195c"},{"name":"make default register","id":"6f00d733-683f-47e1-b3e5-ee92b04516b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}/makeDefault","urlObject":{"protocol":"https","path":["pos","registers","{id}","makeDefault"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f00d733-683f-47e1-b3e5-ee92b04516b2"},{"name":"open register","id":"dc05e92c-ce97-412e-aeff-1653bcc01a6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}/open","urlObject":{"protocol":"https","path":["pos","registers","{id}","open"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc05e92c-ce97-412e-aeff-1653bcc01a6f"},{"name":"close register","id":"b0609ee3-748e-48a5-a815-b5d86f906331","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}/close","urlObject":{"protocol":"https","path":["pos","registers","{id}","close"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b0609ee3-748e-48a5-a815-b5d86f906331"},{"name":"add or withdrawl cash register","id":"7ea6b041-772e-47b5-afb9-682fa183c220","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}/cash","urlObject":{"protocol":"https","path":["pos","registers","{id}","cash"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ea6b041-772e-47b5-afb9-682fa183c220"},{"name":"sell","id":"ccc03ee9-6f07-44db-a97f-3bce43a6898e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}/sell","urlObject":{"protocol":"https","path":["pos","registers","{id}","sell"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ccc03ee9-6f07-44db-a97f-3bce43a6898e"},{"name":"park sell","id":"20edcfa5-a1ac-4b97-9309-e76c09a64c01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}/park","urlObject":{"protocol":"https","path":["pos","registers","{id}","park"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"20edcfa5-a1ac-4b97-9309-e76c09a64c01"},{"name":"delete parked sell","id":"0824b23a-4f17-40fc-9f5f-130afa4fb076","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/park/{invoiceId}","urlObject":{"protocol":"https","path":["pos","registers","park","{invoiceId}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0824b23a-4f17-40fc-9f5f-130afa4fb076"},{"name":"retrieve parked sale","id":"5af9c919-fdf7-4bf1-8fe2-69a9ffb70b16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}/parkedInvoices","urlObject":{"protocol":"https","path":["pos","registers","{id}","parkedInvoices"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5af9c919-fdf7-4bf1-8fe2-69a9ffb70b16"},{"name":"return sell","id":"d4a1182c-a8fd-4b0d-acc1-1feea8c3040d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}/return","urlObject":{"protocol":"https","path":["pos","registers","{id}","return"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4a1182c-a8fd-4b0d-acc1-1feea8c3040d"},{"name":"get register balance","id":"3cf716c9-6b69-4483-9fc7-1c5b59113da6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}/balance","urlObject":{"protocol":"https","path":["pos","registers","{id}","balance"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3cf716c9-6b69-4483-9fc7-1c5b59113da6"},{"name":"check register access","id":"c6c49d22-8ac0-45f9-86c1-327dfc521d26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/registers/{id}/auth","urlObject":{"protocol":"https","path":["pos","registers","{id}","auth"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6c49d22-8ac0-45f9-86c1-327dfc521d26"}],"id":"7d106b9a-8046-4604-8359-a9b3bb3bf968","_postman_id":"7d106b9a-8046-4604-8359-a9b3bb3bf968","description":""},{"name":"cash-management","item":[{"name":"export register logs","id":"6e724a7a-4002-4ca5-ad68-bcaf69799a52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/cash-management/export","urlObject":{"protocol":"https","path":["pos","cash-management","export"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e724a7a-4002-4ca5-ad68-bcaf69799a52"},{"name":"get register logs","id":"13253e00-4a4e-4026-b7ad-2b27390a7d1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/cash-management?offset&limit&stockLocationId&registerId&userId&type","urlObject":{"protocol":"https","path":["pos","cash-management"],"host":["{{rewaa-url}}"],"query":[{"key":"offset","value":""},{"key":"limit","value":""},{"key":"stockLocationId","value":""},{"key":"registerId","value":""},{"key":"userId","value":""},{"key":"type","value":""}],"variable":[]}},"response":[],"_postman_id":"13253e00-4a4e-4026-b7ad-2b27390a7d1b"}],"id":"b6f10267-8bc2-4113-a4af-d7e9085ffca0","_postman_id":"b6f10267-8bc2-4113-a4af-d7e9085ffca0","description":""},{"name":"settings","item":[{"name":"get pos settings","id":"b55af584-95fd-4d32-9411-5ac28f5da673","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/settings","urlObject":{"protocol":"https","path":["pos","settings"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b55af584-95fd-4d32-9411-5ac28f5da673"},{"name":"update pos settings","id":"d0812a2b-02e9-4e2f-951c-ed3d48811d14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/settings","urlObject":{"protocol":"https","path":["pos","settings"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0812a2b-02e9-4e2f-951c-ed3d48811d14"}],"id":"86419017-b145-40b6-a79c-2c48026383b1","_postman_id":"86419017-b145-40b6-a79c-2c48026383b1","description":""},{"name":"invoices","item":[{"name":"get pos invoices","id":"079ff4ef-e4a7-4f1d-8ded-d6b3d4b0d157","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/invoices/{invoiceId}","urlObject":{"protocol":"https","path":["pos","invoices","{invoiceId}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"079ff4ef-e4a7-4f1d-8ded-d6b3d4b0d157"},{"name":"get all return invoices by sell invoice id","id":"79a173f1-e94f-4485-b03a-e99412cf480f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{rewaa-url}}/pos/invoices/return/{saleInvoiceId}","urlObject":{"protocol":"https","path":["pos","invoices","return","{saleInvoiceId}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"79a173f1-e94f-4485-b03a-e99412cf480f"},{"name":"get parked invoices","id":"c3466689-657e-4a86-b515-97d331ea9438","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/invoices/{invoiceId}/park","urlObject":{"protocol":"https","path":["pos","invoices","{invoiceId}","park"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3466689-657e-4a86-b515-97d331ea9438"}],"id":"3e96a357-923b-4a95-b915-cccd0f55c1a8","_postman_id":"3e96a357-923b-4a95-b915-cccd0f55c1a8","description":""},{"name":"locations","item":[{"name":"get locations","id":"9e131a52-8f59-451f-b033-bd6df0ef81d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/locations","urlObject":{"protocol":"https","path":["pos","locations"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e131a52-8f59-451f-b033-bd6df0ef81d5"},{"name":"search variants","id":"f18e8255-7d98-47b9-8e33-8046940928c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/locations/{id}/variants","urlObject":{"protocol":"https","path":["pos","locations","{id}","variants"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f18e8255-7d98-47b9-8e33-8046940928c8"},{"name":"get products","id":"0d224759-637f-4aea-a94c-187d29746309","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/locations/products-without-price","urlObject":{"protocol":"https","path":["pos","locations","products-without-price"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0d224759-637f-4aea-a94c-187d29746309"},{"name":"scan variant code","id":"b18400b3-b72c-4271-90af-180bf4f54229","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/locations/{id}/scanner/{code}","urlObject":{"protocol":"https","path":["pos","locations","{id}","scanner","{code}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b18400b3-b72c-4271-90af-180bf4f54229"}],"id":"c435ed0a-b74f-4911-995e-d7e73993d41a","_postman_id":"c435ed0a-b74f-4911-995e-d7e73993d41a","description":""},{"name":"payment processor","item":[{"name":"failed payment proccesor","id":"65226c3d-ff91-4a3f-b8a8-6acaadffe67e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/paymentProcessor/failedPayment/{processor}","urlObject":{"protocol":"https","path":["pos","paymentProcessor","failedPayment","{processor}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"65226c3d-ff91-4a3f-b8a8-6acaadffe67e"}],"id":"adcbbf78-da89-4083-9d16-25aff15ceced","_postman_id":"adcbbf78-da89-4083-9d16-25aff15ceced","description":""},{"name":"layouts","item":[{"name":"get all layouts","id":"365260e7-d1be-4bd7-a0e8-9216e2ec7ec0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/layouts?name&registerName&type&limit&offset","urlObject":{"protocol":"https","path":["pos","layouts"],"host":["{{rewaa-url}}"],"query":[{"key":"name","value":""},{"key":"registerName","value":""},{"key":"type","value":""},{"key":"limit","value":""},{"key":"offset","value":""}],"variable":[]}},"response":[],"_postman_id":"365260e7-d1be-4bd7-a0e8-9216e2ec7ec0"},{"name":"get layout","id":"dd374065-a186-4352-b819-a4696f6b708c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/layouts/{id}","urlObject":{"protocol":"https","path":["pos","layouts","{id}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd374065-a186-4352-b819-a4696f6b708c"},{"name":"delete layout","id":"e73be363-ec2f-457d-9b42-562d87f38855","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/layouts/{id}","urlObject":{"protocol":"https","path":["pos","layouts","{id}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e73be363-ec2f-457d-9b42-562d87f38855"},{"name":"update layout","id":"a5618bc8-8ad6-4d98-bfbe-ab970cf33f00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/layouts/{id}","urlObject":{"protocol":"https","path":["pos","layouts","{id}"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a5618bc8-8ad6-4d98-bfbe-ab970cf33f00"},{"name":"add layout","id":"e17529ce-23e5-4365-b070-a475fa5f4292","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{Authorization}}","type":"text"}],"url":"https://{{rewaa-url}}/pos/layouts","urlObject":{"protocol":"https","path":["pos","layouts"],"host":["{{rewaa-url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e17529ce-23e5-4365-b070-a475fa5f4292"}],"id":"7de672c6-a500-403a-b29c-27786fa0161d","_postman_id":"7de672c6-a500-403a-b29c-27786fa0161d","description":""}],"id":"b29dff3b-3714-40fb-9891-b9bb8b33183a","_postman_id":"b29dff3b-3714-40fb-9891-b9bb8b33183a","description":""}],"id":"87b3a11f-9974-4778-8bf1-1e395f3a2ddd","_postman_id":"87b3a11f-9974-4778-8bf1-1e395f3a2ddd","description":""}],"event":[{"listen":"prerequest","script":{"id":"2b7da071-846e-4eef-989d-fbcc822f8c65","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"187f839b-0de9-43a4-b8ac-a1b669d1de2c","type":"text/javascript","exec":[""]}}]}