{"info":{"_postman_id":"f34ad0d8-a603-4dfa-8388-c5d58e6ba9ce","name":"Dokumentasi API PlazaKamera","description":"<html><head></head><body><h2 id=\"introduction\">Introduction</h2>\n<p>API untuk integrasi dari client ke database Plazakamera</p>\n<h2 id=\"requirement\">Requirement</h2>\n<p>Dibutuhkan <code>token</code> untuk authorisasi saat menggunakan request API.</p>\n<h2 id=\"method-request\">Method Request</h2>\n<ul>\n<li><p><code>GET</code> : Get a resource or list of resource</p>\n</li>\n<li><p><code>POST</code> : Create resource</p>\n</li>\n<li><p><code>PUT</code> : Update resource</p>\n</li>\n<li><p><code>DELETE</code> : Delete resource</p>\n</li>\n</ul>\n<h2 id=\"description-of-usual-server-responses\">Description Of Usual Server Responses</h2>\n<ul>\n<li><p><strong>200</strong> <code>OK</code> - the request was successful (some API calls may return 201 instead)</p>\n</li>\n<li><p><strong>201</strong> <code>Created</code> - the request was successful and a resource was created.</p>\n</li>\n<li><p><strong>400</strong> <code>Bad Request</code> - the request could not be understood or was missing required parameters.</p>\n</li>\n<li><p><strong>401</strong> <code>Unauthorized</code> - authentication failed or user doesn't have permissions for requested operation.</p>\n</li>\n<li><p><strong>403</strong> <code>Forbidden</code> - access denied.</p>\n</li>\n<li><p><strong>404</strong> <code>Not Found</code> - resource was not found.</p>\n</li>\n<li><p><strong>429</strong> <code>Too Many Request</code> - Request could not be processed because too many requests have been sent in a given time.</p>\n</li>\n<li><p><strong>503</strong> <code>Service unavailable</code> - requested method is not supported for resource.</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"9354110","collectionId":"f34ad0d8-a603-4dfa-8388-c5d58e6ba9ce","publishedId":"2sAYkEqKUc","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-03-19T09:18:30.000Z"},"item":[{"name":"Item","item":[{"name":"All Item","id":"2122e67e-7951-4057-aa06-ae034c30a553","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/item","description":"<p>Menampilkan 1000 item pertama yang diurutkan berdasarkan <code>is_active</code> &amp; <code>prod_name</code> dengan sistem pagination</p>\n<ul>\n<li><p><code>is_active</code> : 1 <em>(item active)</em></p>\n</li>\n<li><p><code>is_active</code> : 0 <em>(item inactive)</em></p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","item"],"host":["apiplaza","pesanlokal","com"],"query":[],"variable":[]}},"response":[{"id":"612f03ee-d24f-4059-b26d-d9cb46575ec4","name":"200","originalRequest":{"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/item"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Data found\",\n    \"data\": [\n        {\n            \"sku\": \"11111111\",\n            \"prod_name\": \"Product 1\",\n            \"prod_spec\": null,\n            \"prod_price\": 1111000,\n            \"is_active\": 1\n        },\n        {\n            \"sku\": \"22222222\",\n            \"prod_name\": \"Product 2\",\n            \"prod_spec\": null,\n            \"prod_price\": 222222,\n            \"is_active\": 1\n        },\n        {\n            \"sku\": \"33333333\",\n            \"prod_name\": \"Product 3\",\n            \"prod_spec\": null,\n            \"prod_price\": 300000,\n            \"is_active\": 1\n        },\n        {\n            \"sku\": \"44444444\",\n            \"prod_name\": \"Product 4\",\n            \"prod_spec\": \"Spek Product 4\",\n            \"prod_price\": 40000,\n            \"is_active\": 1\n        },\n        {\n            \"sku\": \"55555555\",\n            \"prod_name\": \"Product 5\",\n            \"prod_spec\": null,\n            \"prod_price\": 555000,\n            \"is_active\": 1\n        },\n        {\n            \"sku\": \"66666666\",\n            \"prod_name\": \"Product 6\",\n            \"prod_spec\": \"Spek Product 6\",\n            \"prod_price\": 666666,\n            \"is_active\": 0\n        },\n        {\n            \"sku\": \"77777777\",\n            \"prod_name\": \"Product 7\",\n            \"prod_spec\": null,\n            \"prod_price\": 500000,\n            \"is_active\": 0\n        }\n    ],\n    \"pagination\": {\n        \"current_page\": 1,\n        \"next_page\": \"https://apiplaza.pesanlokal.com/api/item?page=2\",\n        \"prev_page\": null,\n        \"total_pages\": 9,\n        \"total_items\": 8872\n    }\n}"},{"id":"6a2b0acc-f72b-42da-8c93-7f0abb4dcf21","name":"401","originalRequest":{"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/item"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"User Unauthorized\"\n}"}],"_postman_id":"2122e67e-7951-4057-aa06-ae034c30a553"},{"name":"View Item","id":"a0b907b2-3759-4ad5-b82c-82d7bc2248dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/item/{SKU}","description":"<p>Menampilkan item berdasarkan <code>SKU</code></p>\n<h2 id=\"parameters\">Parameters</h2>\n<p><code>SKU</code> type <code>string</code></p>\n<p>example: <code>23351400</code></p>\n","urlObject":{"protocol":"https","path":["api","item","{SKU}"],"host":["apiplaza","pesanlokal","com"],"query":[],"variable":[]}},"response":[{"id":"348520c9-fcac-43e0-920f-5e45fd630099","name":"200","originalRequest":{"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/item/11111111"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Data found\",\n    \"data\": {\n        \"sku\": \"11111111\",\n        \"prod_name\": \"Product 1\",\n        \"prod_spec\": null,\n        \"prod_price\": 100000,\n        \"is_active\": 0\n    }\n}"},{"id":"6607f13f-7c9d-4b75-bd9b-7819239c01a2","name":"401","originalRequest":{"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/item/11111111"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"User Unauthorized\"\n}"},{"id":"0ccc6c33-122b-40b2-9421-1bd17d1a1c68","name":"404","originalRequest":{"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/item/111111112"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Data not found\"\n}"}],"_postman_id":"a0b907b2-3759-4ad5-b82c-82d7bc2248dc"}],"id":"5c933fc6-d31f-4667-8bf3-8eff8fb74533","description":"<h2 id=\"data-structure\">Data Structure</h2>\n<ul>\n<li><p>sku <code>(string)</code> <code>(not null)</code> <code>(unique)</code> : SKU Item</p>\n</li>\n<li><p>prod_name <code>(string)</code> <code>(not null)</code> : Nama Item</p>\n</li>\n<li><p>prod_spec <code>(string)</code> : Spesifikasi Item</p>\n</li>\n<li><p>prod_price <code>(numeric)</code> <code>(not null)</code> : Harga Item</p>\n</li>\n</ul>\n","_postman_id":"5c933fc6-d31f-4667-8bf3-8eff8fb74533"},{"name":"Warehouse","item":[{"name":"All Warehouse","id":"817fe524-0e84-4b51-a4b2-4ea28a1656be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/warehouse","description":"<p>Menampilkan semua data warehouse yang diurutkan berdasarkan <code>is_active</code> &amp; <code>whs_name</code></p>\n<ul>\n<li><p><code>is_active</code> : 1 <em>(item active)</em></p>\n</li>\n<li><p><code>is_active</code> : 0 <em>(item inactive)</em></p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","warehouse"],"host":["apiplaza","pesanlokal","com"],"query":[],"variable":[]}},"response":[{"id":"4019b339-a608-4e0f-b063-c2f08707c6eb","name":"200","originalRequest":{"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/warehouse/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Data found\",\n    \"data\": [\n        {\n            \"whs_name\": \"Gudang AB1\",\n            \"whs_code\": \"AB1\",\n            \"is_active\": 1\n        },\n        {\n            \"whs_name\": \"Gudang AB2\",\n            \"whs_code\": \"AB2\",\n            \"is_active\": 1\n        },\n        {\n            \"whs_name\": \"Gudang AB3\",\n            \"whs_code\": \"AB3\",\n            \"is_active\": 0\n        },\n        {\n            \"whs_name\": \"Gudang AB4\",\n            \"whs_code\": \"AB4\",\n            \"is_active\": 0\n        }\n    ]\n}"},{"id":"401859b9-6af5-4d47-8bd7-91efac744f66","name":"401","originalRequest":{"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/warehouse/"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"User Unauthorized\"\n}"}],"_postman_id":"817fe524-0e84-4b51-a4b2-4ea28a1656be"},{"name":"View Warehouse","id":"70184772-5429-4a8d-ba05-7eb75d179d09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/warehouse/{whs_code}","description":"<p>menampilkan data warehouse berdasarkan <code>whs_code</code></p>\n<h2 id=\"parameters\">Parameters</h2>\n<p><code>whs_code</code> type <strong>string</strong></p>\n<p>example: <code>AB</code></p>\n","urlObject":{"protocol":"https","path":["api","warehouse","{whs_code}"],"host":["apiplaza","pesanlokal","com"],"query":[],"variable":[]}},"response":[{"id":"c0d5b021-6feb-47c8-b213-5b7d6f9e2d90","name":"200","originalRequest":{"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/warehouse/{whs_code}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Data found\",\n    \"data\": {\n        \"whs_name\": \"Gudang AB1\",\n        \"whs_code\": \"AB1\",\n        \"is_active\": 1\n    }\n}"},{"id":"3fd1b7ec-78c4-42d3-b0a3-4bcbf8853f15","name":"401","originalRequest":{"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/warehouse/{whs_code}"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"User Unauthorized\"\n}"},{"id":"4ef96550-9d1b-4e70-a77e-b991ca868900","name":"404","originalRequest":{"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/warehouse/{whs_code}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Data not found\"\n}"}],"_postman_id":"70184772-5429-4a8d-ba05-7eb75d179d09"}],"id":"b8d80e20-da30-4191-a4c2-68242963c53c","description":"<h2 id=\"data-structure\">Data Structure</h2>\n<ul>\n<li><p>whs_code <code>(string)</code> <code>(not null)</code> <code>(unique)</code> : Kode Warehouse</p>\n</li>\n<li><p>whs_name <code>(string)</code> <code>(not null)</code> <code>(unique)</code> : Nama Warehouse</p>\n</li>\n</ul>\n","_postman_id":"b8d80e20-da30-4191-a4c2-68242963c53c"},{"name":"Batch Status","item":[{"name":"Check Status","id":"568d33cf-cce8-4acc-a26d-a5c37b001aa6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/status/{batch_id}","description":"<p>Melihat status dari proses synchronize yang dijalankan di background berdasarkan <code>batch_id</code></p>\n<h2 id=\"parameters\">Parameters</h2>\n<p><code>batch_id</code> type <code>string</code></p>\n<p>example: <code>a7c51400-607f-47c9-866f-a297d58ee042</code></p>\n","urlObject":{"protocol":"https","path":["api","status","{batch_id}"],"host":["apiplaza","pesanlokal","com"],"query":[],"variable":[]}},"response":[{"id":"8df43e3b-30e9-4a79-8fe7-8160c12234a4","name":"200","originalRequest":{"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/status/a7c51400-607f-47c9-866f-a297d58ee042"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"batch_id\": \"a7c51400-607f-47c9-866f-a297d58ee042\",\n    \"from\": \"syncStock\",\n    \"message\": \"completed\",\n    \"created_at\": \"2025-06-13 10:10:09\",\n    \"updated_at\": \"2025-06-13 10:10:10\"\n}"},{"id":"550e4c73-9c88-4f04-b1ef-eaf506afb017","name":"401","originalRequest":{"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/item/"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"User Unauthorized\"\n}"},{"id":"de6af75d-7e6d-4cea-a271-07ebacd1b210","name":"404","originalRequest":{"method":"GET","header":[],"url":"https://apiplaza.pesanlokal.com/api/status/{batch_id}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Batch ID not found\"\n}"}],"_postman_id":"568d33cf-cce8-4acc-a26d-a5c37b001aa6"}],"id":"e2ddb5b0-ec55-4c02-988b-a02efa9e08e9","description":"<p>untuk melihat status sync atau update setiap proses yang dijalankan di background</p>\n<h2 id=\"response-message\">Response Message</h2>\n<ul>\n<li><p>pending</p>\n</li>\n<li><p>processing</p>\n</li>\n<li><p>complete</p>\n</li>\n<li><p>failed</p>\n</li>\n</ul>\n","_postman_id":"e2ddb5b0-ec55-4c02-988b-a02efa9e08e9"},{"name":"Synchronize","item":[{"name":"Sync Stock","id":"be4029f1-67e3-47d9-a62a-e77b8af3bbd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n  {\r\n    \"sku\": \"1262370BL\",\r\n    \"whs_code\": \"GU\",\r\n    \"prod_sn\": \"22222\",\r\n    \"stock\": 1\r\n  },\r\n  {\r\n    \"sku\": \"1262370BL\",\r\n    \"whs_code\": \"GU\",\r\n    \"prod_sn\": \"11111\",\r\n    \"stock\": 1\r\n  },\r\n  {\r\n    \"sku\": \"1262370BL\",\r\n    \"whs_code\": \"GS\",\r\n    \"prod_sn\": \"33333\",\r\n    \"stock\": 1\r\n  }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://apiplaza.pesanlokal.com/api/syncStock","description":"<p>Mengupdate stock sesuai dengan masing-masing <code>SKU</code></p>\n<p><strong>note:</strong> semua stock akan di nol (0) kan terlebih dahulu sebelum proses synchronize</p>\n","urlObject":{"protocol":"https","path":["api","syncStock"],"host":["apiplaza","pesanlokal","com"],"query":[],"variable":[]}},"response":[{"id":"031cf203-7228-4df2-a1a9-3a57a9b32147","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n  {\r\n    \"sku\": \"1262370BL\",\r\n    \"whs_code\": \"GU\",\r\n    \"prod_sn\": \"22222\",\r\n    \"stock\": 1\r\n  },\r\n  {\r\n    \"sku\": \"1262370BL\",\r\n    \"whs_code\": \"GU\",\r\n    \"prod_sn\": \"11111\",\r\n    \"stock\": 1\r\n  },\r\n  {\r\n    \"sku\": \"1262370BL\",\r\n    \"whs_code\": \"GS\",\r\n    \"prod_sn\": \"33333\",\r\n    \"stock\": 1\r\n  }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://apiplaza.pesanlokal.com/api/syncStock"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"batch_id\": \"e95b1db9-ed09-4cee-95d4-02c7c9bafceb\",\n    \"message\": \"Sync stock onprocess\"\n}"},{"id":"5ae9cf43-517c-462d-b209-d2c8c9168568","name":"400","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n  {\r\n    \"sku\": \"1262370BL\",\r\n    \"whs_code\": \"GU\",\r\n    \"prod_sn\": \"22222\",\r\n    \"stock\": 1\r\n  },\r\n  {\r\n    \"sku\": \"1262370BL\",\r\n    \"whs_code\": \"GU\",\r\n    \"prod_sn\": \"11111\",\r\n    \"stock\": 1\r\n  },\r\n  {\r\n    \"sku\": \"1262370BL\",\r\n    \"whs_code\": \"GS\",\r\n    \"prod_sn\": \"33333\",\r\n    \"stock\": 1\r\n  }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://apiplaza.pesanlokal.com/api/syncStock"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Failed to validate sync stock\",\n    \"data\": {\n        \"0.sku\": [\n            \"The 0.sku field is required.\"\n        ],\n        \"0.whs_code\": [\n            \"The 0.whs_code field is required.\"\n        ],\n        \"0.stock\": [\n            \"The 0.stock field is required.\"\n        ]\n    }\n}"}],"_postman_id":"be4029f1-67e3-47d9-a62a-e77b8af3bbd7"},{"name":"Sync Item","id":"4a91820e-f7fe-4ce3-b6e7-1c931f4712c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"sku\": \"1000401\",\r\n        \"prod_name\": \"JieYang Base + Plate Size new\",\r\n        \"prod_spec\": \"Kamera DSLR 24MP 4K\",\r\n        \"prod_price\": 575000\r\n    },\r\n    {\r\n        \"sku\": \"1080803GY\",\r\n        \"prod_name\": \"Viltrox Weeylite Pocket RGB Light S03 Minimalist Grey new\",\r\n        \"prod_spec\": \"Kamera DSLR 24MP 4K\",\r\n        \"prod_price\": 0\r\n    },\r\n    {\r\n        \"sku\": \"1080803GYZ\",\r\n        \"prod_name\": \"Viltrox Weeylite Pocket RGB Light S03 Minimalist Grey new\",\r\n        \"prod_spec\": \"Kamera DSLR 24MP 4K\"\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://apiplaza.pesanlokal.com/api/syncItem","description":"<p>Mengupdate item sesuai dengan masing-masing <code>SKU</code></p>\n<ul>\n<li><p>Jika <code>SKU</code> item belum ada, maka item akan <em>ditambahkan</em></p>\n</li>\n<li><p>Jika <code>SKU</code> item sudah ada, maka item akan <em>diupdate</em></p>\n</li>\n</ul>\n<p><strong>note:</strong> semua item yang di list akan menjadi active setelah proses synchronize</p>\n","urlObject":{"protocol":"https","path":["api","syncItem"],"host":["apiplaza","pesanlokal","com"],"query":[],"variable":[]}},"response":[{"id":"80e889b7-59cc-44a0-8999-9a6cc5e0ce05","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"sku\": \"1000401\",\r\n        \"prod_name\": \"JieYang Base + Plate Size new\",\r\n        \"prod_spec\": \"Kamera DSLR 24MP 4K\",\r\n        \"prod_price\": 575000\r\n    },\r\n    {\r\n        \"sku\": \"1080803GY\",\r\n        \"prod_name\": \"Viltrox Weeylite Pocket RGB Light S03 Minimalist Grey new\",\r\n        \"prod_spec\": \"Kamera DSLR 24MP 4K\",\r\n        \"prod_price\": 0\r\n    },\r\n    {\r\n        \"sku\": \"1080803GYZ\",\r\n        \"prod_name\": \"Viltrox Weeylite Pocket RGB Light S03 Minimalist Grey new\",\r\n        \"prod_spec\": \"Kamera DSLR 24MP 4K\",\r\n        \"prod_price\": 111110\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://apiplaza.pesanlokal.com/api/syncItem"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"batch_id\": \"e95b1db9-ed09-4cee-95d4-02c7c9akasiu\",\n    \"message\": \"Sync item onprocess\"\n}"},{"id":"51d5e30a-ab55-46e4-af34-db52ecdf0945","name":"400","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"sku\": \"1000401\",\r\n        \"prod_name\": \"JieYang Base + Plate Size new\",\r\n        \"prod_spec\": \"Kamera DSLR 24MP 4K\",\r\n        \"prod_price\": 575000\r\n    },\r\n    {\r\n        \"sku\": \"1080803GY\",\r\n        \"prod_name\": \"Viltrox Weeylite Pocket RGB Light S03 Minimalist Grey new\",\r\n        \"prod_spec\": \"Kamera DSLR 24MP 4K\",\r\n        \"prod_price\": 0\r\n    },\r\n    {\r\n        \"sku\": \"1080803GYZ\",\r\n        \"prod_name\": \"Viltrox Weeylite Pocket RGB Light S03 Minimalist Grey new\",\r\n        \"prod_spec\": \"Kamera DSLR 24MP 4K\",\r\n        \"prod_price\": 111110\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://apiplaza.pesanlokal.com/api/syncItem"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Failed to validate sync item\",\n    \"data\": {\n        \"0.sku\": [\n            \"The 0.sku field is required.\"\n        ],\n        \"0.prod_name\": [\n            \"The 0.prod_name field is required.\"\n        ],\n        \"0.prod_price\": [\n            \"The 0.prod_price field is required.\"\n        ]\n    }\n}"}],"_postman_id":"4a91820e-f7fe-4ce3-b6e7-1c931f4712c1"},{"name":"Sync Warehouse","id":"c50bf895-f972-4296-aba4-09676e327d92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"whs_name\": \"Gudang AB1\",\r\n        \"whs_code\": \"AB1\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Gudang AB2\",\r\n        \"whs_code\": \"AB2\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Gudang AB3\",\r\n        \"whs_code\": \"AB3\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Gudang AB4\",\r\n        \"whs_code\": \"AB4\"\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://apiplaza.pesanlokal.com/api/syncWarehouse","description":"<p>Mengupdate warehouse sesuai dengan masing-masing <code>whs_code</code></p>\n<ul>\n<li><p>Jika <code>whs_code</code> warehouse belum ada, maka warehouse akan <em>ditambahkan</em></p>\n</li>\n<li><p>Jika <code>whs_code</code> warehouse sudah ada, maka warehouse akan <em>diupdate</em></p>\n</li>\n</ul>\n<p><strong>note:</strong> semua warehouse yang tidak di update akan di inactive (0) kan setelah proses synchronize</p>\n","urlObject":{"protocol":"https","path":["api","syncWarehouse"],"host":["apiplaza","pesanlokal","com"],"query":[],"variable":[]}},"response":[{"id":"9d50910a-eed2-4fd4-9c79-4d20696aed8f","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"whs_name\": \"Gudang AB1\",\r\n        \"whs_code\": \"AB1\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Gudang AB2\",\r\n        \"whs_code\": \"AB2\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Gudang AB3\",\r\n        \"whs_code\": \"AB3\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Gudang AB4\",\r\n        \"whs_code\": \"AB4\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Jakarta\",\r\n        \"whs_code\": \"GJ\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Surabaya B-32\",\r\n        \"whs_code\": \"GU\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Surabaya Showroom\",\r\n        \"whs_code\": \"GS\"\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://apiplaza.pesanlokal.com/api/syncWarehouse"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"batch_id\": \"e95b1db9-ed09-4cee-95d4-02c7c9bafceb\",\n    \"message\": \"Sync warehouse onprocess\"\n}"},{"id":"cbf0c4c3-3629-4bdd-918c-d9596a1b6831","name":"400","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"whs_name1\": \"Gudang AB1\",\r\n        \"whs_code1\": \"AB1\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Gudang AB2\",\r\n        \"whs_code\": \"AB2\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Gudang AB3\",\r\n        \"whs_code\": \"AB3\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Gudang AB4\",\r\n        \"whs_code\": \"AB4\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Jakarta\",\r\n        \"whs_code\": \"GJ\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Surabaya B-32\",\r\n        \"whs_code\": \"GU\"\r\n    },\r\n    {\r\n        \"whs_name\": \"Surabaya Showroom\",\r\n        \"whs_code\": \"GS\"\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"https://apiplaza.pesanlokal.com/api/syncWarehouse"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Failed to validate sync warehouse\",\n    \"data\": {\n        \"0.whs_code\": [\n            \"The 0.whs_code field is required.\"\n        ],\n        \"0.whs_name\": [\n            \"The 0.whs_name field is required.\"\n        ]\n    }\n}"}],"_postman_id":"c50bf895-f972-4296-aba4-09676e327d92"}],"id":"3caed7e0-d203-4440-b810-1f29eb5896fa","description":"<h2 id=\"data-structure\">Data Structure</h2>\n<ul>\n<li><p>sku <code>(string)</code> <code>(not null)</code> : SKU Item</p>\n</li>\n<li><p>prod_name <code>(string)</code> <code>(not null)</code> : Name Item</p>\n</li>\n<li><p>prod_spec <code>(string)</code> : Specs Item</p>\n</li>\n<li><p>prod_price <code>(int)</code> <code>(not null)</code> : Price Item</p>\n</li>\n<li><p>prod_sn <code>(string)</code> : SN Item</p>\n</li>\n<li><p>stock <code>(int)</code> <code>(not null)</code> : Stock Item</p>\n</li>\n<li><p>whs_code <code>(string)</code> <code>(not null)</code> : Code Warehouse</p>\n</li>\n<li><p>whs_name <code>(string)</code> <code>(not null)</code> : Name Warehouse</p>\n</li>\n</ul>\n","_postman_id":"3caed7e0-d203-4440-b810-1f29eb5896fa"}]}