{"info":{"_postman_id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","name":"Forstok API Channel","description":"<html><head></head><body><h1 id=\"overview\">Overview</h1>\n<p>This is the documentation of Forstok Application Programming Interface (API). This document contains the published Forstok API for our partners (channels).</p>\n<img src=\"https://content.pstmn.io/de3c17fb-51aa-4af4-9bcd-3c2fb002115b/Rm9yc3RvayBBUEkgdjIuMC4yIC0gQ2hhbm5lbCAoMSkuanBn\" alt=\"\">\n\n<p>Aside of Authentication endpoint, Forstok API will have the following format :</p>\n<p>&nbsp;&nbsp;&nbsp; <a href=\"https://integration.forstok.com/api/\">https://integration.forstok.com/api/</a> {version} / {type} / {id} / {endpoint} / {params}</p>\n<p>There are two kinds of data delivery schemes from Forstok to our partners :</p>\n<p>A. Using Open API  </p>\n<img src=\"https://bitbucket.org/forstok/open-api-diagram/raw/8af385d7adc3e5aee11447f52efc61c5be4dc0eb/Forstok API v2.0.2 - Channel (2).jpg\" alt=\"\">\n\n<p>B. Using Webhook  </p>\n<img src=\"https://bitbucket.org/forstok/open-api-diagram/raw/8af385d7adc3e5aee11447f52efc61c5be4dc0eb/Forstok API v2.0.2 - Channel (3).jpg\" alt=\"\">\n\n<h1 id=\"document-history\">Document History</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Released Date</th>\n<th>What’s New</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>5 Agt 2020</td>\n<td>- Add webhook event : product_delete  <br>- Add webhook management : Set Webhook Key</td>\n</tr>\n<tr>\n<td>25 Jun 2020</td>\n<td>- Add Webhook Logs Endpoint  <br>- API Create Order : Remove param “local_id” from item lines (we use only variant_id (internal : listing_id))  <br>- Webhook Product - response handler</td>\n</tr>\n<tr>\n<td>1 Apr 2020</td>\n<td>- Change Shipping - Sub District API params &amp; response</td>\n</tr>\n<tr>\n<td>13 Mar 2020</td>\n<td>- Remove get product APIs (get list, price, stock)</td>\n</tr>\n<tr>\n<td>12 Mar 2020</td>\n<td>- Add “Shipping” section  <br>- Add “shipping_origin_id” in Get Account List response</td>\n</tr>\n<tr>\n<td>4 Mar 2020</td>\n<td>- Remove Brand ID and Forstok Category Name from product creation</td>\n</tr>\n<tr>\n<td>18 Feb 2020</td>\n<td>- Add img urls to webhook create product  <br>- Add API : Create Product</td>\n</tr>\n<tr>\n<td>7 Feb 2020</td>\n<td>- Initial document</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Overview","slug":"overview"},{"content":"Document History","slug":"document-history"}],"owner":"8204046","collectionId":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","publishedId":"T1DqgcS5","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-07-27T09:25:26.000Z"},"item":[{"name":"Auth","item":[{"name":"Auth","event":[{"listen":"test","script":{"id":"4823092c-8eb7-437f-90d3-ebebfca30aeb","exec":["const response = pm.response.json();\r","pm.environment.set(\"token\", response.data.token);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"05b50687-9532-4418-8f04-300779e4a5ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"id\": {{channel_id}},\n \"secret_key\": \"{{secret_key}}\",\n \"type\": \"channel\"\n}"},"url":"https://integration.forstok.com/api/v2/auth","description":"<p>To access Forstok API, you must first authenticate yourself and get access token.</p>\n<p>Params</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Req</th>\n<th>Loc</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>true</td>\n<td>body</td>\n<td>Account Identifier number</td>\n</tr>\n<tr>\n<td>secret_key</td>\n<td>string</td>\n<td>true</td>\n<td>body</td>\n<td>Account Secret key</td>\n</tr>\n<tr>\n<td>type</td>\n<td>string</td>\n<td>true</td>\n<td>body</td>\n<td>Account type option \"[channel/seller]\"</td>\n</tr>\n</tbody>\n</table>\n</div><p>Response</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Req</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>true</td>\n<td>Account Identifier number</td>\n</tr>\n<tr>\n<td>data</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>⌞token</td>\n<td>string</td>\n<td>true</td>\n<td>Token in JWT format, contains payloads</td>\n</tr>\n<tr>\n<td>⌞exp_at</td>\n<td>datetime</td>\n<td>true</td>\n<td>Expiration Date</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","name":"Forstok API Channel","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v2","auth"],"host":["integration","forstok","com"],"query":[],"variable":[]}},"response":[{"id":"dec08e06-5bd4-4ca7-9523-f58bcbf9f6db","name":"Auth","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"id\": \"calvin.octaviano@forstok.com\",\n \"secret_key\": \"1q2w3e4r5t\",\n \"type\": \"channel\"\n}"},"url":"https://integration.forstok.com/api/v2/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 13 Oct 2020 08:48:11 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"230"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Etag","value":"W/\"2ba8326e5e2d8a121dbd320d46a7620e\""},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"3abc82d5-8524-47ad-b783-6843b3f7c58e"},{"key":"X-Runtime","value":"0.076034"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"data\": {\n        \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwiZXhwX2F0IjoiMjAyMC0xMS0xMyAxNTo0ODoxMSArMDcwMCIsImF1dGhfdHlwZSI6ImNoYW5uZWwifQ.HAbeiAWwbkWDUWuFP_yuBP87jlmcXR4NW5kmQVx9HT4\",\n        \"exp_at\": \"2020-11-13T15:48:11.472+07:00\"\n    }\n}"}],"_postman_id":"05b50687-9532-4418-8f04-300779e4a5ed"}],"id":"8f84b894-b125-4f4a-a864-ccfe6ccc0bdc","description":"<p>To access Forstok API, you must first authenticate yourself and get access token.</p>\n","_postman_id":"8f84b894-b125-4f4a-a864-ccfe6ccc0bdc","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","name":"Forstok API Channel","type":"collection"}}},{"name":"Webhook Management","item":[{"name":"Register Webhook","id":"56d42b21-4b70-4652-b700-95500ab7761e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"callback\": \"www.somedomain.com/callback_url\",\n\t\"event\": \"product_create\"\n}"},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/webhook/register","description":"<p>Description:<br />To be notified when certain events occur, you must register your callback url to the following endpoint. Be sure that your callback accepts HTTP POST method.</p>\n<p>Event type option :<br /><strong>Product</strong></p>\n<ul>\n<li><p>product_create</p>\n</li>\n<li><p>product_update_attributes</p>\n</li>\n<li><p>product_update_stock</p>\n</li>\n<li><p>product_update_price</p>\n</li>\n<li><p>product_update_status</p>\n</li>\n<li><p>product_delete</p>\n</li>\n</ul>\n<p><strong>Order</strong></p>\n<ul>\n<li><p>order_update_payment_status</p>\n</li>\n<li><p>order_update_fulfillment_status</p>\n</li>\n<li><p>order_create_return</p>\n</li>\n<li><p>order_update_return</p>\n</li>\n<li><p>order_delete_return</p>\n</li>\n</ul>\n<blockquote>\n<p>Parameter request  </p>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Req</th>\n<th>Loc</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>channel_id</td>\n<td>integer</td>\n<td>true</td>\n<td>query</td>\n<td>Channel identifier number</td>\n</tr>\n<tr>\n<td>event</td>\n<td>string</td>\n<td>true</td>\n<td>body</td>\n<td>Event type option :  <br />- product_create  <br />- product_update_attributes  <br />- product_update_stock  <br />- product_update_price  <br />- product_update_status  <br />- product_delete  <br />- order_update_payment_status  <br />- order_update_fulfillment_status  <br />- order_create_return  <br />- order_update_return  <br />- order_delete_return</td>\n</tr>\n<tr>\n<td>callback</td>\n<td>string</td>\n<td>true</td>\n<td>body</td>\n<td>Channel’s endpoint url to receive the notification</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","channel","{{channel_id}}","webhook","register"],"host":["integration","forstok","com"],"query":[],"variable":[]}},"response":[{"id":"e36dd161-d284-4f38-912b-323f3fa320ef","name":"Register Webhook","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"callback\": \"www.somedomain.com/callback_url\",\n\t\"event\": \"product_create\"\n}"},"url":"https://integration.forstok.com/api/v2/channel/1/webhook/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 13 Oct 2020 09:14:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"130"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Etag","value":"W/\"38abd122bddca8bd4771aed9a24912b3\""},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"d9540738-c944-4d9f-b140-333084ddff1c"},{"key":"X-Runtime","value":"0.366968"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": {\n        \"event\": \"product_create\",\n        \"callback_url\": \"www.somedomain.com/callback_url\"\n    },\n    \"msg\": \"Success create webhook.\"\n}"},{"id":"2ce75514-63c9-4763-b17f-d9112d39c89b","name":"Register Webhook Local","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"callback\": \"www.somedomain.com/callback_url\",\n\t\"event\": \"product_create\"\n}"},"url":"https://integration.forstok.com/api/v2/channel/1/webhook/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 13 Oct 2020 09:14:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"130"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Etag","value":"W/\"38abd122bddca8bd4771aed9a24912b3\""},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"d9540738-c944-4d9f-b140-333084ddff1c"},{"key":"X-Runtime","value":"0.366968"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": {\n        \"event\": \"product_create\",\n        \"callback_url\": \"www.somedomain.com/callback_url\"\n    },\n    \"msg\": \"Success create webhook.\"\n}"}],"_postman_id":"56d42b21-4b70-4652-b700-95500ab7761e"},{"name":"Get Webhook List","id":"fd97c1f1-08e6-425e-ae26-9f6b2e09a591","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/webhook/list","description":"<p>To check the registered callback url that will receive the notifications from Forstok</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Req</th>\n<th>Loc</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>channel_id</td>\n<td>integer</td>\n<td>true</td>\n<td>query</td>\n<td>Channel identifier number</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","channel","{{channel_id}}","webhook","list"],"host":["integration","forstok","com"],"query":[],"variable":[]}},"response":[{"id":"8074dc22-109f-491d-94f4-2c82f3943434","name":"Get Webhook List","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://integration.forstok.com/api/v2/channel/1/webhook/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 13 Oct 2020 09:16:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"323"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Etag","value":"W/\"c06f048008b640134f37d0dc3a2bcfc8\""},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"35421479-2f00-405a-a45c-afd7d6641feb"},{"key":"X-Runtime","value":"0.034950"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": [\n        {\n            \"product_create\": \"www.somedomain.com/callback_url\"\n        },\n        {\n            \"product_update_attributes\": \"www.somedomain.com/callback_url1\"\n        },\n        {\n            \"product_update_stock\": \"www.somedomain.com/callback_url2\"\n        },\n        {\n            \"product_update_price\": \"www.somedomain.com/callback_url3\"\n        },\n        {\n            \"product_update_status\": \"www.somedomain.com/callback_url4\"\n        }\n    ]\n}"},{"id":"85175583-be22-4e7c-93ee-ca609498cbd5","name":"Get Webhook List","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://integration.forstok.com/api/v2/channel/1/webhook/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 13 Oct 2020 09:16:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"323"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Etag","value":"W/\"c06f048008b640134f37d0dc3a2bcfc8\""},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"35421479-2f00-405a-a45c-afd7d6641feb"},{"key":"X-Runtime","value":"0.034950"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": [\n        {\n            \"product_create\": \"www.somedomain.com/callback_url\"\n        },\n        {\n            \"product_update_attributes\": \"www.somedomain.com/callback_url1\"\n        },\n        {\n            \"product_update_stock\": \"www.somedomain.com/callback_url2\"\n        },\n        {\n            \"product_update_price\": \"www.somedomain.com/callback_url3\"\n        },\n        {\n            \"product_update_status\": \"www.somedomain.com/callback_url4\"\n        }\n    ]\n}"}],"_postman_id":"fd97c1f1-08e6-425e-ae26-9f6b2e09a591"},{"name":"Register Email Notification [COMING SOON]","id":"64a74ae1-c259-484c-b197-ce9a3a8b2a40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"webhook_email\" : \"someone@mail.com\"\n}"},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/webhook/register_email_notification","description":"<p>When a webhook call fails, the Forstok system will retry several times before it is marked as failed. All failed webhook calls and its payload will be delivered to the channel via email registered to this end point.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Req</th>\n<th>Loc</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>channel_id</td>\n<td>integer</td>\n<td>true</td>\n<td>query</td>\n<td>Channel identifier number</td>\n</tr>\n<tr>\n<td>webhook_email</td>\n<td>string</td>\n<td>true</td>\n<td>body</td>\n<td>Email address to receive the failed webhook calls information</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","channel","{{channel_id}}","webhook","register_email_notification"],"host":["integration","forstok","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"64a74ae1-c259-484c-b197-ce9a3a8b2a40"},{"name":"View Logs","id":"ec555e26-a8da-41ea-aab0-b7fe21080be1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"file","file":{}},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/webhook/logs?from=2024-11-22&to=2024-11-22&event=product_create","description":"<p>To get a log of triggered webhook calls.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Req</th>\n<th>Loc</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>channel_id</td>\n<td>integer</td>\n<td>true</td>\n<td>query</td>\n<td>Channel identifier number</td>\n</tr>\n<tr>\n<td>from</td>\n<td>date</td>\n<td>true</td>\n<td>body</td>\n<td>Start periods (max date range : 7 days), format : yyyy-mm-dd</td>\n</tr>\n<tr>\n<td>to</td>\n<td>date</td>\n<td>true</td>\n<td>body</td>\n<td>End periods (max date range : 7 days), format : yyyy-mm-dd</td>\n</tr>\n<tr>\n<td>event</td>\n<td>string</td>\n<td>false</td>\n<td></td>\n<td>Event type option :  <br />- product_create  <br />- product_update_attributes  <br />- product_update_stock  <br />- product_update_price  <br />- product_update_status  <br />- product_delete  <br />- order_update_payment_status  <br />- order_update_fulfillment_status  <br />- order_create_return  <br />- order_update_return  <br />- order_delete_return</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","channel","{{channel_id}}","webhook","logs"],"host":["integration","forstok","com"],"query":[{"key":"from","value":"2024-11-22"},{"key":"to","value":"2024-11-22"},{"key":"event","value":"product_create"}],"variable":[]}},"response":[{"id":"e7af9166-b475-414a-a9bd-85e3cddd3010","name":"View Logs","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"file","file":{}},"url":{"raw":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/webhook/logs?from=2024-01-17&to=2024-01-17&event=product_create","protocol":"https","host":["integration","forstok","com"],"path":["api","v2","channel","{{channel_id}}","webhook","logs"],"query":[{"key":"from","value":"2024-01-17"},{"key":"to","value":"2024-01-17"},{"key":"event","value":"product_create"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 17 Jan 2024 04:03:08 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"ETag","value":"W/\"6503e8a9af4907237c63580ef9bd53d5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1a9f869f-98e8-4d24-8051-a764741c8252"},{"key":"X-Runtime","value":"0.018960"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": [\n        {\n            \"id\": 99822453,\n            \"event\": \"product_create\",\n            \"created_at\": \"2024-01-17T09:30:46.000+07:00\",\n            \"response_status\": 200,\n            \"response_body\": \"<!DOCTYPE html>\\n<html data-adblockkey=\\\"MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALquDFETXRn0Hr05fUP7EJT77xYnPmRbpMy4vk8KYiHnkNpednjOANJcaXDXcKQJN0nXKZJL7TciJD8AoHXK158CAwEAAQ==_N35CYhoFCP0fsxSzx1RtGTjbxhe2VeljiXfFhjVhdryhFgpqahnvtUxWFPYTkz1YdtP8JIQhZa7ds9B97g851A==\\\" xmlns=\\\"http://www.w3.org/1999/xhtml\\\" xml:lang=\\\"en\\\" lang=\\\"en\\\">\\n<head>\\n    <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=utf-8\\\"/>\\n    <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1, shrink-to-fit=no\\\"/>\\n    <tit\",\n            \"payload\": \"{\\\"id\\\":22678533,\\\"account_id\\\":7457,\\\"name\\\":\\\"American West\\\",\\\"description\\\":\\\"test\\\",\\\"brand_name\\\":\\\"American West\\\",\\\"variants\\\":[{\\\"id\\\":22655769,\\\"account_id\\\":7457,\\\"sku\\\":\\\"Crewneck07\\\",\\\"name\\\":\\\"American West\\\",\\\"barcode\\\":\\\"4\\\",\\\"options\\\":[{\\\"Color\\\":\\\"Black\\\",\\\"Size\\\":\\\"L\\\"}],\\\"status\\\":\\\"active\\\",\\\"weight\\\":300,\\\"length\\\":34,\\\"width\\\":44,\\\"height\\\":5,\\\"img_urls\\\":[\\\"https://forstok-staging-storage.s3-ap-southeast-1.amazonaws.com/items_import/evyjFV0J9Aj0GyvGLyP5V/axtVFTDMiCHXzqNjHFUN6a.jpg\\\"],\\\"description\\\":\\\"test spasienterenter\\\",\\\"created_at\\\":\\\"2024-01-17T09:30:46.000+07:00\\\",\\\"updated_at\\\":\\\"2024-01-17T09:30:46.000+07:00\\\",\\\"price\\\":99000,\\\"sale_price\\\":null,\\\"sale_start_at\\\":null,\\\"sale_end_at\\\":null,\\\"quantity\\\":0,\\\"warehouses\\\":[{\\\"quantity\\\":1,\\\"warehouse_id\\\":1294,\\\"warehouse_code\\\":\\\"WHSBY-1\\\"}]}],\\\"forstok_category_id\\\":null,\\\"forstok_category_name\\\":null}\"\n        },\n        {\n            \"id\": 99832345,\n            \"event\": \"product_create\",\n            \"created_at\": \"2024-01-17T11:02:26.000+07:00\",\n            \"response_status\": 200,\n            \"response_body\": \"<!DOCTYPE html>\\n<html data-adblockkey=\\\"MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALquDFETXRn0Hr05fUP7EJT77xYnPmRbpMy4vk8KYiHnkNpednjOANJcaXDXcKQJN0nXKZJL7TciJD8AoHXK158CAwEAAQ==_N35CYhoFCP0fsxSzx1RtGTjbxhe2VeljiXfFhjVhdryhFgpqahnvtUxWFPYTkz1YdtP8JIQhZa7ds9B97g851A==\\\" xmlns=\\\"http://www.w3.org/1999/xhtml\\\" xml:lang=\\\"en\\\" lang=\\\"en\\\">\\n<head>\\n    <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=utf-8\\\"/>\\n    <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1, shrink-to-fit=no\\\"/>\\n    <tit\",\n            \"payload\": \"{\\\"id\\\":22678636,\\\"account_id\\\":7457,\\\"name\\\":\\\"87Seoul\\\",\\\"description\\\":\\\"test\\\",\\\"brand_name\\\":\\\"87Seoul\\\",\\\"variants\\\":[{\\\"id\\\":22656225,\\\"account_id\\\":7457,\\\"sku\\\":\\\"Crewneck09\\\",\\\"name\\\":\\\"87Seoul\\\",\\\"barcode\\\":\\\"6\\\",\\\"options\\\":[{\\\"Color\\\":\\\"Green\\\",\\\"Size\\\":\\\"XL\\\"}],\\\"status\\\":\\\"active\\\",\\\"weight\\\":300,\\\"length\\\":34,\\\"width\\\":44,\\\"height\\\":5,\\\"img_urls\\\":[\\\"https://forstok-staging-storage.s3-ap-southeast-1.amazonaws.com/items_import/BBjzW5-x1UT0Z8mjyG1iv/21UUUZTtJkqrHmBfGqGwaG.png\\\"],\\\"description\\\":\\\"test\\\",\\\"created_at\\\":\\\"2024-01-17T11:02:27.000+07:00\\\",\\\"updated_at\\\":\\\"2024-01-17T11:02:27.000+07:00\\\",\\\"price\\\":99000,\\\"sale_price\\\":null,\\\"sale_start_at\\\":null,\\\"sale_end_at\\\":null,\\\"quantity\\\":0,\\\"warehouses\\\":[{\\\"quantity\\\":1,\\\"warehouse_id\\\":1294,\\\"warehouse_code\\\":\\\"WHSBY-1\\\"}]}],\\\"forstok_category_id\\\":null,\\\"forstok_category_name\\\":null}\"\n        }\n    ]\n}"}],"_postman_id":"ec555e26-a8da-41ea-aab0-b7fe21080be1"},{"name":"Set Webhook Key","id":"dfa24427-08a1-4d73-8947-6271aab47eb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fs_webhook_key\": \"random_alphanumeric\"\n}","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/webhook/set_key","description":"<p>Set the authentication key to be used when forstok send webhook payload. Forstok sends a webhook payload with a header request “fs_webhook_key=[value]”, so your endpoint will be able to check if the call is from our system.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Req</th>\n<th>Loc</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>channel_id</td>\n<td>integer</td>\n<td>true</td>\n<td>query</td>\n<td>Channel identifier number</td>\n</tr>\n<tr>\n<td>fs_webhook_key</td>\n<td>string</td>\n<td>true</td>\n<td>body</td>\n<td>An alphanumeric (A-Z, a-z, 0-9) string with max 255 characters length</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","channel","{{channel_id}}","webhook","set_key"],"host":["integration","forstok","com"],"query":[],"variable":[]}},"response":[{"id":"16206531-ef9f-4857-b3d8-60098ebed49f","name":"Set Webhook Key","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fs_webhook_key\": \"random_alphanumeric\"\n}","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/api/v2/channel/1/webhook/set_key"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 13 Oct 2020 09:21:29 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"15"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Etag","value":"W/\"3d23d39a30bb7323f8ccfd64c52cf286\""},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"b5be9d6d-ff43-463d-a9f3-beb0d2ad8f95"},{"key":"X-Runtime","value":"0.223630"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\"\n}"}],"_postman_id":"dfa24427-08a1-4d73-8947-6271aab47eb7"}],"id":"2e355424-65e2-4035-9a4c-a176dd34ffdd","_postman_id":"2e355424-65e2-4035-9a4c-a176dd34ffdd","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","name":"Forstok API Channel","type":"collection"}}},{"name":"Webhook Notification","item":[{"name":"Product","item":[{"name":"Create Product","id":"27de9079-6582-4690-a519-e124f36f68f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"VIEW","header":[],"url":"","description":"<p>Event : When Users create a new product in Forstok, this payload will be sent to the registered url callback.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Field</td>\n<td>Type</td>\n<td>Description</td>\n</tr>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Product ID in Forstok System</td>\n</tr>\n<tr>\n<td>account_id</td>\n<td>integer</td>\n<td>Account ID</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Product Name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Product Description</td>\n</tr>\n<tr>\n<td>brand_name</td>\n<td>string</td>\n<td>Brand Name</td>\n</tr>\n<tr>\n<td>variants</td>\n<td>object[ ]</td>\n<td>List of variants</td>\n</tr>\n<tr>\n<td>⌞id</td>\n<td>integer</td>\n<td>Variant ID in Forstok System</td>\n</tr>\n<tr>\n<td>⌞account_id</td>\n<td>integer</td>\n<td>Account ID</td>\n</tr>\n<tr>\n<td>⌞sku</td>\n<td>string</td>\n<td>A unique identifier for the product. This identifier is usually freely assigned.</td>\n</tr>\n<tr>\n<td>⌞name</td>\n<td>string</td>\n<td>Name of variants</td>\n</tr>\n<tr>\n<td>⌞barcode</td>\n<td>string</td>\n<td>A unique identifier for the product, machine readable.</td>\n</tr>\n<tr>\n<td>⌞options</td>\n<td>object[]</td>\n<td>List of option type</td>\n</tr>\n<tr>\n<td>⌞status</td>\n<td>string</td>\n<td>Status of the variant</td>\n</tr>\n<tr>\n<td>⌞weight</td>\n<td>integer</td>\n<td>Weight of the variant</td>\n</tr>\n<tr>\n<td>⌞length</td>\n<td>integer</td>\n<td>Length of the variant</td>\n</tr>\n<tr>\n<td>⌞width</td>\n<td>integer</td>\n<td>Width of the variant</td>\n</tr>\n<tr>\n<td>⌞height</td>\n<td>integer</td>\n<td>Height of the variant</td>\n</tr>\n<tr>\n<td>⌞img_urls</td>\n<td>string[]</td>\n<td>Url to the product images</td>\n</tr>\n<tr>\n<td>⌞location_id</td>\n<td>string</td>\n<td>Location ID for the variants</td>\n</tr>\n<tr>\n<td>⌞description</td>\n<td>string</td>\n<td>Description about the variant.</td>\n</tr>\n<tr>\n<td>⌞created_at</td>\n<td>date</td>\n<td></td>\n</tr>\n<tr>\n<td>Cupdated_at</td>\n<td>date</td>\n<td></td>\n</tr>\n<tr>\n<td>⌞price</td>\n<td>integer</td>\n<td>Price of the variant</td>\n</tr>\n<tr>\n<td>⌞sale_price</td>\n<td>integer</td>\n<td>Product sale price</td>\n</tr>\n<tr>\n<td>⌞sale_start_at</td>\n<td>datetime</td>\n<td>Time that indicate the beginning of sale</td>\n</tr>\n<tr>\n<td>⌞sale_end_at</td>\n<td>datetime</td>\n<td>Time that indicate the end of sale</td>\n</tr>\n<tr>\n<td>⌞quantity</td>\n<td>integer</td>\n<td>Quantity of the product</td>\n</tr>\n<tr>\n<td>⌞warehouses</td>\n<td>object[]</td>\n<td></td>\n</tr>\n<tr>\n<td>⌞⌞quantity</td>\n<td>integer</td>\n<td>Quantity of the product</td>\n</tr>\n<tr>\n<td>⌞⌞id</td>\n<td>integer</td>\n<td></td>\n</tr>\n<tr>\n<td>⌞⌞channel_warehouse_id</td>\n<td>integer</td>\n<td></td>\n</tr>\n<tr>\n<td>⌞forstok_category_id / channel_category_id</td>\n<td>integer</td>\n<td></td>\n</tr>\n<tr>\n<td>⌞forstok_category_name / channel_category_name</td>\n<td>integer</td>\n<td></td>\n</tr>\n<tr>\n<td>⌞key</td>\n<td>string</td>\n<td>Name of option type. It could be anything.</td>\n</tr>\n<tr>\n<td>⌞value</td>\n<td>string</td>\n<td>Value of option type. It could be anything.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Response<br />This Webhook receives a response to set a link to the live item url. In the response body of your endpoint, you can add “live_url” data. This live url will be set to the related variant in forstok system, so that every integrated seller will be able to open the display page of the channel directly from our system.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    “status” : “OK”, // you can add another response for your own needs\n    “live_url” : [ // forstok will only process this response\n    {\n        \"variant_id\" : 123, \n        \"url\" : \"\\\"https://abc.com/linktodiplayitemurl\\\"\"\n    },\n    {...}]\n}\n\n</code></pre><p>Example</p>\n<p>Single Variant Item :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"id\": 18029376,\n  \"account_id\": 7457,\n  \"name\": \"Single item webhook\",\n  \"description\": \"cek webhook single item\",\n  \"brand_name\": \"NoBrand\",\n  \"variants\": [\n    {\n      \"id\": 18983166,\n      \"account_id\": 7457,\n      \"sku\": \"webhook1\",\n      \"name\": \"Single item webhook\",\n      \"barcode\": null,\n      \"options\": [],\n      \"status\": \"active\",\n      \"weight\": 1,\n      \"length\": 1,\n      \"width\": 1,\n      \"height\": 1,\n      \"img_urls\": [\n        \"https://d3ndwuuxpr6t02.cloudfront.net/system/item/images/images/136/004/646/xlarge/db1cc43f13c5466ff1c50f86857fb336.jpg?1660020295\"\n      ],\n      \"description\": \"cek webhook single item\",\n      \"created_at\": \"2022-08-09T11:44:57.000+07:00\",\n      \"updated_at\": \"2022-08-09T11:44:57.000+07:00\",\n      \"price\": 10000,\n      \"sale_price\": null,\n      \"sale_start_at\": null,\n      \"sale_end_at\": null,\n      \"quantity\": 12,\n      \"warehouses\": [\n        {\n          \"quantity\": 12,\n          \"warehouse_id\": 1294,\n          \"warehouse_code\": null\n        }\n      ]\n    }\n  ],\n  \"forstok_category_id\": null,\n  \"forstok_category_name\": null\n}\n\n</code></pre><p>Multivariant Item :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"id\": 18070164,\n  \"account_id\": 7457,\n  \"name\": \"Multivariant item webhook\",\n  \"description\": \"Deskripsi Multivariant item webhook create product\",\n  \"brand_name\": \"NoBrand\",\n  \"variants\": [\n    {\n      \"id\": 19013348,\n      \"account_id\": 7457,\n      \"sku\": \"multi01\",\n      \"name\": \"Multivariant item webhook\",\n      \"barcode\": null,\n      \"options\": [\n        {\n          \"Color\": \"Black\"\n        }\n      ],\n      \"status\": \"active\",\n      \"weight\": 2,\n      \"length\": 2,\n      \"width\": 2,\n      \"height\": 2,\n      \"img_urls\": [\n        \"https://d3ndwuuxpr6t02.cloudfront.net/system/item/images/images/136/159/137/xlarge/237e76fe4606e836cd3c9ed74e59993e.jpg?1660032694\"\n      ],\n      \"description\": \"Deskripsi Multivariant item webhook create product\",\n      \"created_at\": \"2022-08-09T15:11:39.000+07:00\",\n      \"updated_at\": \"2022-08-09T15:11:39.000+07:00\",\n      \"price\": 100000,\n      \"sale_price\": null,\n      \"sale_start_at\": null,\n      \"sale_end_at\": null,\n      \"quantity\": 2,\n      \"warehouses\": [\n        {\n          \"quantity\": 2,\n          \"warehouse_id\": 1294,\n          \"warehouse_code\": null\n        }\n      ]\n    },\n    {\n      \"id\": 19013349,\n      \"account_id\": 7457,\n      \"sku\": \"multi02\",\n      \"name\": \"Multivariant item webhook\",\n      \"barcode\": null,\n      \"options\": [\n        {\n          \"Color\": \"Blue\"\n        }\n      ],\n      \"status\": \"active\",\n      \"weight\": 2,\n      \"length\": 2,\n      \"width\": 2,\n      \"height\": 2,\n      \"img_urls\": [\n        \"https://d3ndwuuxpr6t02.cloudfront.net/system/item/images/images/136/159/138/xlarge/73cae54d5dbe763b5a71ceb66cdcbaff.jpg?1660032696\"\n      ],\n      \"description\": \"Deskripsi Multivariant item webhook create product\",\n      \"created_at\": \"2022-08-09T15:11:39.000+07:00\",\n      \"updated_at\": \"2022-08-09T15:11:39.000+07:00\",\n      \"price\": 100000,\n      \"sale_price\": null,\n      \"sale_start_at\": null,\n      \"sale_end_at\": null,\n      \"quantity\": 2,\n      \"warehouses\": [\n        {\n          \"quantity\": 2,\n          \"warehouse_id\": 1294,\n          \"warehouse_code\": null\n        }\n      ]\n    }\n  ],\n  \"forstok_category_id\": null,\n  \"forstok_category_name\": null\n}\n\n</code></pre>","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"27de9079-6582-4690-a519-e124f36f68f6"},{"name":"Update Attributes","id":"f71b2642-0b85-4c81-96c9-439c39f39569","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"VIEW","header":[],"url":"","description":"<p>Event : When Users update product attributes in Forstok, this payload will be sent to registered url callback.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Product ID  in Forstok System</td>\n</tr>\n<tr>\n<td>account_id</td>\n<td>integer</td>\n<td>Account ID</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Product Name</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Product Description</td>\n</tr>\n<tr>\n<td>brand_name</td>\n<td>string</td>\n<td>Brand Name</td>\n</tr>\n<tr>\n<td>forstok_category_id</td>\n<td>integer</td>\n<td>Category ID</td>\n</tr>\n<tr>\n<td>variants</td>\n<td>object [ ]</td>\n<td>List of variantas</td>\n</tr>\n<tr>\n<td>     ⌞id</td>\n<td>integer</td>\n<td>Variant ID in Forstok System</td>\n</tr>\n<tr>\n<td>     ⌞name</td>\n<td>string</td>\n<td>Name of variants</td>\n</tr>\n<tr>\n<td>     ⌞location_id</td>\n<td>string</td>\n<td>Location ID for the variants</td>\n</tr>\n<tr>\n<td>     ⌞description</td>\n<td>string</td>\n<td>Description about the variant.</td>\n</tr>\n<tr>\n<td>     ⌞sku</td>\n<td>string</td>\n<td>A unique identifier for the product. This identifier is usually freely assigned.</td>\n</tr>\n<tr>\n<td>     ⌞barcode</td>\n<td>string</td>\n<td>A unique identifier for the product, machine readable.</td>\n</tr>\n<tr>\n<td>     ⌞weight</td>\n<td>integer</td>\n<td>Weight of the variant</td>\n</tr>\n<tr>\n<td>     ⌞length</td>\n<td>integer</td>\n<td>Length of the variant</td>\n</tr>\n<tr>\n<td>     ⌞width</td>\n<td>integer</td>\n<td>Width of the variant</td>\n</tr>\n<tr>\n<td>     ⌞height</td>\n<td>integer</td>\n<td>Height of the variant</td>\n</tr>\n<tr>\n<td>     ⌞options</td>\n<td>object [ ]</td>\n<td>List of option type</td>\n</tr>\n<tr>\n<td>         ⌞key</td>\n<td>string</td>\n<td>Name of option type. It could be anything.</td>\n</tr>\n<tr>\n<td>         ⌞value</td>\n<td>string</td>\n<td>Value  of option type. It could be anything.</td>\n</tr>\n</tbody>\n</table>\n</div><pre><code>\n{\n    “id” : 456,\n    “account_id” : 987234,\n    \"name\": \"Baju Doraemon\",\n    \"description\": \"Baju gambar Doraemon\",\n    \"brand_name\": \"Doraemon\",\n    \"forstok_category_id\": \"84138\",\n    \"variants\": [\n    {\n        “id” : 123456,\n        \"name\": \"Baju Doraemon size S\",\n        \"location_id\" : \"\"\n        \"description\": \"Itemnya baju Doraemon tapi yg ini ukuran S dengan ukuran 60 x 45 cm\",\n        \"sku\": \"dora-s\",\n        \"barcode\": \"dora12345\",\n        \"weight\": 1,\n        \"length\": 1\n        \"height\": 1,\n        \"width\": 1,\n        \"options\": [ {\"size\": \"S\"}, {\"color\": \"Blue\"} ]\n    },\n    {\n        “id” : 234567,\n        \"name\": \"Baju Doraemon size M\",\n        \"location_id\" : \"\"\n        \"description\": \"Itemnya baju Doraemon tapi yg ini ukuran M dengan ukuran 65 x 50 cm\",\n        \"sku\": \"dora-m\",\n        \"barcode\": \"dora12346\",\n        \"weight\": 1,\n        \"length\": 1\n        \"height\": 1,\n        \"width\": 1,\n        \"options\": [ {\"size\": \"M\"}, {\"color\": \"Blue\"} ]\n    }]\n}\n</code></pre>","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"f71b2642-0b85-4c81-96c9-439c39f39569"},{"name":"Update Stock","id":"cfd2583e-e897-44ed-acfb-b5cb05fb87ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"VIEW","header":[],"url":"","description":"<p>Event : When Users update stock in Forstok, this payload will be sent to registered url callback.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>integer</td>\n<td>Account identifier number</td>\n</tr>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Variant ID</td>\n</tr>\n<tr>\n<td>sku</td>\n<td>string</td>\n<td>SKU of the variant</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>integer</td>\n<td>Quantity of the item</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example</p>\n<pre><code>\n{\n    “account_id” : 987234,\n    “id” : 253,\n    “sku” : “IPH-3123”,\n    “quantity” : 2 \n}\n</code></pre>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ade9aa55-5b0e-4d68-b45f-35d632353887","id":"ade9aa55-5b0e-4d68-b45f-35d632353887","name":"Webhook Notification","type":"folder"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"cfd2583e-e897-44ed-acfb-b5cb05fb87ec"},{"name":"Update Price","id":"19e9bd2f-4a94-4389-ab90-9614f488c013","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"VIEW","header":[],"url":"","description":"<p>Event : When Users update price in forstok, this payload will be sent to the registered url callback.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>integer</td>\n<td>Account identifier number</td>\n</tr>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Variant ID</td>\n</tr>\n<tr>\n<td>sku</td>\n<td>string</td>\n<td>SKU of the variant</td>\n</tr>\n<tr>\n<td>price</td>\n<td>decimal</td>\n<td>Item price</td>\n</tr>\n<tr>\n<td>sale_price</td>\n<td>decimal</td>\n<td>Item sale price</td>\n</tr>\n<tr>\n<td>sale_start_at</td>\n<td>datetime</td>\n<td>Time that indicate the beginning of sale</td>\n</tr>\n<tr>\n<td>sale_end_at</td>\n<td>datetime</td>\n<td>Time that indicate the end of sale</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example</p>\n<pre><code>\n{\n    “account_id” : 987234,\n    “id” : 253,\n    “sku” : “IPH-3123”,\n    “price” : 2225000,\n    “sale_price” : 8500000,\n    “sale_start_at” : “2019-07-20T15:33:20.000+07:00”,\n    “sale_end_at” : “2019-08-20T15:33:20.000+07:00”\n}\n</code></pre>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ade9aa55-5b0e-4d68-b45f-35d632353887","id":"ade9aa55-5b0e-4d68-b45f-35d632353887","name":"Webhook Notification","type":"folder"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"19e9bd2f-4a94-4389-ab90-9614f488c013"},{"name":"Update Status","id":"7b3d540f-2a8d-4dba-9f08-c1c42345c815","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"VIEW","header":[],"url":"","description":"<p>Event : When User updates status as product availability in Forstok, this payload will be sent to the registered url callback.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>integer</td>\n<td>Account identifier number</td>\n</tr>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Variant ID</td>\n</tr>\n<tr>\n<td>sku</td>\n<td>string</td>\n<td>SKU of the variant</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Product Status (active / inactive) related to each marketplace API</td>\n</tr>\n</tbody>\n</table>\n</div><pre><code>\n{\n    “account_id” : 987234,\n    “id” : 253,\n    “sku” : “IPH-3123”,\n    “status” : ”active” \n}\n</code></pre>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ade9aa55-5b0e-4d68-b45f-35d632353887","id":"ade9aa55-5b0e-4d68-b45f-35d632353887","name":"Webhook Notification","type":"folder"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"7b3d540f-2a8d-4dba-9f08-c1c42345c815"},{"name":"Delete Product","id":"88875ddd-485a-4b9b-86af-03e832585d01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"VIEW","header":[],"url":"","description":"<p>Event : When User unlist a product in Forstok, this payload will be sent to the registered url callback.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>integer</td>\n<td>Account identifier number</td>\n</tr>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Variant ID</td>\n</tr>\n<tr>\n<td>sku</td>\n<td>string</td>\n<td>SKU of the variant</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example</p>\n<pre><code>\n{\n    “account_id” : 987234,\n    “id” : 253,\n    “sku” : “IPH-3123”\n}\n</code></pre>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ade9aa55-5b0e-4d68-b45f-35d632353887","id":"ade9aa55-5b0e-4d68-b45f-35d632353887","name":"Webhook Notification","type":"folder"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"88875ddd-485a-4b9b-86af-03e832585d01"}],"id":"a535bcf5-29ee-4b1d-a5e4-d113f9b91031","_postman_id":"a535bcf5-29ee-4b1d-a5e4-d113f9b91031","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ade9aa55-5b0e-4d68-b45f-35d632353887","id":"ade9aa55-5b0e-4d68-b45f-35d632353887","name":"Webhook Notification","type":"folder"}}},{"name":"Order","item":[{"name":"Return Orders","item":[{"name":"Create Order Return","id":"cf792570-185a-4040-9dca-a916cab0eec1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"VIEW","header":[],"description":"<p>Event : When return was created in one order, this payload will be trigger with following structure.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>integer</td>\n<td>Account identifier number</td>\n</tr>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Order ID in Forstok</td>\n</tr>\n<tr>\n<td>local_id</td>\n<td>string</td>\n<td>Order ID in channel</td>\n</tr>\n<tr>\n<td>item_lines</td>\n<td>Object</td>\n<td>Object of items</td>\n</tr>\n<tr>\n<td>L variant_id</td>\n<td>integer</td>\n<td>item variant id forstok</td>\n</tr>\n<tr>\n<td>L sku</td>\n<td>string</td>\n<td>item sku</td>\n</tr>\n<tr>\n<td>L listing_id</td>\n<td>integer</td>\n<td>item listing id forstok</td>\n</tr>\n<tr>\n<td>L return_details</td>\n<td>Object</td>\n<td>Object of return. Information of return</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example</p>\n<pre><code>\n{\n    \"account_id\": 6532,\n    \"id\": 108817761,\n    \"local_id\": \"T3JkZXI6NDIw\",\n    \"item_lines\": [\n        {\n            \"variant_id\": null,\n            \"sku\": \"8992696521261\",\n            \"listing_id\": null,\n            \"return_details\": {\n                \"return_id\": 207,\n                \"status\":\"closed\",\n                \"reference\":\"\",\n                \"courier\":\"\",\n                \"awb\":\"\",\n                \"notes\":\"\",\n                \"refunded_amount\":\"\",\n                \"return_reason\":\"Barang rusak\",\n                \"qty_ordered\": 13,\n                \"qty_returned\": 1,\n                \"qty_restock\": 0,\n                \"qty_received\": 0,\n                \"returned_date\":\"2021-07-13T13:16:07.000+07:00\",\n                \"created_at\": \"2021-07-13T13:16:07.000+07:00\",\n                \"updated_at\": \"2021-07-13T13:16:07.000+07:00\"\n            }\n        }\n    ]\n}\n</code></pre>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ade9aa55-5b0e-4d68-b45f-35d632353887","id":"ade9aa55-5b0e-4d68-b45f-35d632353887","name":"Webhook Notification","type":"folder"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"cf792570-185a-4040-9dca-a916cab0eec1"}],"id":"3507cc07-c6ce-46ec-b43f-0530ab21395e","_postman_id":"3507cc07-c6ce-46ec-b43f-0530ab21395e","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ade9aa55-5b0e-4d68-b45f-35d632353887","id":"ade9aa55-5b0e-4d68-b45f-35d632353887","name":"Webhook Notification","type":"folder"}}},{"name":"Update Order Payment Status","id":"1fec1306-8879-4a90-9f09-4002f363b7c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"VIEW","header":[],"url":"","description":"<p>Event : When there is a change in payment status, this payload will be sent to the registered url callback.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>integer</td>\n<td>Account identifier number</td>\n</tr>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Order ID in Forstok</td>\n</tr>\n<tr>\n<td>local_id</td>\n<td>string</td>\n<td>Order ID in channel</td>\n</tr>\n<tr>\n<td>payment_status</td>\n<td>integer</td>\n<td>Option :<br />1 = Pending<br />2 = Paid but not verified<br />3 = Paid<br />4 = Cancelled<br />12 = Handled by your system</td>\n</tr>\n<tr>\n<td>payment_description</td>\n<td>string</td>\n<td>Option :<br />1 = Pending<br />2 = Paid but not verified<br />3 = Paid<br />4 = Cancelled<br />12 = Handled by your system</td>\n</tr>\n<tr>\n<td>payment_method</td>\n<td>string</td>\n<td>The method of payment</td>\n</tr>\n<tr>\n<td>paid_at</td>\n<td>datetime</td>\n<td>Time when the payment done</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example</p>\n<pre><code>\n{\n    “account_id” : 987234,\n    “id” : 253,\n    “local_id” : ”active”,\n    “payment_status” : “1”,\n    “payment_description” : “Pending”,\n    “payment_method” : “cash”,\n    “paid_at” : “2019-07-20T15:33:20.000+07:00”\n}\n</code></pre>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ade9aa55-5b0e-4d68-b45f-35d632353887","id":"ade9aa55-5b0e-4d68-b45f-35d632353887","name":"Webhook Notification","type":"folder"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"1fec1306-8879-4a90-9f09-4002f363b7c8"},{"name":"Update Order Fulfillment Status","id":"d8ebf241-c7cc-4c51-bcf0-2739d8d31017","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"VIEW","header":[],"url":"","description":"<p>Event : When there is a change in fulfillment status, this payload will be sent to the registered url callback.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>integer</td>\n<td>Account identifier number</td>\n</tr>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Order ID in Forstok</td>\n</tr>\n<tr>\n<td>local_id</td>\n<td>string</td>\n<td>Order ID in channel</td>\n</tr>\n<tr>\n<td>item_lines</td>\n<td>object [ ]</td>\n<td></td>\n</tr>\n<tr>\n<td>⌞variant_id</td>\n<td>integer</td>\n<td>Variant ID Forstok</td>\n</tr>\n<tr>\n<td>⌞listing_id</td>\n<td>integer</td>\n<td>Listing ID (know as Variant ID in other API)</td>\n</tr>\n<tr>\n<td>⌞sku</td>\n<td>string</td>\n<td>Variant SKU code</td>\n</tr>\n<tr>\n<td>⌞fulfillment_status</td>\n<td>integer</td>\n<td>Option :  <br />1 = Shipped (API)  <br />2 = Delivered (API &amp; Interface)  <br />3 = Cancelled (API &amp; Interface)  <br />4 = Ready to Ship (API &amp; Interface)  <br />5 = Packed (API)  <br />6 = Processed (API)  <br />7 = Return - Waiting for Approval (API)  <br />8 = Return - Rejected (API)  <br />9 = Return - Shipped by buyer (API)  <br />11 = Printed (for shipment purpose) (API)</td>\n</tr>\n<tr>\n<td>⌞fulfillment_description</td>\n<td>string</td>\n<td>Option :  <br />1 = Shipped  <br />2 = Delivered  <br />3 = Cancelled  <br />4 = Ready to Ship  <br />5 = Packed  <br />6 = Processed  <br />7 = Return - Waiting for Approval  <br />8 = Return - Rejected  <br />9 = Return - Shipped by buyer  <br />11 = Printed (for shipment purpose)</td>\n</tr>\n<tr>\n<td>⌞courier</td>\n<td>string</td>\n<td>Courier company name</td>\n</tr>\n<tr>\n<td>⌞awb</td>\n<td>string</td>\n<td>Airwaybill number</td>\n</tr>\n<tr>\n<td>cancelled_quantity</td>\n<td>int</td>\n<td>Total item cancelled</td>\n</tr>\n<tr>\n<td>⌞shipped_at</td>\n<td>datetime</td>\n<td>Shipment date and time</td>\n</tr>\n<tr>\n<td>⌞cancelled_at</td>\n<td>datetime</td>\n<td>Cancelation date and time (if the order is cancelled)</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example Status Ready to Ship</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    “account_id” : 987234,\n    “id” : 253,\n    “local_id” : ”SO-0001”,\n    “item_lines” : [\n        {\n            \"variant_id\" : 234,\n            \"listing_id\":445,\n            “sku” : “ITM-123”,\n            “fulfillment_status” : 4,\n            “fulfillment_description” : Ready to Ship,\n            “courier” : “JNE”,\n            “awb” : “982634127”,\n            “shipped_at” : “2019-07-20T15:33:20.000+07:00”\n        },\n        { . . . }]\n}\n\n</code></pre><p>Example Status Cancelled</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"account_id\": 1234,\n    \"id\": 1008980,\n    \"local_id\": \"INV/2020/11/0000010\",\n    \"item_lines\": [\n        {\n            \"variant_id\": 14600778,\n            \"listing_id\": 13697954,\n            \"sku\" : \"ITM-123\",\n            \"fulfillment_status\": 3,\n            \"fulfillment_description\": \"Cancelled\",\n            \"cancelled_quantity\": 1,\n            \"cancelled_at\": \"2020-11-20T11:17:35.000+07:00\"\n        }\n    ]\n}\n\n</code></pre>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ade9aa55-5b0e-4d68-b45f-35d632353887","id":"ade9aa55-5b0e-4d68-b45f-35d632353887","name":"Webhook Notification","type":"folder"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"d8ebf241-c7cc-4c51-bcf0-2739d8d31017"}],"id":"e1d8655f-ce46-451a-8683-03026c06137a","_postman_id":"e1d8655f-ce46-451a-8683-03026c06137a","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"ade9aa55-5b0e-4d68-b45f-35d632353887","id":"ade9aa55-5b0e-4d68-b45f-35d632353887","name":"Webhook Notification","type":"folder"}}}],"id":"ade9aa55-5b0e-4d68-b45f-35d632353887","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"7b0a2040-530b-4d6a-8766-324b01935f7e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d470a82a-79f0-4f3b-ab5a-f87f8b95d7fe","type":"text/javascript","exec":[""]}}],"_postman_id":"ade9aa55-5b0e-4d68-b45f-35d632353887","description":""},{"name":"Account","item":[{"name":"Get Account List","id":"b00e1e68-497e-4f7c-95cd-4229700a74a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/get_account_list","description":"<p>To get list of accounts that have activated the channel</p>\n","urlObject":{"protocol":"https","path":["api","v2","channel","{{channel_id}}","get_account_list"],"host":["integration","forstok","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b00e1e68-497e-4f7c-95cd-4229700a74a4"}],"id":"9c96b11d-3acf-4d51-ba8b-342a2227055f","_postman_id":"9c96b11d-3acf-4d51-ba8b-342a2227055f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","name":"Forstok API Channel","type":"collection"}}},{"name":"Order","item":[{"name":"Create Order","id":"63f5018c-cce1-451f-89ea-842051ae1629","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account_id\": 6532,\n    \"order\": {\n    \"local_id\":\"1-abcdefg\",\n    \"invoice_number\": \"1/INV/14/IV/2021\",\n    \"ordered_at\":\"2021-04-14 11:49:18\",\n    \"shipping_price\": 9000,\n    \"shipping_provider\": \"Jalur Nugraha Ekakurir (JNE)\",\n    \"voucher_code\": \"\",\n    \"voucher_amount\": 0,\n    \"discount_reason\": \"\",\n    \"discount_amount\": 0,\n    \"disc_shipping_seller\": 12000,\n    \"tax_amount\": 828,\n    \"note\":\"isi note bebas disini\",\n    \"internal_note\":\"isi internal note bebas disini\",\n   \"address\":{\n      \"name\":\"Amin Musaik\",\n      \"phone\":\"7777777777\",\n      \"email\":\"youremail@address.com\",\n      \"address_1\":\"JL. Cenderawasih, komplek rajawali, belakang kahyuna cafe, samping tower telkomselDKI jakarta, jakarta timurKelurahan : Halim perdana kusumaKecamatan : makasar\",\n      \"address_2\":\"\",\n      \"sub_district\": \"HALIM PERDANA KUSUMAH\",\n      \"district\": \"MAKASAR\",\n      \"city\":\"KOTA JAKARTA TIMUR\",\n      \"province\":\"DKI Jakarta\",\n      \"country\":\"Indonesia\",\n      \"postal_code\":\"13610\"\n   },\n   \"item_lines\":[\n      {\n         \"local_id\":\"variant_local_id_01\",\n         \"variant_id\":\"15458168\",\n         \"sku\":\"logitech-m590-red\",\n         \"name\":\"logitech-m590-red\",\n         \"price\":699000,\n         \"sale_price\":595000, // input \"sale_price\": null, if no sale_price\n         \"voucher_amount\": 104000, // input \"voucher_amount\": null, if no voucher_amount\n         \"quantity\":1,\n         \"note\":\"isi note bebas disini\",\n         \"internal_note\":\"isi internal note bebas disini\"\n      },\n      {\n         \"local_id\":\"15406529\",\n         \"variant_id\":\"15406529\",\n         \"sku\":\"dora-s-3\",\n         \"name\":\"Baju Doraemon size S - S/Blue\",\n         \"price\":50000,\n         \"sale_price\":10000, // input \"sale_price\": null, if no sale_price\n         \"voucher_amount\": 40000, // input \"voucher_amount\": null, if no voucher_amount\n         \"quantity\":1,\n         \"note\":\"isi note bebas disini\",\n         \"internal_note\":\"isi internal note bebas disini\"\n      }\n   ],\n   \"payment\":{\n      \"status_payment\":1,\n      \"payment_method\": \"TRANSFER\"\n   }\n}\n}"},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/order/create","description":"<p>Use this API to create new order</p>\n<blockquote>\n<p>Update Log</p>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Date</strong></th>\n<th><strong>Update Details</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>27-12-2021</td>\n<td>Add new field local_name</td>\n</tr>\n<tr>\n<td>27-12-2021</td>\n<td>Fix bugs where input on invoice_number is mapped to Order ID field in Order Detail</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p>Parameter request body</p>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>integer (required)</td>\n<td>Forstok Account identifier number</td>\n</tr>\n<tr>\n<td><em>order</em></td>\n<td>object[] (required)</td>\n<td>Order object</td>\n</tr>\n<tr>\n<td>local_id</td>\n<td>string (required)</td>\n<td>Order ID from your system (must be unique)</td>\n</tr>\n<tr>\n<td>local_name</td>\n<td>string (optional)</td>\n<td>Masked order ID from your system. The input from this variable will be shown in Order ID field in Order Detail. If this field is empty then local_id will be displayed on Order ID field in Order Detail.</td>\n</tr>\n<tr>\n<td>invoice_number</td>\n<td>string (optional)</td>\n<td>Invoice number for the order</td>\n</tr>\n<tr>\n<td>ordered_at</td>\n<td>datetime (required)</td>\n<td>Time when the order was created</td>\n</tr>\n<tr>\n<td>shipping_price</td>\n<td>integer (required)</td>\n<td>Shipping price for the order (value 0 for free shipping)</td>\n</tr>\n<tr>\n<td>shipping_provider</td>\n<td>string (optional)</td>\n<td>Selected courier to deliver the ordered item</td>\n</tr>\n<tr>\n<td>discount_amount</td>\n<td>integer (optional)</td>\n<td>Additional discount amount if exists</td>\n</tr>\n<tr>\n<td>discount_reason</td>\n<td>string (optional)</td>\n<td>Reason for the additional discount</td>\n</tr>\n<tr>\n<td>disc_shipping_seller</td>\n<td>integer (optional)</td>\n<td>Shipping Discount Amount from seller</td>\n</tr>\n<tr>\n<td>rebate</td>\n<td>integer (optional)</td>\n<td>Amount of the rebate, can be use for other additional amount in order paid by buyer / system</td>\n</tr>\n<tr>\n<td>note</td>\n<td>string (optional)</td>\n<td>Note from buyer (will be displayed to buyer in shipping label)</td>\n</tr>\n<tr>\n<td>internal_note</td>\n<td>string (optional)</td>\n<td>Note from channel to Forstok order. Can be used for storing any custom information from the channel about this order e.g. order metadata (will not be displayed in shipping label).</td>\n</tr>\n<tr>\n<td>warehouse_id or warehouse_code</td>\n<td>string (optional)</td>\n<td>use this parameter if you want to reduce stock in a certain warehouse (make sure the channel has been mapped to that warehouse)</td>\n</tr>\n<tr>\n<td><em>address</em></td>\n<td>object[] (required)</td>\n<td>Information of the order shipment</td>\n</tr>\n<tr>\n<td>L name</td>\n<td>string (required)</td>\n<td>Receiver name</td>\n</tr>\n<tr>\n<td>L phone</td>\n<td>string (required)</td>\n<td>Receiver phone</td>\n</tr>\n<tr>\n<td>L email</td>\n<td>string (required)</td>\n<td>Receiver email</td>\n</tr>\n<tr>\n<td>L address 1</td>\n<td>string (required)</td>\n<td>Address line 1</td>\n</tr>\n<tr>\n<td>L address 2</td>\n<td>string (optional)</td>\n<td>Address line 2</td>\n</tr>\n<tr>\n<td>L sub_district</td>\n<td>string (optional)</td>\n<td>Subdistrict of the destination</td>\n</tr>\n<tr>\n<td>L district</td>\n<td>string (optional)</td>\n<td>District of the destination</td>\n</tr>\n<tr>\n<td>L city</td>\n<td>string (required)</td>\n<td>City of the destination</td>\n</tr>\n<tr>\n<td>L province</td>\n<td>string (required)</td>\n<td>Province of the destination</td>\n</tr>\n<tr>\n<td>L country</td>\n<td>string (optional)</td>\n<td>Country of the destination</td>\n</tr>\n<tr>\n<td>L postal_code</td>\n<td>string (required)</td>\n<td>Postal Code of the destination</td>\n</tr>\n<tr>\n<td>L coordinate</td>\n<td>string (optional)</td>\n<td>Lat/Long of destination e.g: -6.138592083861461,106.83193810379001</td>\n</tr>\n<tr>\n<td><em>item_lines</em></td>\n<td>object[] (required)</td>\n<td>List of items in the order</td>\n</tr>\n<tr>\n<td>L variant_id</td>\n<td>string (required)</td>\n<td>Variant ID of the ordered item (Listing ID)</td>\n</tr>\n<tr>\n<td>L local_id</td>\n<td>string (required)</td>\n<td>Channel item line id of the ordered item</td>\n</tr>\n<tr>\n<td>L quantity</td>\n<td>integer (required)</td>\n<td>Ordered item quantity</td>\n</tr>\n<tr>\n<td>L sku</td>\n<td>string (required)</td>\n<td>SKU of ordered item variant</td>\n</tr>\n<tr>\n<td>L name</td>\n<td>string (required)</td>\n<td>Name of the item variant</td>\n</tr>\n<tr>\n<td>L price</td>\n<td>integer (required)</td>\n<td>Price of the item variant</td>\n</tr>\n<tr>\n<td>L sale_price</td>\n<td>integer (optional)</td>\n<td>Sale price of the item variant</td>\n</tr>\n<tr>\n<td>L voucher_code</td>\n<td>string (optional)</td>\n<td>Applied voucher code</td>\n</tr>\n<tr>\n<td>L voucher_seller</td>\n<td>integer (optional)</td>\n<td>Applied voucher amount</td>\n</tr>\n<tr>\n<td>L tax_price</td>\n<td>integer (optional)</td>\n<td>Tax amount of the ordered item</td>\n</tr>\n<tr>\n<td>L note</td>\n<td>string (optional)</td>\n<td>Notes for the ordered item</td>\n</tr>\n<tr>\n<td><em>payment</em></td>\n<td>object[] (required)</td>\n<td>Information of the order payment</td>\n</tr>\n<tr>\n<td>L status_payment</td>\n<td>integer (required)</td>\n<td></td>\n</tr>\n<tr>\n<td>Value</td>\n<td>Description</td>\n<td></td>\n</tr>\n<tr>\n<td>-------------</td>\n<td>------------------------</td>\n<td></td>\n</tr>\n<tr>\n<td>1</td>\n<td>Pending</td>\n<td></td>\n</tr>\n<tr>\n<td>2</td>\n<td>Paid but not verified</td>\n<td></td>\n</tr>\n<tr>\n<td>3</td>\n<td>Paid</td>\n<td></td>\n</tr>\n<tr>\n<td>4</td>\n<td>Cancelled</td>\n<td></td>\n</tr>\n<tr>\n<td>12</td>\n<td>Handled by your system</td>\n<td></td>\n</tr>\n<tr>\n<td>L payment_method</td>\n<td>string (optional)</td>\n<td>The method of payment</td>\n</tr>\n<tr>\n<td>L paid_at</td>\n<td>datetime (optional)</td>\n<td>Time when the payment done</td>\n</tr>\n<tr>\n<td>L verified_at</td>\n<td>datetime (optional)</td>\n<td>Time when the payment verification done</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","channel","{{channel_id}}","order","create"],"host":["integration","forstok","com"],"query":[],"variable":[]}},"response":[{"id":"2d8cbf43-25c7-4965-896c-6e650f6fab0e","name":"Multiwarehouse Order","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account_id\": 7457,\n    \"order\": {\n    \"local_id\":\"testingmwh1\",\n    \"invoice_number\": \"1/INV/14/IV/2021\",\n    \"ordered_at\":\"2023-02-14 11:49:18\",\n    \"shipping_price\": 9000,\n    \"shipping_provider\": \"Jalur Nugraha Ekakurir (JNE)\",\n    \"voucher_code\": \"\",\n    \"voucher_amount\": 0,\n    \"discount_reason\": \"\",\n    \"discount_amount\": 0,\n    \"disc_shipping_seller\": 12000,\n    \"tax_amount\": 828,\n    \"note\":\"isi note bebas disini\",\n    \"internal_note\":\"isi internal note bebas disini\",\n    \"warehouse_code\" : \"123\",  //you can also use \"warehouse_id\"\n   \"address\":{\n      \"name\":\"Amin Musaik\",\n      \"phone\":\"7777777777\",\n      \"email\":\"youremail@address.com\",\n      \"address_1\":\"JL. Cenderawasih, komplek rajawali, belakang kahyuna cafe, samping tower telkomselDKI jakarta, jakarta timurKelurahan : Halim perdana kusumaKecamatan : makasar\",\n      \"address_2\":\"\",\n      \"sub_district\": \"HALIM PERDANA KUSUMAH\",\n      \"district\": \"MAKASAR\",\n      \"city\":\"KOTA JAKARTA TIMUR\",\n      \"province\":\"DKI Jakarta\",\n      \"country\":\"Indonesia\",\n      \"postal_code\":\"13610\"\n   },\n   \"item_lines\":[\n      {\n         \"local_id\":\"singleitem1520\",\n         \"variant_id\":\"20406738\",\n         \"sku\":\"skusingleitem1520\",\n         \"name\":\"logitech-m590-red\",\n         \"price\":699000,\n         \"sale_price\":595000, // input \"sale_price\": null, if no sale_price\n         \"voucher_amount\": 104000, // input \"voucher_amount\": null, if no voucher_amount\n         \"quantity\":1,\n         \"note\":\"isi note bebas disini\",\n         \"internal_note\":\"isi internal note bebas disini\"\n      }\n   ],\n   \"payment\":{\n      \"status_payment\":1,\n      \"payment_method\": \"TRANSFER\"\n   }\n}\n}"},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/order/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Feb 2023 07:48:22 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"ETag","value":"W/\"9e96d804291dcfc8e0183264027b7895\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1df96c87-5116-448f-9bf8-988850d426d0"},{"key":"X-Runtime","value":"0.082931"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": {\n        \"local_id\": \"testingmwh1\",\n        \"id\": 129279302\n    }\n}"},{"id":"2a6819c5-a42f-4f5e-99de-16342b13c32b","name":"Create Order Success Sample","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account_id\": 6532,\n    \"order\": {\n    \"local_id\":\"4-abcdefg\",\n    \"invoice_number\": \"4/INV/16/IV/2021\",\n    \"ordered_at\":\"2021-04-16 09:45:18\",\n    \"shipping_price\": 9000,\n    \"shipping_provider\": \"Jalur Nugraha Ekakurir (JNE)\",\n    \"discount_reason\": \"\",\n    \"discount_amount\": 0,\n    \"rebate\": 828,\n   \"address\":{\n      \"name\":\"Amin Musaik\",\n      \"phone\":\"7777777777\",\n      \"address_1\":\"JL. Cenderawasih, komplek rajawali, belakang kahyuna cafe, samping tower telkomselDKI jakarta, jakarta timurKelurahan : Halim perdana kusumaKecamatan : makasar\",\n      \"address_2\":\"\",\n      \"sub_district\": \"HALIM PERDANA KUSUMAH\",\n      \"district\": \"MAKASAR\",\n      \"city\":\"KOTA JAKARTA TIMUR\",\n      \"province\":\"DKI Jakarta\",\n      \"country\":\"Indonesia\",\n      \"postal_code\":\"13610\"\n   },\n   \"item_lines\":[\n      {\n         \"local_id\":\"variant_local_id_01\",\n         \"variant_id\":\"15458168\",\n         \"sku\":\"logitech-m590-red\",\n         \"name\":\"logitech-m590-red\",\n         \"price\":699000,\n         \"sale_price\":595000,\n         \"voucher_seller\": 1000,\n         \"quantity\":1\n      },\n      {\n         \"local_id\":\"15406529\",\n         \"variant_id\":\"15406529\",\n         \"sku\":\"dora-s-3\",\n         \"name\":\"Baju Doraemon size S - S/Blue\",\n         \"price\":50000,\n         \"sale_price\":10000,\n         \"voucher_seller\": 1000,\n         \"quantity\":1\n      }\n   ],\n   \"payment\":{\n      \"status_payment\":1,\n      \"payment_method\": \"TRANSFER\"\n   }\n}\n}"},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/order/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 Apr 2021 02:45:17 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"62"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Etag","value":"W/\"af011b508c1688ac96c67e14cf8d533c\""},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"de802fd0-a555-4277-8f9a-3b8021f76959"},{"key":"X-Runtime","value":"0.055470"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": {\n        \"local_id\": \"4-abcdefg\",\n        \"id\": 105682437\n    }\n}"},{"id":"66167d79-478b-4d5c-b916-70fa6439031c","name":"Create Order sample 1","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account_id\": 5984,\n  \"order\": {\n    \"address\": {\n      \"address_1\": \"Jalan timur tenggara selatan barat daya 1 gang 2\",\n      \"address_2\": \"sebrang toko firman\",\n      \"city\": \"Jakarta Utara\",\n      \"country\": \"Indonesia\",\n      \"name\": \"Adi Perkasa\",\n      \"phone\": \"622622788\",\n      \"postal_code\": \"11250\",\n      \"province\": \"DKI Jakarta\"\n    },\n    \"item_lines\": [\n      {\n        \"local_id\": 23,\n        \"name\": \"ipad standing - Small\",\n        \"price\": 125000,\n        \"quantity\": 1,\n        \"sku\": \"123\",\n        \"variant_id\": 12226086\n      }\n    ],\n    \"local_id\": \"1000-001\",\n    \"ordered_at\": \"2020-10-13T06:11:20.000000Z\",\n    \"payment\": {\n      \"paid_at\": \"2020-10-13T06:11:20.000000Z\",\n      \"payment_method\": \"Virtual Bank\",\n      \"status_payment\": 1\n    },\n    \"shipping_price\": 9000,\n    \"shipping_provider\": \"Ongkos Kirim Ekonomis (OKE): 3-6 days after shipment\"\n  }\n}"},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/order/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 13 Oct 2020 08:56:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"60"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Etag","value":"W/\"731845fb019d309b5dc8502e197045dd\""},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"4be4878c-7d90-49c8-bd90-44505ae6a543"},{"key":"X-Runtime","value":"0.059010"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": {\n        \"local_id\": \"1000-001\",\n        \"id\": 99921569\n    }\n}"},{"id":"a8c804d3-9e44-4a97-902a-3ca543728f00","name":"Sample 2","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"account_id\": 6532,\n  \"order\": {\n   \"address\":{\n      \"address_1\":\"Jl. Gn. Sahari No.1, Ancol, Kec. Pademangan, Kota Jkt Utara, Daerah Khusus Ibukota Jakarta 14420\",\n      \"address_2\":\"\",\n      \"city\":\"Jakarta Utara\",\n      \"country\":\"Indonesia\",\n      \"name\":\"Sualeman Wirawan\",\n      \"phone\":\"7777777777\",\n      \"postal_code\":\"77777\",\n      \"province\":\"DKI Jakarta\",\n      \"coordinate\":\"-6.138549414586765, 106.83234579956027\"\n   },\n   \"item_lines\":[\n      {\n         \"variant_id\":15458168,\n         \"local_id\":\"variant_local_id_01\",\n         \"name\":\"Mouse Logitech m590 Multi Devices\",\n         \"price\":595000,\n         \"quantity\":1,\n         \"sku\":\"logitech-m590-red\"\n      }\n   ],\n   \"local_id\":\"20210408-001\",\n   \"ordered_at\":\"2021-04-08 07:18:05\",\n   \"payment\":{\n      \"status_payment\":1\n   },\n   \"shipping_price\":45000,\n   \"shipping_provider\":\"Sameday Delivery\"\n}\n}","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/order/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Apr 2021 07:22:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"65"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Etag","value":"W/\"1ad20ab17277a3d0ce5727d0cbe31738\""},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"450b0717-5104-4ab2-b879-64a051bc3baa"},{"key":"X-Runtime","value":"0.066702"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": {\n        \"local_id\": \"20210408-001\",\n        \"id\": 105427353\n    }\n}"},{"id":"9ddede13-a18d-4078-8306-57198a490504","name":"Sale Price","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"account_id\": 6532,\n    \"order\": {\n    \"local_id\":\"b40451d7-7968-434d-a2a1-e147fcb576db\",\n    \"invoice_number\": \"2096/INV/14/IV/2021\",\n    \"ordered_at\":\"2021-04-14 10:49:18\",\n    \"shipping_price\": 9000,\n    \"shipping_provider\": \"Jalur Nugraha Ekakurir (JNE)\",\n    \"voucher_code\": \"\",\n    \"voucher_amount\": 0,\n    \"discount_reason\": \"\",\n    \"discount_amount\": 0,\n    \"tax_amount\": 828,\n   \"address\":{\n      \"name\":\"Amin Musaik\",\n      \"phone\":\"7777777777\",\n      \"address_1\":\"JL. Cenderawasih, komplek rajawali, belakang kahyuna cafe, samping tower telkomselDKI jakarta, jakarta timurKelurahan : Halim perdana kusumaKecamatan : makasar\",\n      \"address_2\":\"\",\n      \"sub_district\": \"HALIM PERDANA KUSUMAH\",\n      \"district\": \"MAKASAR\",\n      \"city\":\"KOTA JAKARTA TIMUR\",\n      \"province\":\"DKI Jakarta\",\n      \"country\":\"Indonesia\",\n      \"postal_code\":\"13610\"\n   },\n   \"item_lines\":[\n      {\n         \"local_id\":\"variant_local_id_01\",\n         \"variant_id\":\"15458168\",\n         \"sku\":\"logitech-m590-red\",\n         \"name\":\"logitech-m590-red\",\n         \"price\":699000,\n         \"sale_price\":595000,\n         \"quantity\":1\n      },\n      {\n         \"local_id\":\"15406529\",\n         \"variant_id\":\"15406529\",\n         \"sku\":\"dora-s-3\",\n         \"name\":\"Baju Doraemon size S - S/Blue\",\n         \"price\":50000,\n         \"sale_price\":10000,\n         \"quantity\":1\n      }\n   ],\n   \"payment\":{\n      \"status_payment\":1,\n      \"payment_method\": \"TRANSFER\"\n   }\n}\n}"},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/order/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 14 Apr 2021 06:30:14 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"89"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Etag","value":"W/\"adfda6381af5853caa55c3047a2a1b18\""},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"1ff7a7b3-b3dd-4d58-88b1-76df9486cd7e"},{"key":"X-Runtime","value":"0.086574"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"data\": {\n        \"local_id\": \"b40451d7-7968-434d-a2a1-e147fcb576db\",\n        \"id\": 105627467\n    }\n}"}],"_postman_id":"63f5018c-cce1-451f-89ea-842051ae1629"},{"name":"Update Payment Status","id":"3c0c5c87-a470-452c-bb60-7f3327ac9407","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"account_id\" : 6532,\n\t\"id\" : 105135118,\n\t\"payment_status\" : 3,\n\t\"payment_description\" : \"Paid\",\n    \"payment_method\":\"Snap Bank Transfer\",\n    \"paid_at\" : \"2021-04-29T15:17:20.000+07:00\"\n}\n"},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/order/status_payment_update","description":"<p>Use this API to update Payment Status. You can choose either \"id\" as order id Forstok or \"local_id\" as order id Channel (Your system) to update Order.</p>\n<blockquote>\n<p>Payment Status Info</p>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>ID</th>\n<th>Status</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>3</td>\n<td>Paid</td>\n</tr>\n<tr>\n<td>4</td>\n<td>Cancelled</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p>Parameter request body</p>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>integer (required)</td>\n<td>Forstok Account identifier number</td>\n</tr>\n<tr>\n<td>id</td>\n<td>integer (required)</td>\n<td>Forstok Order ID</td>\n</tr>\n<tr>\n<td>local_id</td>\n<td>integer (optional)</td>\n<td>choose either id or local_id</td>\n</tr>\n<tr>\n<td>payment_status</td>\n<td>integer (required)</td>\n<td>select 1 id payment status</td>\n</tr>\n<tr>\n<td>payment_description</td>\n<td>string (required)</td>\n<td>Payment status description</td>\n</tr>\n<tr>\n<td>payment_method</td>\n<td>string (required)</td>\n<td>Payment method</td>\n</tr>\n<tr>\n<td>paid_at</td>\n<td>datetime (optional)</td>\n<td>paid at datetime</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","channel","{{channel_id}}","order","status_payment_update"],"host":["integration","forstok","com"],"query":[],"variable":[]}},"response":[{"id":"7c21c8cc-ddac-46e1-8285-f798aadf9424","name":"Paid Order","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"account_id\" : 5983,\n\t\"id\" : 100116048,\n\t\"local_id\" : \"1045023872-4\",\n\t\"payment_status\" : 3,\n    \"payment_method\":\"Snap Bank Transfer\",\n\t\"payment_description\" : \"Paid\",\n\t\"paid_at\" : \"2020-20-23T15:33:20.000+07:00\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/order/status_payment_update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 23 Oct 2020 10:58:44 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"57"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Etag","value":"W/\"3459a9ea598b1dd1d2ad2d8d394fdb9a\""},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"e9f32476-f879-4fcc-a628-1de43d336c03"},{"key":"X-Runtime","value":"0.033050"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"message\": \"Success Update Payment Order.\"\n}"},{"id":"3332eede-9638-4959-9df8-2c4958976c04","name":"Unpaid Orders","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"account_id\" : 6532,\n\t\"id\" : 108562006,\n\t\"payment_status\" : 4,\n\t\"payment_description\" : \"Cancelled\",\n    \"payment_method\":\"Card\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/order/status_payment_update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 21 Jun 2021 04:29:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"ETag","value":"W/\"3459a9ea598b1dd1d2ad2d8d394fdb9a\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"73e99850-0f3a-47d0-a661-778c1c461445"},{"key":"X-Runtime","value":"0.078693"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"message\": \"Success Update Payment Order.\"\n}"}],"_postman_id":"3c0c5c87-a470-452c-bb60-7f3327ac9407"},{"name":"Update Fulfillment Status","id":"98d1bfca-28f8-4cd0-8c73-b2f64be72dd2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"account_id\" : 6533,\r\n\t\"id\" : 105803861,\r\n    \"fulfillment_status_id\": 4,\r\n    \"courier\":\"Jalur Nugraha Ekakurir (JNE)\",\r\n    \"awb\":\"3456789078\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/order/status_fulfillment_update","description":"<p>Use this API to update Fulfillment Status. This API only works for Orders with status Open or Payment status = Paid.</p>\n<blockquote>\n<p>Fulfillment Status ID </p>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>ID</th>\n<th>Status</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>4</td>\n<td>Ready to Ship</td>\n</tr>\n<tr>\n<td>1</td>\n<td>Shipped</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Delivered</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Cancelled</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p>Parameter request body </p>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_id</td>\n<td>integer (required)</td>\n<td>Forstok Account identifier number</td>\n</tr>\n<tr>\n<td>id</td>\n<td>integer (required)</td>\n<td>Forstok Order ID</td>\n</tr>\n<tr>\n<td>fulfillment_status_id</td>\n<td>integer (required)</td>\n<td>choose from fulfillment status id table</td>\n</tr>\n<tr>\n<td>courier</td>\n<td>string (required)</td>\n<td>tracking company/ 3pl logisctic</td>\n</tr>\n<tr>\n<td>awb</td>\n<td>string (required)</td>\n<td>tracking number</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","channel","{{channel_id}}","order","status_fulfillment_update"],"host":["integration","forstok","com"],"query":[],"variable":[]}},"response":[{"id":"ca1cd284-c7c6-46ff-833c-cb73839949f7","name":"Success Update All","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"account_id\" : 6533,\r\n\t\"id\" : 105803861,\r\n    \"fulfillment_status_id\": 4, //2=Delivered, 4=Ready to Ship\r\n    \"courier\":\"Jalur Nugraha Ekakurir (JNE)\",\r\n    \"awb\":\"3456789078\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/order/status_fulfillment_update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 22 Apr 2021 03:16:08 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"13d43232-d996-4a12-b9e2-bf2bd94eebac"},{"key":"X-Runtime","value":"3.262449"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"message\": \"Success Update Fulfillment status.\"\n}"}],"_postman_id":"98d1bfca-28f8-4cd0-8c73-b2f64be72dd2"}],"id":"6db2bb1c-e330-4544-8683-8fd966082863","description":"<p>Forstok Master Courier: <a href=\"https://docs.google.com/spreadsheets/d/1rbTrvEd2yc91EEBMz_jA4G5DDc84jZ0zcie5Hx6Sv64/edit?usp=sharing\">https://docs.google.com/spreadsheets/d/1rbTrvEd2yc91EEBMz_jA4G5DDc84jZ0zcie5Hx6Sv64/edit?usp=sharing</a></p>\n","_postman_id":"6db2bb1c-e330-4544-8683-8fd966082863","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","name":"Forstok API Channel","type":"collection"}}},{"name":"Product","item":[{"name":"Create Product Listing","id":"f84a3132-4908-49d2-b0d1-0d921c5a1ca4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"account_id\": 7457,\r\n    \"item\": {\r\n        \"local_item_id\":\"singleitem15\", //id sistem external di level item\r\n        \"name\": \"contoh single item mouse15\",\r\n        \"description\": \"Deskripsi single item contoh\",\r\n        \"weight\": 800,\r\n        \"length\": 30,\r\n        \"height\": 20,\r\n        \"width\": 10,\r\n        \"brand_name\": \"Logitech\",\r\n        \"category_name\" : \"others\", //replace it with \"category_name\" : \"others\", (if there is no forstok_category_id)\r\n        \"image_urls\": [\r\n            \"https://images.tokopedia.net/img/cache/900/product-1/2018/4/30/8241292/8241292_aa91808a-c2f5-4d94-a07e-46c72613a785_570_513.jpg\",\r\n            \"https://images.tokopedia.net/img/cache/900/product-1/2018/6/11/8241292/8241292_eb619f5e-155e-4d75-aa39-460896854913_800_687.png\"\r\n                ],\r\n        \"variants\": [\r\n            {   \r\n                \"local_id\":\"singleitem15\", //id sistem external di level variants\r\n                \"sku\": \"skusingleitem15\",\r\n                \"quantity\": 12,\r\n                \"status\": \"active\",\r\n                \"location_id\": \"B01-01\",\r\n                \"barcode\": \"skusingleitem\",\r\n                \"price\": 699000,\r\n                \"sale_price\": 595000,\r\n                \"sale_start_at\": \"\",\r\n                \"sale_end_at\": \"\",\r\n                \"index_images\":[0,1]\r\n            }\r\n        ]\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/internal/v1_items/api/v2/channel/{{channel_id}}/products","description":"<p>Use this API to Create Product Listing.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","name":"Forstok API Channel","type":"collection"}},"urlObject":{"protocol":"https","path":["internal","v1_items","api","v2","channel","{{channel_id}}","products"],"host":["integration","forstok","com"],"query":[],"variable":[]}},"response":[{"id":"834fb27f-32c4-4950-a437-768671a6ec26","name":"Multivariant Example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"account_id\": 3558,\r\n    \"item\": {\r\n        \"local_item_id\":\"item_local_id_01\", //id sistem external di level item\r\n        \"name\": \"02-Mouse Logitech m590 Multi Devices\",\r\n        \"description\": \"Mouse Logitech m590 Deskripsi\",\r\n        \"weight\": 800,\r\n        \"length\": 30,\r\n        \"height\": 20,\r\n        \"width\": 10,\r\n        \"brand_name\": \"Logitech\",\r\n        \"forstok_category_id\": \"6766\",//or using \"category_name\" : \"others\", (if there is no forstok_category_id)\r\n         \"image_urls\": [\r\n                    \"https://images.tokopedia.net/img/cache/900/product-1/2018/4/30/8241292/8241292_aa91808a-c2f5-4d94-a07e-46c72613a785_570_513.jpg\",\r\n                    \"https://images.tokopedia.net/img/cache/900/product-1/2018/6/11/8241292/8241292_eb619f5e-155e-4d75-aa39-460896854913_800_687.png\"\r\n                ],\r\n        \"variants\": [\r\n            {   \r\n                \"local_id\":\"variant_local_id_01\", //id sistem external di level variants\r\n                \"sku\": \"02-logitech-m590-red\",\r\n                \"options\": [\r\n                    {\r\n                        \"color\": \"Red\"\r\n                    }\r\n                ],\r\n                \"quantity\": 12,\r\n                \"status\": \"active\",\r\n                \"location_id\": \"B01-01\",\r\n                \"barcode\": \"m590-red\",\r\n                \"price\": 699000,\r\n                \"sale_price\": 595000,\r\n                \"sale_start_at\": \"\",\r\n                \"sale_end_at\": \"\",\r\n                \"index_images\":[0]\r\n            },\r\n            {   \r\n                \"local_id\":\"variant_local_id_02\", //id sistem external di level variants         \r\n                \"sku\": \"02-logitech-m590-grey\",\r\n                \"options\": [\r\n                    {\r\n                        \"color\": \"Grey\"\r\n                    }\r\n                ],\r\n                \"quantity\": 10,\r\n                \"status\": \"active\",\r\n                \"location_id\": \"B01-02\",\r\n                \"barcode\": \"m590-grey\",\r\n                \"price\": 699000,\r\n                \"sale_price\": 595000,\r\n                \"sale_start_at\": \"\",\r\n                \"sale_end_at\": \"\",\r\n                 \"index_images\":[1]\r\n            }\r\n        ]\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/internal/v1_items/api/v2/channel/{{channel_id}}/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Apr 2021 06:20:31 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"5fef111d-9b36-48f1-a4c0-4e62221e9855"},{"key":"X-Runtime","value":"2.833630"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"data\": {\n        \"id\": 11681048,\n        \"local_item_id\":\"item_local_id_01\",\n        \"account_id\": 6532,\n        \"name\": \"Mouse Logitech m590 Multi Devices\",\n        \"description\": \"Mouse Logitech m590 Deskripsi\",\n        \"weight\": 800,\n        \"length\": 30,\n        \"width\": 10,\n        \"height\": 20,\n        \"brand_name\": \"Logitech\",\n        \"forstok_category_id\": 6766,\n        \"forstok_category_name\": \"XL\",\n        \"image_urls\": [\n            \"https://images.tokopedia.net/img/cache/900/product-1/2018/4/30/8241292/8241292_aa91808a-c2f5-4d94-a07e-46c72613a785_570_513.jpg\",\n            \"https://images.tokopedia.net/img/cache/900/product-1/2018/6/11/8241292/8241292_eb619f5e-155e-4d75-aa39-460896854913_800_687.png\"\n                ],\n        \"variants\": [\n            {\n                \"id\": 15442676,\n                \"local_id\":\"variant_local_id_01\",\n                \"sku\": \"logitech-m590-red\",\n                \"options\": [\n                    {\n                        \"color\": \"Red\"\n                    }\n                ],\n                \"quantity\": 12,\n                \"status\": \"active\",\n                \"location_id\": \"B01-01\",\n                \"barcode\": \"m590-red\",\n                \"price\": 699000,\n                \"sale_price\": 595000,\n                \"sale_start_at\": \"\",\n                \"sale_end_at\": \"\",\n                \"index_images\":[0],\n                \"created_at\": \"2021-04-06T12:48:32.000+07:00\",\n                \"updated_at\": \"2021-04-06T12:48:32.000+07:00\"\n            },\n            {\n                \"id\": 15442677,\n                \"local_id\":\"variant_local_id_02\",\n                \"sku\": \"logitech-m590-grey\",\n                \"options\": [\n                        {\n                            \"color\": \"Grey\"\n                        }\n                    ],\n                \"quantity\": 10,\n                \"status\": \"active\",\n                \"location_id\": \"B01-02\",\n                \"barcode\": \"m590-grey\",\n                \"price\": 699000,\n                \"sale_price\": 595000,\n                \"sale_start_at\": \"\",\n                \"sale_end_at\": \"\",\n                \"index_images\":[1],\n                \"created_at\": \"2021-04-06T12:48:32.000+07:00\",\n                \"updated_at\": \"2021-04-06T12:48:32.000+07:00\"\n            }\n        ]\n    }\n}"},{"id":"04d2f1de-c839-48db-994e-4dcab391e34e","name":"Single variant Example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"account_id\": 7457,\r\n    \"item\": {\r\n        \"local_item_id\":\"singleitem15\", //id sistem external di level item\r\n        \"name\": \"contoh single item mouse15\",\r\n        \"description\": \"Deskripsi single item contoh\",\r\n        \"weight\": 800,\r\n        \"length\": 30,\r\n        \"height\": 20,\r\n        \"width\": 10,\r\n        \"brand_name\": \"Logitech\",\r\n        \"category_name\" : \"others\", //replace it with \"category_name\" : \"others\", (if there is no forstok_category_id)\r\n        \"image_urls\": [\r\n            \"https://images.tokopedia.net/img/cache/900/product-1/2018/4/30/8241292/8241292_aa91808a-c2f5-4d94-a07e-46c72613a785_570_513.jpg\",\r\n            \"https://images.tokopedia.net/img/cache/900/product-1/2018/6/11/8241292/8241292_eb619f5e-155e-4d75-aa39-460896854913_800_687.png\"\r\n                ],\r\n        \"variants\": [\r\n            {   \r\n                \"local_id\":\"singleitem15\", //id sistem external di level variants\r\n                \"sku\": \"skusingleitem15\",\r\n                \"quantity\": 12,\r\n                \"status\": \"active\",\r\n                \"location_id\": \"B01-01\",\r\n                \"barcode\": \"skusingleitem\",\r\n                \"price\": 699000,\r\n                \"sale_price\": 595000,\r\n                \"sale_start_at\": \"\",\r\n                \"sale_end_at\": \"\",\r\n                \"index_images\":[0,1]\r\n            }\r\n        ]\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/internal/v1_items/api/v2/channel/{{channel_id}}/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 05 Oct 2022 07:36:49 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"ETag","value":"W/\"88982e1d290850532199273a800574cd\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5145f9b1-3339-45b2-b9ba-a369d0158841"},{"key":"X-Runtime","value":"4.777641"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"data\": {\n        \"id\": 19360782,\n        \"local_id\": \"singleitem15\",\n        \"account_id\": 7457,\n        \"name\": \"contoh single item mouse15\",\n        \"description\": \"Deskripsi single item contoh\",\n        \"weight\": 800,\n        \"length\": 30,\n        \"width\": 10,\n        \"height\": 20,\n        \"forstok_category_id\": null,\n        \"forstok_category_name\": \"others\",\n        \"brand_name\": \"Logitech\",\n        \"image_urls\": [\n            \"https://d3ndwuuxpr6t02.cloudfront.net/system/item/images/images/143/540/603/xlarge/13747bf3823f15f1a2a44dd360eff156.jpg?1664955404\",\n            \"https://d3ndwuuxpr6t02.cloudfront.net/system/item/images/images/143/540/604/xlarge/c16a5c5ac02c0a92f9763478566f8d47.jpg?1664955406\"\n        ],\n        \"variants\": [\n            {\n                \"id\": 19442585,\n                \"sku\": \"skusingleitem15\",\n                \"local_id\": \"singleitem15\",\n                \"barcode\": \"skusingleitem\",\n                \"location_id\": \"B01-01\",\n                \"options\": [],\n                \"status\": \"active\",\n                \"index_images\": [\n                    0,\n                    1\n                ],\n                \"created_at\": \"2022-10-05T14:36:49.000+07:00\",\n                \"updated_at\": \"2022-10-05T14:36:49.000+07:00\",\n                \"price\": 699000,\n                \"sale_price\": 595000,\n                \"sale_start_at\": null,\n                \"sale_end_at\": null,\n                \"quantity\": 12\n            }\n        ]\n    }\n}"}],"_postman_id":"f84a3132-4908-49d2-b0d1-0d921c5a1ca4"},{"name":"Update Product Listing","id":"b9bf37fb-375e-4e8d-9374-096842efad07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n       \"account_id\": 6532,\r\n        \"item\": {\r\n            \"local_item_id\":\"item_local_id_01\",\r\n            \"name\": \"02-Mouse Logitech m590 Multi Devices\",\r\n            \"description\": \"Mouse Logitech m590 Deskripsi\",\r\n            \"weight\": 800,\r\n            \"length\": 30,\r\n            \"height\": 20,\r\n            \"width\": 10,\r\n            \"brand_name\": \"Logitech\",\r\n            \"image_urls\": [\r\n                    \"https://images.tokopedia.net/img/cache/900/product-1/2018/4/30/8241292/8241292_aa91808a-c2f5-4d94-a07e-46c72613a785_570_513.jpg\",\r\n                    \"https://images.tokopedia.net/img/cache/900/product-1/2018/6/11/8241292/8241292_eb619f5e-155e-4d75-aa39-460896854913_800_687.png\"\r\n            ],\r\n             \"variants\": [\r\n                {\r\n                \"local_id\":\"variant_local_id_01\",\r\n                \"location_id\": \"Z01-02\",\r\n                \"barcode\": \"m590-red-000\",\r\n                \"index_images\":[1]\r\n                },\r\n                {\r\n                \"local_id\":\"variant_local_id_02\",\r\n                \"location_id\": \"Z01-02\",\r\n                \"barcode\": \"m590-grey-000\",\r\n                \"index_images\":[0]\r\n                }\r\n             ]\r\n        }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/internal/v1_items/api/v2/channel/{{channel_id}}/products_update","description":"<p>Notes: Images url's need to be real and accessible.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","name":"Forstok API Channel","type":"collection"}},"urlObject":{"protocol":"https","path":["internal","v1_items","api","v2","channel","{{channel_id}}","products_update"],"host":["integration","forstok","com"],"query":[],"variable":[]}},"response":[{"id":"582cca6a-b14b-4abf-86b8-9b714b83ad63","name":"Update Status Active/Inactive by LocalId","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"account_id\": 6532,\r\n        \"item\": {\r\n            \"local_item_id\":\"item_local_id_01\",\r\n             \"variants\": [\r\n                {\r\n                 \"local_id\":\"variant_local_id_01\",\r\n                 \"status\": \"inactive\"\r\n                }\r\n             ]\r\n        }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/internal/v1_items/api/v2/channel/{{channel_id}}/products_update"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"Status\": \"Success\",\n       \"data\": {\n        \"id\": 11681048,\n        \"account_id\": 6532,\n        \"name\": \"Mouse Logitech m590 Multi Devices\",\n        \"description\": \"Mouse Logitech m590 Deskripsi\",\n        \"forstok_category_id\": 6766,\n        \"forstok_category_name\": \"XL\",\n        \"brand_name\": \"Logitech\",\n        \"variants\": [\n            {\n                \"id\": 15442676,\n                 \"local_id\":\"variant_local_id_01\",\n                \"account_id\": 6532,\n                \"sku\": \"logitech-m590-red\",\n                \"name\": \"Mouse Logitech m590 Multi Devices\",\n                \"barcode\": null,\n                \"options\": [\n                    {\n                        \"color\": \"Red\"\n                    }\n                ],\n                \"status\": \"inactive\",\n                \"weight\": 800,\n                \"length\": 30,\n                \"width\": 10,\n                \"height\": 20,\n                \"img_urls\": [\n                    \"https://d3ndwuuxpr6t02.cloudfront.net/system/item/images/images/090/110/463/xlarge/13747bf3823f15f1a2a44dd360eff156.jpg?1617688110\"\n                ],\n                \"description\": \"Red-Mouse Logitech m590 Deskripsi\",\n                \"created_at\": \"2021-04-06T12:48:32.000+07:00\",\n                \"updated_at\": \"2021-04-06T12:48:32.000+07:00\",\n                \"price\": 699000,\n                \"sale_price\": 595000,\n                \"sale_start_at\": null,\n                \"sale_end_at\": null,\n                \"quantity\": 12\n            },\n            {\n                \"id\": 15442677,\n                 \"local_id\":\"variant_local_id_02\",\n                \"account_id\": 6532,\n                \"sku\": \"logitech-m590-grey\",\n                \"name\": \"Mouse Logitech m590 Multi Devices\",\n                \"barcode\": null,\n                \"options\": [\n                    {\n                        \"color\": \"Grey\"\n                    }\n                ],\n                \"status\": \"active\",\n                \"weight\": 800,\n                \"length\": 30,\n                \"width\": 10,\n                \"height\": 20,\n                \"img_urls\": [\n                    \"https://d3ndwuuxpr6t02.cloudfront.net/system/item/images/images/090/110/464/xlarge/c16a5c5ac02c0a92f9763478566f8d47.jpg?1617688112\"\n                ],\n                \"description\": \"Grey-Mouse Logitech m590 Deskripsi\",\n                \"created_at\": \"2021-04-06T12:48:34.000+07:00\",\n                \"updated_at\": \"2021-04-06T12:48:34.000+07:00\",\n                \"price\": 699000,\n                \"sale_price\": 595000,\n                \"sale_start_at\": null,\n                \"sale_end_at\": null,\n                \"quantity\": 10\n            }\n        ]\n    }\n}\n}"},{"id":"d5045780-2a40-4d25-9c91-a84bed5610a4","name":"Update Price","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"account_id\": 6532,\r\n        \"item\": {\r\n            \"local_item_id\":\"item_local_id_01\",\r\n             \"variants\": [\r\n                {\r\n                    \"local_id\":\"variant_local_id_01\",\r\n                    \"price\": 795000,\r\n                    \"sale_price\": 600000,\r\n                    \"sale_start_at\":\"2021-04-01T17:00:00.000+07:00\",\r\n                    \"sale_end_at\":\"2021-04-30T16:59:59.000+07:00\"\r\n                },\r\n                {\r\n                    \"local_id\":\"variant_local_id_02\",\r\n                    \"price\": 795000,\r\n                    \"sale_price\": 600000,\r\n                    \"sale_start_at\":\"2021-04-01T17:00:00.000+07:00\",\r\n                    \"sale_end_at\":\"2021-04-30T16:59:59.000+07:00\"\r\n                }\r\n             ]\r\n        }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/internal/v1_items/api/v2/channel/{{channel_id}}/products_update"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Tue, 06 Apr 2021 06:51:33 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"74e6ebd7-bdd8-4691-a056-e95bd3df408f"},{"key":"X-Runtime","value":"0.008570"}],"cookie":[],"responseTime":null,"body":null},{"id":"46b2662b-ccb6-4b70-a275-96406b80d100","name":"Update Attributes lain","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"account_id\": 6532,\r\n        \"item\": {\r\n            \"local_item_id\":\"item_local_id_01\",\r\n            \"name\": \"02-Mouse Logitech m590 Multi Devices\",\r\n            \"description\": \"Mouse Logitech m590 Deskripsi\",\r\n            \"weight\": 800,\r\n            \"length\": 30,\r\n            \"height\": 20,\r\n            \"width\": 10,\r\n            \"brand_name\": \"Logitech\",\r\n            \"image_urls\": [\r\n                    \"https://images.tokopedia.net/img/cache/900/product-1/2018/4/30/8241292/8241292_aa91808a-c2f5-4d94-a07e-46c72613a785_570_513.jpg\",\r\n                    \"https://images.tokopedia.net/img/cache/900/product-1/2018/6/11/8241292/8241292_eb619f5e-155e-4d75-aa39-460896854913_800_687.png\"\r\n            ],\r\n             \"variants\": [\r\n                {\r\n                \"local_id\":\"variant_local_id_01\",\r\n                \"location_id\": \"Z01-02\",\r\n                \"barcode\": \"m590-red-000\",\r\n                \"index_images\":[1]\r\n                },\r\n                {\r\n                \"local_id\":\"variant_local_id_02\",\r\n                \"location_id\": \"Z01-02\",\r\n                \"barcode\": \"m590-grey-000\",\r\n                \"index_images\":[0]\r\n                }\r\n             ]\r\n        }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/internal/v1_items/api/v2/channel/{{channel_id}}/products_update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Apr 2021 06:55:06 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"c5ab8119-cd14-46ba-b60d-3a3dc644e64c"},{"key":"X-Runtime","value":"0.007872"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"data\": {\n        \"id\": 11681048,\n        \"local_item_id\": \"item_local_id_01\",\n        \"account_id\": 6532,\n        \"name\": \"Mouse Logitech m590 Multi Devices\",\n        \"description\": \"Mouse Logitech m590 Deskripsi\",\n        \"weight\": 800,\n        \"length\": 30,\n        \"width\": 10,\n        \"height\": 20,\n        \"brand_name\": \"Logitech\",\n        \"forstok_category_id\": 6766,\n        \"forstok_category_name\": \"XL\",\n        \"image_urls\": [\n            \"https://images.tokopedia.net/img/cache/900/product-1/2018/4/30/8241292/8241292_aa91808a-c2f5-4d94-a07e-46c72613a785_570_513.jpg\",\n            \"https://images.tokopedia.net/img/cache/900/product-1/2018/6/11/8241292/8241292_eb619f5e-155e-4d75-aa39-460896854913_800_687.png\"\n        ],\n        \"variants\": [\n            {\n                \"id\": 15442676,\n                \"local_id\": \"variant_local_id_01\",\n                \"sku\": \"logitech-m590-red\",\n                \"options\": [\n                    {\n                        \"color\": \"Red\"\n                    }\n                ],\n                \"quantity\": 12,\n                \"status\": \"active\",\n                \"location_id\": \"Z01-02\",\n                \"barcode\": \"m590-red-000\",\n                \"price\": 699000,\n                \"sale_price\": 595000,\n                \"sale_start_at\": \"\",\n                \"sale_end_at\": \"\",\n                \"image_urls\": [\n                    \"https://images.tokopedia.net/img/cache/900/product-1/2018/4/30/8241292/8241292_aa91808a-c2f5-4d94-a07e-46c72613a785_570_513.jpg\"\n                ],\n                \"index_images\": [\n                    1\n                ],\n                \"created_at\": \"2021-04-06T12:48:32.000+07:00\",\n                \"updated_at\": \"2021-04-06T12:48:32.000+07:00\"\n            },\n            {\n                \"id\": 15442677,\n                \"local_id\": \"variant_local_id_02\",\n                \"sku\": \"logitech-m590-grey\",\n                \"options\": [\n                    {\n                        \"color\": \"Grey\"\n                    }\n                ],\n                \"quantity\": 10,\n                \"status\": \"active\",\n                \"location_id\": \"Z01-02\",\n                \"barcode\": \"m590-grey-000\",\n                \"price\": 699000,\n                \"sale_price\": 595000,\n                \"sale_start_at\": \"\",\n                \"sale_end_at\": \"\",\n                \"image_urls\": [\n                    \"https://images.tokopedia.net/img/cache/900/product-1/2018/6/11/8241292/8241292_eb619f5e-155e-4d75-aa39-460896854913_800_687.png\"\n                ],\n                \"index_images\": [\n                    0\n                ],\n                \"created_at\": \"2021-04-06T12:48:32.000+07:00\",\n                \"updated_at\": \"2021-04-06T12:48:32.000+07:00\"\n            }\n        ]\n    }\n}"},{"id":"4aaa074a-4dde-467f-aff8-71490402c2be","name":"Update Description","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"account_id\": 6532,\r\n        \"item\": {\r\n            \"local_item_id\":\"item_local_id_01\",\r\n                    \"description\": \"Garansi Resmi 1 tahun Logitech Indonesia (kemasan harap disimpan untuk claim)Logitech memperkenalkan mouse wireless M590. Debut perdana mouse ini disokong teknologi silent mode. Sedangkan untuk konektivitasnya sudah didukung koneksi nirkabel 2.4 Ghz. Kabarnya jangkauan area mouse ini mencapai jarak 10 m*. Selain memiliki cakupan area yang luas, untuk meningkatkan efisiensi waktu kerja maka mouse ini dapat digunakan pada beberapa perangkat komputer. Inovasi baru yang coba dikenalkan Logitech terbilang cukup briliant, bahkan dengan ini harusnya produktivitas pekerjaan akan meningkat. Selain itu, Logitech M590 memiliki beberapa kontrol tambahan yang dapat dikustomisasi. Dan hebatnya sekarang ini daya tahan baterai akan lebih awet, karena Logitech telah menyediakan mode sleep secara otomatis. SPESIFIKASI  Windows | Mac | Chrome® OS | Linux® | iPadOs | Works with Surface™ ISI KEMASAN - M590 Silent Wireless mouse - Unifying receiver - 1 AA battery (pre-installed)- Dokumentasi pengguna\",\r\n        \"weight\": 1000,\r\n        \"length\": 31,\r\n        \"height\": 21,\r\n        \"width\": 11,\r\n             \"variants\": [\r\n                {\r\n                 \"local_id\":\"variant_local_id_01\",\r\n                 \"status\": \"inactive\"\r\n                },\r\n                                {\r\n                 \"local_id\":\"variant_local_id_02\",\r\n                 \"status\": \"inactive\"\r\n                }\r\n             ]\r\n        }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://integration.forstok.com/internal/v1_items/api/v2/channel/{{channel_id}}/products_update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Apr 2021 03:12:08 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Etag","value":"W/\"6205024e5d20fed17280407708113a82\""},{"key":"Vary","value":"Origin"},{"key":"X-Request-Id","value":"4d0b7a6d-a653-4246-801c-b3b1861c82b1"},{"key":"X-Runtime","value":"0.278189"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"data\": {\n        \"id\": 11685725,\n        \"local_id\": \"item_local_id_01\",\n        \"account_id\": 6532,\n        \"name\": \"Mouse Logitech m590 Multi Devices\",\n        \"description\": \"Garansi Resmi 1 tahun Logitech Indonesia (kemasan harap disimpan untuk claim)Logitech memperkenalkan mouse wireless M590. Debut perdana mouse ini disokong teknologi silent mode. Sedangkan untuk konektivitasnya sudah didukung koneksi nirkabel 2.4 Ghz. Kabarnya jangkauan area mouse ini mencapai jarak 10 m*. Selain memiliki cakupan area yang luas, untuk meningkatkan efisiensi waktu kerja maka mouse ini dapat digunakan pada beberapa perangkat komputer. Inovasi baru yang coba dikenalkan Logitech terbilang cukup briliant, bahkan dengan ini harusnya produktivitas pekerjaan akan meningkat. Selain itu, Logitech M590 memiliki beberapa kontrol tambahan yang dapat dikustomisasi. Dan hebatnya sekarang ini daya tahan baterai akan lebih awet, karena Logitech telah menyediakan mode sleep secara otomatis. SPESIFIKASI  Windows | Mac | Chrome® OS | Linux® | iPadOs | Works with Surface™ ISI KEMASAN - M590 Silent Wireless mouse - Unifying receiver - 1 AA battery (pre-installed)- Dokumentasi pengguna\",\n        \"weight\": 1000,\n        \"length\": 31,\n        \"width\": 11,\n        \"height\": 21,\n        \"forstok_category_id\": 6766,\n        \"forstok_category_name\": \"XL\",\n        \"brand_name\": \"Logitech\",\n        \"image_urls\": [\n            \"https://d3ndwuuxpr6t02.cloudfront.net/system/item/images/images/090/309/251/xlarge/13747bf3823f15f1a2a44dd360eff156.jpg?1617851162\",\n            \"https://d3ndwuuxpr6t02.cloudfront.net/system/item/images/images/090/309/264/xlarge/c16a5c5ac02c0a92f9763478566f8d47.jpg?1617851164\"\n        ],\n        \"variants\": [\n            {\n                \"id\": 15458168,\n                \"sku\": \"logitech-m590-red\",\n                \"local_id\": \"variant_local_id_01\",\n                \"barcode\": \"m590-red\",\n                \"location_id\": \"B01-01\",\n                \"options\": [\n                    {\n                        \"color\": \"Red\"\n                    }\n                ],\n                \"status\": \"inactive\",\n                \"index_images\": [\n                    0\n                ],\n                \"created_at\": \"2021-04-08T10:06:12.000+07:00\",\n                \"updated_at\": \"2021-04-08T10:12:08.000+07:00\",\n                \"price\": 699000,\n                \"sale_price\": 595000,\n                \"sale_start_at\": null,\n                \"sale_end_at\": null,\n                \"quantity\": 12\n            },\n            {\n                \"id\": 15458170,\n                \"sku\": \"logitech-m590-grey\",\n                \"local_id\": \"variant_local_id_02\",\n                \"barcode\": \"m590-grey\",\n                \"location_id\": \"B01-02\",\n                \"options\": [\n                    {\n                        \"color\": \"Grey\"\n                    }\n                ],\n                \"status\": \"inactive\",\n                \"index_images\": [\n                    1\n                ],\n                \"created_at\": \"2021-04-08T10:06:12.000+07:00\",\n                \"updated_at\": \"2021-04-08T10:12:08.000+07:00\",\n                \"price\": 699000,\n                \"sale_price\": 595000,\n                \"sale_start_at\": null,\n                \"sale_end_at\": null,\n                \"quantity\": 10\n            }\n        ]\n    }\n}"}],"_postman_id":"b9bf37fb-375e-4e8d-9374-096842efad07"},{"name":"Update QC Status","id":"89cbbedf-448a-4746-b048-c56012f0afa6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"products\": [\r\n        {\r\n            \"product_id\": \"14937504\",\r\n            \"live_url\": \"https://www.thefthing.com/product/allglows-protea-shake-lip-pigment-red-139347\",\r\n            \"status\": \"1\",\r\n            \"response_note\": \"Product Enabled\"\r\n        }\r\n    ]\r\n}"},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/product/update_qc_status","description":"<p>Use this API to create a product in Forstok system.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>product_id</td>\n<td>integer (required)</td>\n<td>Item ID Forstok</td>\n</tr>\n<tr>\n<td>Status</td>\n<td>integer (required)</td>\n<td>value : 0/1, 1 means live</td>\n</tr>\n<tr>\n<td>live_url</td>\n<td>string (optional)</td>\n<td>Url live link to the product in your website</td>\n</tr>\n<tr>\n<td>Response_note</td>\n<td>string (optional)</td>\n<td>Only fill this field when status is 0 means not live yet</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v2","channel","{{channel_id}}","product","update_qc_status"],"host":["integration","forstok","com"],"query":[],"variable":[]}},"response":[{"id":"e9bd2596-6ab3-4888-b2cd-6bbfb5feb0ee","name":"Success and Failed in one request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"products\": [\r\n        {\r\n            \"product_id\": \"16524253\", //success and will still be sent to forstok\r\n            \"status\": \"1\"\r\n        },\r\n        {\r\n            \"product_id\": \"5897240\", //failed (wrong product_id) and will not be sent to forstok\r\n            \"status\": \"1\"\r\n        }\r\n    ]\r\n}"},"url":"https://integration.forstok.com/api/v2/channel/{{channel_id}}/product/update_qc_status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 08 Jun 2022 08:39:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"ETag","value":"W/\"74bb7f63721e480dae73d96f328ee4ac\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"dceb6574-c51d-4db4-a267-39348c6dc22f"},{"key":"X-Runtime","value":"0.093638"},{"key":"Vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Error\",\n    \"message\": \"\",\n    \"failed_data\": [\n        {\n            \"product_id\": \"5897240\",\n            \"status\": \"1\"\n        }\n    ]\n}"}],"_postman_id":"89cbbedf-448a-4746-b048-c56012f0afa6"}],"id":"aec53142-8e8e-4894-ac85-7f182d658e9c","_postman_id":"aec53142-8e8e-4894-ac85-7f182d658e9c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","id":"a5d12ee3-4158-4a7e-b91d-7d42fc443cc2","name":"Forstok API Channel","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"cad9f01d-c2e4-4948-9495-8f582428bdd5","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"6e21d679-5f2e-4485-aa4a-48d5419ac5c4","type":"text/javascript","requests":{},"exec":[""]}}]}