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
I have provided data in mapping section mapper1.0
HTTP request body (handlebars template)
<?xml version='1.0' encoding='UTF-8'?>
application/json>
1.01
xxxxxxx
xxxxxxxxxxxx
Inventory
{{#each data}}
{{{add @index 1}}}
PartialUpdate
{{SKU}}
{{FulfillmentCenterID}}
{{Quantity}}
{{Available}}
{{Lookup}}
{{/each}}
And the preview to evaluate your handlebars template (according to the HTTP request body)
xxxxxxxx
xxxxxxxxxxx
Inventory
1
PartialUpdate
M5
xxxxxxx
108
True
FulfillmentNetwork