← E-Commerce API
ShoppingCarts
Singular: ShoppingCart — Base-URL: https://ecommerce-api.ayoune.app — Zugriff: CRUD
Jetzt ausprobieren
beta
Response (live)
Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.
Beispiel-Response (aufgezeichnet) Beispiel
Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.
{
"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
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /shoppingcarts |
Liste mit Filtern/Paginierung | ecommerce.shoppingcarts.view |
| GET | /shoppingcarts/:id |
Einzelner Datensatz | ecommerce.shoppingcarts.view |
| POST | /shoppingcarts |
Neuen Datensatz erstellen | ecommerce.shoppingcarts.new |
| PUT | /shoppingcarts |
Datensatz aktualisieren | ecommerce.shoppingcarts.edit |
| DELETE | /shoppingcarts/:id |
Datensatz löschen | ecommerce.shoppingcarts.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.ecommerce.shoppingCarts.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.ecommerce.shoppingCarts.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.ecommerce.shoppingCarts.create({ name: 'Foo' });