To update inventory quantity of multiple items on Amazon seller central

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" ?>
  <AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
    <Header>
     <DocumentVersion>1.01</DocumentVersion>
      <MerchantIdentifier>xxxxxx</MerchantIdentifier>
      <FulfillmentCenterID>xxxxxx</FulfillmentCenterID>
    </Header>
    <MessageType>Inventory</MessageType>
    {{#each data}}
    <Message>
      <MessageID>{{add @index 1}}</MessageID>
      <OperationType>Update</OperationType>
      <Inventory>
        <SKU>{{this.[Stock Description]}}</SKU>
        <Quantity>{{this.[Qty available]}}</Quantity>
        <Lookup>FulfillmentNetwork</Lookup>
      </Inventory>
    </Message>
    {{/each}}
  </AmazonEnvelope>

 

And the preview to evaluate your handlebars template (according to the HTTP request body)

<?xml version="1.0" encoding="utf-8" ?>
  <AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
    <Header>
     <DocumentVersion>1.01</DocumentVersion>
      <MerchantIdentifier>xxxxx</MerchantIdentifier>
      <FulfillmentCenterID>xxxxxxxx</FulfillmentCenterID>
    </Header>
    <MessageType>Inventory</MessageType>
    <Message>
      <MessageID>1</MessageID>
      <OperationType>Update</OperationType>
      <Inventory>
        <SKU>M5</SKU>
        <Quantity>108</Quantity>
        <Lookup>FulfillmentNetwork</Lookup>
      </Inventory>
    </Message>
  </AmazonEnvelope>

0

Comments

1 comment
Date Votes

Please sign in to leave a comment.

 

Didn't find what you were looking for?

New post