Skip to content
aYOUne
← Marketing API

ShopPersonalizationRules

Singular: ShopPersonalizationRule — Base URL: https://marketing-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)

Try it now beta

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": "6ac9bbbbd942c8cd7c84c027",
    "createdBy": "6045f4d25704710012485569",
    "shares": [],
    "createdAt": "2026-10-10T04:14:51.759Z",
    "updatedAt": "2026-10-10T04:14:51.759Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://marketing-api.ayoune.app/shoppersonalizationrules/6ac9bbbbd942c8cd7c84c027",
        "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": "6ac9bbbcd942c8cd7c84c05b",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_SHOPPERSONALIZATIONRULE",
        "href": "https://api.ayoune.app/marketing/shoppersonalizationrules/6ac9bbbbd942c8cd7c84c027/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_SHOPPERSONALIZATIONRULE",
        "href": "https://api.ayoune.app/marketing/shoppersonalizationrules/6ac9bbbbd942c8cd7c84c027",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.38.0",
      "core": "2026.368.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "8767",
      "reset": "1791608900",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 185.043684,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

MethodPathDescriptionRight
GET /shoppersonalizationrules List with filters/pagination marketing.shoppersonalizationrules.view
GET /shoppersonalizationrules/:id Single record marketing.shoppersonalizationrules.view
POST /shoppersonalizationrules Create new record marketing.shoppersonalizationrules.new
PUT /shoppersonalizationrules Update record marketing.shoppersonalizationrules.edit
DELETE /shoppersonalizationrules/:id Delete record marketing.shoppersonalizationrules.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// List all
const list = await ay.marketing.shopPersonalizationRules.find().limit(10).exec();

// Single record
const one = await ay.marketing.shopPersonalizationRules.findById('OBJECT_ID').exec();

// Create
const created = await ay.marketing.shopPersonalizationRules.create({ name: 'Foo' });

See also