Articles in this section

Configure async helper for Amazon Feeds (JSON LISTINGS FEED)

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.

Configure an async helper

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):

  1. Sign in to your Celigo integrator.io account.

  2. Open your Amazon import flow built on Amazon Feeds API (JSON format).

  3. Ensure you configured the following fields:

    • HTTP method: POST.

    • Relative URI: /feeds/2021-06-30/documents.

    • Feed type: JSON_LISTINGS_FEED.

      11.png
  4. 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.

  5. In the Advanced section on the Create import or Edit import panel, check the Configure async helper checkbox.

  6. Click the + icon to create a new async helper.

Configure how to check status

Complete all the following settings:

  1. Status export: Click the + icon to create a new status export. In the What would you like to export? panel, configure the following:

    1. HTTP method: Enter GET.

    2. Relative URI: Enter /feeds/2021-06-30/feeds/{{data.feedId}}.

    3. Export type: Select All- always export all data and click Save.

      Status.png

Configure status for async helper

Complete all the following settings:

  1. Status path: Enter processingStatus.

    1. In progress values: Enter IN_QUEUE and IN_PROGRESS.

    2. Done values: Enter DONE.

    3. Done without data values: Enter CANCELLED.

    4. Error values: Enter FATAL.

      4.png

Configure how to get the results

Complete all the following settings:

  1. Result export: Click the + icon to create a new status export. In the What would you like to export? panel, configure the following:

    1. HTTP method: Enter GET.

    2. Relative URI: Enter /feeds/2021-06-30/documents/{{data.statusRes.resultFeedDocumentId}}.

    3. Export type: Select All- always export all data.

    4. Path to records in HTTP response body: Enter issues and click Save.

      6.png
  2. Click Save.