• Integrations Hub/
    Store Management & Configuration/
    Catalog Publisher

    Elastic Path Commerce Cloud Catalog Publisher

    The Elastic Path Commerce Cloud Catalog Publisher is a utility in the Integrations Hub in Commerce Manager that enables you to publish many Elastic Path Commerce Cloud store catalogs in one publish operation.

    An example of how the store catalogs are published using the Catalog Publisher integration is described below.

    1. When triggered, the integration retrieves the store catalogs.
    2. For each store catalog, the integration triggers a catalog publish operation.
    3. The integration waits for the catalog publish to complete.
    4. When the catalog publish is complete, the integration waits a specific period of time to allow for any corresponding events linked to a store catalog to complete. For example, if you are using Algolia, you may want to wait for the Algolia re-index operation to complete.
    5. The integration publishes the next catalog, if any remain. Otherwise, the process completes.

    Using Catalog Publisher

    To publish your store catalogs, you must invoke the webhook that is created when you configure the Catalog Publisher integration. You can either publish all store catalogs or supply an array of the catalog IDs that you want to publish.

    Request Example

    {
      "catalogIds": ["59935562-8c44-11ed-a1eb-0242ac120002","59935846-8c44-11ed-a1eb-0242ac120002"]
    }
    

    Configuring the Catalog Publisher Integration

    You configure the Catalog Publisher integration in Integrations Hub.

    1. In Commerce Manager, go to the store from which you want to publish your store catalogs.

    2. Go to COMPOSER > Integrations Hub.

    3. Under Store Management & Configuration, click Elastic Path Commerce Cloud Catalog Publisher. The Elastic Path Commerce Cloud Catalog Publisher integration guides you through the steps you need to follow to complete the integration.

    4. Click Configure. The Trigger details are displayed.

    5. Click Next. The Elastic Path Commerce Cloud Connection page is displayed.

    6. Complete the information in the Elastic Path Commerce Cloud Connection page. You can find this information in SYSTEM > Application Keys in Commerce Manager when logged in as a user with Seller Admin privileges. See Application Keys.

      The table below describes the options you can configure.

      OptionDescription
      pubish_check_delayThe delay, in milliseconds, between status checks. Default value is 300000.
      algolia_publish_delayThe delay, in milliseconds, to wait for any corresponding events linked to your catalog to complete. For example, if you are using Algolia, you may want to wait for the Algolia re-index operation to complete. Default value is 300000.
      check_status_retryThe maximum number of times the integration checks the status and retries. Default value is 15.
      publish_scheduleThe cron schedule for a full catalog publish. Default value is 0 7 * * SUN.
      • Client-ID - Your Elastic Path Commerce Cloud Client ID.
      • Client-Secret - Your Elastic Path Commerce Cloud Client Secret.
      • Token URL Your Elastic Path Commerce Cloud API Token URL. For example, api.motlin.com/oauth/<access_token> (EU) or useast.api.elasticpath.com/oauth/<access_token> (US).

      When integrating with third-party providers, we recommend you use the closest region in the third-party service to reduce latency as much as possible. See Regions and URLs table.

    7. Click Connect.

    8. Click Next. The Elastic Path Commerce Cloud Catalogs page is displayed. You must select catalogs to be included in the publication.

    9. Select the catalogs you want to publish. You can select:

      • All catalogs: All the catalogs available in your store are automatically selected.
      • Selected catalogs: Select the specific catalogs you want to publish.
    10. Click Finish. Your integration is enabled. You must enable a Catalog Publisher integration on each store where you want to import your product data set.

    Using Catalog Publisher Integration

    Using the Catalog Publisher, you can:

    • Publish all or some of your store catalogs
    • Check the publish status of your store catalogs
    • Schedule your store catalog publishing

    You can publish using Postman.

    1. Go to a store.

    2. Go to COMPOSER > Integrations Hub.

    3. Under Store Management & Configuration, select Catalog Publisher. You must have configured a Catalog Publisher integration before you can publish any catalogs for this store. See Configuring the Catalog Publisher Integration.

    4. From Summary > Trigger Details.

      • Expand Publish Catalog Flow if you want to publish specific catalogs.
      • Expand Check Publish Status Flow if you want to check the publish status of all or some of your catalogs.
      • Expand Schedule Flow if you want to schedule publishing your catalogs.
      • Expand Publish Complete Flow if you want to publish all your catalogs.
    5. Select Copy to Clipboard to copy the URLs.

    6. Go to Postman.

    7. Open POST {{webhook-url}} where webhook-url is the webhook you copied in step 5.

    8. The following table describes the parameters you can supply in Body, depending on the flow you are using.

      FlowBody
      Publish Catalog FlowAn array of catalog IDs.
      {
       "catalogIds": ["4f37dd4e-75c6-4f43-8888-0ea8d4963480","0776c723-971a-444b-b0e0-4967e9b9164c"]
      }
      
      Check Publish Status FlowAn array of catalog IDs, the catalog release ID and the statusCheckRetryCount to specify the maximum number of times the integration checks the status and retries.
       {
        "catalogIds": ["4f37dd4e-75c6-4f43-8888-0ea8d4963480","0776c723-971a-444b-b0e0-4967e9b9164c"],
        "releaseId": "cb7f8365-3194-44df-aa1a-13ec0f279c58",
        "statusCheckRetryCount":5
       }
      
      Schedule FlowLeave empty to publish all catalogs.
      Publish Complete FlowAn array of catalog IDs.
       {
        "catalogIds": ["4f37dd4e-75c6-4f43-8888-0ea8d4963480","0776c723-971a-444b-b0e0-4967e9b9164c"]
       }
      
    9. Run POST {{webhook-url}}.

    10. When the publish has finished, if you go to your store, you should see your published store catalogs.

    Troubleshooting the Catalog Publisher Integration

    You can debug any issues in Executions. Click an execution to see the execution details. The Logs shows the output and any errors or warnings.

    Select Retry to initiate an execution again.

    Was this helpful?

    Previous
    Amazon Cognito Integration