Our colleague Timo Trautmann has published an article on Shopware 6 meets Pimcore 6 in the latest issue of PHP Magazine (01/2021). In particular, he describes the exchange of product data from the PIM system to the online store using the new REST-API interface.

Shopware has completely redesigned this interface in the new version. Shopware now also follows the API First approach, in which all functions of a software can also be controlled via the API. To this end, Shopware has developed three REST APIs, each for its own area of application:

      • Admin API for managing the store
      • Sales Channel API for controlling sales channels such as online stores, marketplaces and social media integrations
      • Sync API for importing and exporting large amounts of data

This Sync API is the basis of our PIM interface for updating data objects in Shopware. The central core of data communication is product data from the PIM system Pimcore. A product data object is not a simple object, but is composed of many individual data objects such as translations or media data. With the help of the Sync API, developers can now update objects of various types with a single call. This ensures the performance required to import large amounts of data quickly.

In a further article for PHP Magazine, Timo Trautmann explains the structure of the interface and the communication between Shopware and Pimcore. In addition, he shows the transfer of a product using the Sync API in a concrete case study.

Finally, you can read the complete article by our colleague Timo Trautmann online in PHP Magazine (subject to a fee). PHP Magazine is also available as part of Entwickler Magazin at newsstands as a print magazine.

References Shopware & Pimcore

News Shopware & Pimcore