Create a commercetools Connection
This recipe explains how you can create a DX Engine Connection to the commercetools Commerce Engine.
Recipes that interact with the commercetools platform.
View all tagsThis recipe explains how you can create a DX Engine Connection to the commercetools Commerce Engine.
You can implement a solution based on this recipe that retrieves an order from Commercetools, parsing the order identifier from either a typical DX Engine Context JSON format or from the structure of a webhook from the Adyen payment provider. This approach should apply to almost any commerce and payment system integration or any wherever incoming data formats contain the same data in different structures.
In the following recipe, we will merge content items from the CMS with product records from a commerce engine in order to populate product pages, whether a Product Detail Page (PDP), Product Listing Page (PLP), landing page, or anywhere products are featured with extended information. This is a typical use case in a headless commerce implementation -- needing to match up additional data with product data, be it pricing or inventory or product care instructions. Frequently developers write glue code in the frontend to address this use case and end up making multiple API calls and stitching together data from the backends. An orchestration layer can configure this data unification.
This recipe uses the processFileWithDxEngine Job to take price data from a DX Graph Bucket and process it with DX Engine. We are imagining our ERP is the source of truth for our product data, including pricelists, and we want to sync this data into our commerce engine.
You can implement a solution based on this recipe that retrieves a shopping cart from commercetools. The same approach would be applicable for other commerce vendors.
You can implement an orchestration flow in the DX Engine based on the following recipe that explains how to update the inventory quantity associated with a product variant in commercetools when inventory may be managed in an external system such as an ERP or even a Real-time Inventory Management platform like Fluent Commerce.
You can implement a solution based on this recipe that updates a shopping cart in Commercetools. The same approach would be applicable for other commerce vendors.