Manage orders
You can manage your orders seamlessly through the eCommerce platform. You can see all the endpoints for eCommerce order management in the API reference here.
Requirements
To create and manage your eCommerce store orders you need to have access to the Brevo eCommerce application. If you are not already integrated with the eCommerce feature you can go to eCommerce > Activate the eCommerce App.
Managing the status of the order
To manage the transactional status of the order, you have to use the endpoint https://api.brevo.com/v3/orders/status with the method POST. The cURL request to create orders is as follows:
Products and billings
š”Note products and billing are different objects. Their parameters are explained below.
Products attribute
Products attribute is a sub-attribute for orders. It is an array of objects that represents all the products in an order. Its attributes are mentioned in the table below.
Billing attribute
š”Billing attribute is also a sub-attribute for orders. It is an object that includes the details of the order delivery and its region. Its attributes are mentioned below in the table.
Managing the batch of orders
You have to use the endpoint https://api.brevo.com/v3/orders/status/batchwith the POST for calling this API. This endpoint is used to create multiple orders at one time instead of one order at a time. You can check it out at eCommerce > Maintains a batch of orders.
The cURL request is as following:
Limits
You can create up to ** 1000 orders in a batch or 5MB ** of orders in size.
The attributes and parameters of batch orders and creating orders are equal except batch orders contains multiple orders so the attributes of orders are created in batches. The only attribute that is different in batch orders is notifyUrl.
š”Products and billing are objects so their parameters will be mentioned below in another table.
Products attribute
Products attribute is a sub-attribute for orders. It is an array of objects that represents all the products in an order. Its attributes are mentioned in the table below.
Billing attribute
š”Billing attribute is also a sub-attribute for orders. It is an object that includes the details of the order delivery and its region. Its attributes are mentioned below in the table.
Responses you should expect