Amazon is deprecating the POST_INVENTORY_AVAILABILITY_DATA feed, requiring users to transition to the new JSON_LISTINGS_FEED. If you're managing inventory updates in Amazon through Celigo, this guide will walk you through setting up the new feed using Async Helper to track processing and retrieve results (additionally, see docs here).
How JSON_LISTINGS_FEED Works in Celigo
The process involves three main steps:
- Submit the feed to Amazon – This sends the inventory update request.
- Check the feed processing status – The Async Helper tracks when Amazon has completed processing.
- Retrieve results – After Amazon processes the feed, results are fetched to determine success or errors.
Step 1: Submit JSON_LISTINGS_FEED to Amazon
You'll need to make a POST request to:
/feeds/2021-06-30/documents
with the following JSON payload in Celigo (or similar):
{
"header": {
"sellerId": "{{connection.http.unencrypted.sellerId}}",
"version": "2.0"
},
"messages": [
{{#each data}}
{
"messageId": {{{add @index 1}}},
"sku": "{{sku}}",
"productType": "PRODUCT",
"operationType": "PATCH",
"patches": [
{
"op": "replace",
"path": "/attributes/fulfillment_availability",
"value": [
{
"fulfillment_channel_code": "DEFAULT",
"quantity": {{ats}}
}
]
}
]
}{{#if @last}}{{else}},{{/if}}
{{/each}}
]
}
Step 2: Configure Async Helper to Track Status
After submitting the feed, you need to track its status asynchronously. To do this:
- Go to the Advanced section in Celigo.
- Enable Configure Async Helper.
- Click the Add icon to create a new helper.
- Set up a status export to check feed processing status.
- Perform a
GETrequest to:
/feeds/2021-06-30/feeds/{{data.feedId}}- The
data.feedIdis the reference from the initial API response. - Set up processing statuses as follows:
- In Progress Values:
IN_QUEUE,IN_PROGRESS - Done Values:
DONE - Done Without Data Values:
CANCELLED - Error Values:
FATAL
- In Progress Values:
- Perform a
Step 3: Retrieve Processing Results
Once the status shows as DONE, you need to fetch the processing results:
- Add a results export in the Async Helper.
- Perform a
GETrequest to:/feeds/2021-06-30/documents/{{data.statusRes.resultFeedDocumentId}}- Here,
statusResis a reference to the status export.
- Here,
- Set Path to records in HTTP response body to
issues.
