← Marketing API
ShopPersonalizationRules
Singular: ShopPersonalizationRule — Base-URL: https://marketing-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)
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": "6affc3519a9a88706877ed5b",
"name": "RETIRED_ORANGE_YODA",
"createdBy": "6045f4d25704710012485569",
"shares": [],
"createdAt": "2026-11-20T03:49:37.536Z",
"updatedAt": "2026-11-20T03:49:37.536Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://marketing-api.ayoune.app/shoppersonalizationrules/6affc3519a9a88706877ed5b",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Websites",
"title": "MODEL_WEBSITE",
"href": "https://api.ayoune.app/cms/websites",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.websites"
},
{
"rel": "MarketingCampaigns",
"title": "MODEL_MARKETINGCAMPAIGN",
"href": "https://api.ayoune.app/marketing/marketingcampaigns",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "marketing.marketingcampaigns"
},
{
"rel": "Experiments",
"title": "MODEL_EXPERIMENT",
"href": "https://api.ayoune.app/marketing/experiments",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "marketing.experiments"
}
],
"debugId": "6affc3529a9a88706877eda8",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_SHOPPERSONALIZATIONRULE",
"href": "https://api.ayoune.app/marketing/shoppersonalizationrules/6affc3519a9a88706877ed5b/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_SHOPPERSONALIZATIONRULE",
"href": "https://api.ayoune.app/marketing/shoppersonalizationrules/6affc3519a9a88706877ed5b",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.38.0",
"core": "2026.388.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "8773",
"reset": "1795149787",
"resetDate": "Fri Nov 20 2026"
},
"responseTime": 123.828001,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /shoppersonalizationrules |
Liste mit Filtern/Paginierung | marketing.shoppersonalizationrules.view |
| GET | /shoppersonalizationrules/:id |
Einzelner Datensatz | marketing.shoppersonalizationrules.view |
| POST | /shoppersonalizationrules |
Neuen Datensatz erstellen | marketing.shoppersonalizationrules.new |
| PUT | /shoppersonalizationrules |
Datensatz aktualisieren | marketing.shoppersonalizationrules.edit |
| DELETE | /shoppersonalizationrules/:id |
Datensatz löschen | marketing.shoppersonalizationrules.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.marketing.shopPersonalizationRules.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.marketing.shopPersonalizationRules.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.marketing.shopPersonalizationRules.create({ name: 'Foo' });