Manage products
After importing your product categories you can easily manage your product inventory through the following steps.
Requirements
To create and manage your eCommerce store products you need to have access to the Brevo eCommerce app. If you have not already activated the eCommerce platform on your account you can go to eCommerce > Add the eCommerce App.
Create a product
To integrate your store with Brevo you will need to create products. You can check out the API endpoint reference for creating products in eCommerce > Create/Update a product.
The cURL request to do so is the following:
You can use this cURL request to create a product. You can find the parameters used in creating a product below.
Create products in a batch
Lets say you have multiple products to create, you can use the endpoint eCommerce > Creates the products in a batch. Instead calling the enpoint multiple times, you can instead create them all in one single batch. The cURL request for batch products creation is as follows:
Batch limits
You can create up to 100 products in a single batch. Below you find sample JSON code to create products in batches.
The parameters are the same as the ones in Create a product, only the products are in batches. The parameters used in creating products in batches are mentioned below:
Update a product
To update an existing product, we need to change the parameter updateEnabled to true. It allows two boolean fields, true and false. We cannot update the product if the field is set to false.
If you choose to update the product parameters later, you can set this field to true when you are creating the product.
Responses you should expect
You can find a list of errors here.
Retrieving all products
You can test the API to get all the products by going to eCommerce > Return all your products. You can find the cURL request below:
The parameters for this endpoint are:
How to get a product’s details?
You can get a specific product’s details by sending a GET request with the product id of that item. You can test this API endpoint at eCommerce > Get a product’s details.
The cURL request above is responsible for sending the request to the endpoint. id is the only parameter for this endpoint, it is a unique identifier for the product.