What is the purpose of the Sales Channel API?

Where business professionals discuss big database and data management.
Post Reply
Mitu100@
Posts: 1391
Joined: Tue Jan 07, 2025 4:29 am

What is the purpose of the Sales Channel API?

Post by Mitu100@ »

The Sales channel API provides common storefront functionality. This endpoint provides all requirements for connecting your custom shop frontend, POS or any other sales channel. This makes it possible to implement completely new sales concepts using the Shopware platform.

Sales channels are your interface to talk to the storefront or to 3rd party services like Instagram or Facebook. The Sales Channel API does not use OAuth since a lot of 3rd party services are not capable of performing this kind of authentication. The custom header “sw-access-key” is used for this purpose. Most of the functionality is accessible without a customer login, like listing products. Only customer-specific requests have to be authenticated.

Tasty tidbits
Although Shopware can be used in albania telegram screening headless mode, a full-featured, integrated and powerful Storefront is included in the platform.

Unlike the Admin API, the Sales Channel API is a stateful interface. Each request contains a context token that usually works like a session. So throughout multiple requests, your cart, login status, and other data that is usually saved in the session are preserved.

The Sales Channel API is much smaller than the Admin API because not every entity can be queried. Instead, it encapsulates a whole lot more of business logic which is necessary to build lean and performant solutions on top of the API.

On Github, we published several experiments to show how easy it is to use the Sales Channel API. Altogether there is a OnePageShop, a Shop-Snippet and an Alexa skill.

Conclusion
It has never been so easy to connect third-party systems to Shopware, let alone build your custom storefronts or to enable even greater customization.

Despite all the new functions, this is not at the expense of performance. The current benchmarks for the API are already very promising and enable ERP integrations to realize new synchronization concepts.
Post Reply