← E-Commerce API
ShoppingCarts
Singular: ShoppingCart — Base URL: https://ecommerce-api.ayoune.app — Access: CRUD
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Example response (recorded) sample
A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.
{
"payload": {
"_id": "65ce1ee6011207f777f3edca",
"status": "new",
"createdBy": "6045f4d25704710012485569",
"positions": [],
"taxes": [],
"createdAt": "2024-02-15T14:25:42.576Z",
"updatedAt": "2024-02-15T14:25:42.576Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://ecommerce-api.ayoune.app/shoppingcarts/65ce1ee6011207f777f3edca",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Consumers",
"title": "MODEL_CONSUMER",
"href": "https://api.ayoune.app/crm/consumers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.consumers"
},
{
"rel": "Consumers",
"title": "MODEL_CONSUMER",
"href": "https://api.ayoune.app/crm/consumers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.consumers"
},
{
"rel": "Coupons",
"title": "MODEL_COUPON",
"href": "https://api.ayoune.app/marketing/coupons",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "marketing.coupons"
},
{
"rel": "Transactions",
"title": "MODEL_TRANSACTION",
"href": "https://api.ayoune.app/ecommerce/transactions",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ecommerce.transactions"
}
],
"debugId": "6a62dfd81af8fff1cf6edcfb",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_SHOPPINGCART",
"href": "https://api.ayoune.app/ecommerce/shoppingcarts/65ce1ee6011207f777f3edca/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_SHOPPINGCART",
"href": "https://api.ayoune.app/ecommerce/shoppingcarts/65ce1ee6011207f777f3edca/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.14.0",
"core": "2026.258.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2489",
"reset": "1784868325",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 196.418306,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /shoppingcarts |
List with filters/pagination | ecommerce.shoppingcarts.view |
| GET | /shoppingcarts/:id |
Single record | ecommerce.shoppingcarts.view |
| POST | /shoppingcarts |
Create new record | ecommerce.shoppingcarts.new |
| PUT | /shoppingcarts |
Update record | ecommerce.shoppingcarts.edit |
| DELETE | /shoppingcarts/:id |
Delete record | ecommerce.shoppingcarts.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.ecommerce.shoppingCarts.find().limit(10).exec();
// Single record
const one = await ay.ecommerce.shoppingCarts.findById('OBJECT_ID').exec();
// Create
const created = await ay.ecommerce.shoppingCarts.create({ name: 'Foo' });