The Carts API allows you to access and manage customer shopping carts in your Venddor store. You can retrieve cart data, analyze customer behavior, and track abandoned carts to improve your conversion rates.
https://www.venddor.com.br/api/carts
When a customer adds products to their cart, the system creates a cart record. These carts will appear in two scenarios:
In the Venddor administration panel, you can view these carts under Marketing → Abandoned/Live carts.
Retrieves a list of all carts in the system.
Parameter | Type | Required | Description |
---|---|---|---|
page |
integer | No | Page number for paginated results. Default: 1 |
items_per_page |
integer | No | Number of items per page. Default: 10, Maximum: 100 |
sort_by |
string | No | Field to sort by. Options: date, total. Default: date |
sort_order |
string | No | Sort order. Options: asc, desc. Default: desc |
abandoned_only |
boolean | No | If true, returns only abandoned carts. Default: false |
curl --user admin@example.com:APIkey -X GET 'https://www.venddor.com.br/api/carts?abandoned_only=true&items_per_page=25'
Retrieves detailed information about a specific cart.
Parameter | Type | Description |
---|---|---|
cart_id * |
integer | Unique identifier of the cart |
curl --user admin@example.com:APIkey -X GET 'https://www.venddor.com.br/api/carts/12345'
Deletes a specific cart from the system.
Parameter | Type | Description |
---|---|---|
cart_id * |
integer | Unique identifier of the cart to delete |
curl --user admin@example.com:APIkey -X DELETE 'https://www.venddor.com.br/api/carts/12345'
Use the Carts API to identify abandoned carts and implement recovery strategies:
Gain insights into customer shopping patterns: