For the Amazon import flows that are built on JSON_LISTINGS_FEED
, you can easily use an integrator.io async helper as explained in this article to track processing and retrieve results.
Follow these steps to enable and create an async helper for your flow step (assuming you have migrated your Amazon Feeds API flows from XML to JSON):
-
Sign in to your Celigo integrator.io account.
-
Open your Amazon import flow built on Amazon Feeds API (JSON format).
-
Ensure you configured the following fields:
-
HTTP method:
POST
. -
Relative URI:
/feeds/2021-06-30/documents
. -
Feed type:
JSON_LISTINGS_FEED
.
-
-
In HTTP body, enter the following:
-
{ "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}} ] }
Note
You can change the JSON element in the HTTP body based on your requirements. For all the list of JSON elements, refer to JSON based feeds.
-
-
In the Advanced section on the Create import or Edit import panel, check the Configure async helper checkbox.
-
Click the + icon to create a new async helper.
Complete all the following settings:
-
Status export: Click the + icon to create a new status export. In the What would you like to export? panel, configure the following:
-
HTTP method: Enter
GET
. -
Relative URI: Enter
/feeds/2021-06-30/feeds/{{data.feedId}}
. -
Export type:
Select All- always export all data
and click Save.
-
Complete all the following settings:
-
Result export: Click the + icon to create a new status export. In the What would you like to export? panel, configure the following:
-
HTTP method: Enter
GET
. -
Relative URI: Enter
/feeds/2021-06-30/documents/{{data.statusRes.resultFeedDocumentId}}
. -
Export type:
Select All- always export all data
. -
Path to records in HTTP response body: Enter
issues
and click Save.
-
-
Click Save.