Need to update inventory quantity of multiple items on Amazon Seller Central.
Custom flow is used to do this
Suitescript Hook is used to fetch saved search data from the Netsuite side
It is possible to update the inventory of a single item, but multiple-item updation is not happening.
Details provided are:
API TYPE = selling partner API
HTTP method = POST
relative URI = /feeds/2021-06-30/documents
Override request media type= XML
Feed type= POST_INVENTORY_AVAILABILITY_DATA
HTTP request body (handlebars template)
<?xml version="1.0" encoding="utf-8" ?>
http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
1.01
xxxxxx
xxxxxx
Inventory
{{#each data}}
{{add @index 1}}
Update
{{this.[Stock Description]}}
{{this.[Qty available]}}
FulfillmentNetwork
{{/each}}
And the preview to evaluate your handlebars template (according to the HTTP request body)
<?xml version="1.0" encoding="utf-8" ?>
http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
1.01
xxxxx
xxxxxxxx
Inventory
1
Update
M5
108
FulfillmentNetwork