CommerceLayer
Seamlessly integrate your CommerceLayer e-commerce platform with Storyblok

Commerce Layer is a commerce platform designed to integrate online shopping into various platforms such as websites, mobile apps, chatbots, wearables, effortlessly through a rapid and secure API.
This app enables content editors to select products and categories from a connected CommerceLayer instance and reference them in Storyblok.
Setup
- Once installed, navigate to the block library and create a new field of the type plugin (in either a new or an existing block). Set the custom type to
sb-commerce-layer
. - In the field configuration, define the following values:
apiUrl
(required): The URL of the API endpoint associated with your CommerceLayer instance (e.g.,https://example.commercelayer.io
).integrationClientId
(required): Theclient_id
from your integration API credentialsintegrationClientSecret
(required): Theclient_secret
from your integration API credentials. The value of this option must be encrypted using the Storyblok Encryption Service.salesChannelClientId
(optional): Theclient_id
from your sales channel API credentials.salesChannelDefaultMarketNumber
(optional): The number of a specific sales channel market (e.g.,10460
). Note that this option must be provided together withsalesChannelClientId
but can also be omitted.limit
(optional): The maximum number of items that can be selected.selectOnly
(optional): If left empty, editors can choose products and categories. If set toproduct
, only products can be selected. If set tocategory
, only categories can be selected.
- Use the block containing the field in the Visual Editor, select one or multiple products or categories, save the story, and check the API response.
Please refer to the e-commerce concept for a detailed introduction to the topic.