Zum Inhalt springen
aYOUne
← Konfiguration API

EANPools

Singular: EANPool — Base-URL: https://config-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

Jetzt ausprobieren beta

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": "6af533f8e2441069eece5296",
    "ean": "102999900000000153",
    "locked": true,
    "type": "sscc",
    "allocatedAt": "2026-11-12T03:35:20.054Z",
    "shares": [],
    "createdAt": "2026-11-12T03:35:20.055Z",
    "updatedAt": "2026-11-12T03:35:20.055Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/eanpools/6af533f8e2441069eece5296",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Products",
        "title": "MODEL_PRODUCT",
        "href": "https://api.ayoune.app/pim/products",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "pim.products"
      }
    ],
    "debugId": "6b06527d92a1964c090d04ac",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_EANPOOL",
        "href": "https://api.ayoune.app/config/eanpools/6af533f8e2441069eece5296/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_EANPOOL",
        "href": "https://api.ayoune.app/config/eanpools/6af533f8e2441069eece5296",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.170.1",
      "core": "2026.393.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9040",
      "reset": "1795579355",
      "resetDate": "Wed Nov 25 2026"
    },
    "responseTime": 28.029381,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /eanpools Liste mit Filtern/Paginierung config.eanpools.view
GET /eanpools/:id Einzelner Datensatz config.eanpools.view
POST /eanpools Neuen Datensatz erstellen config.eanpools.new
PUT /eanpools Datensatz aktualisieren config.eanpools.edit
DELETE /eanpools/:id Datensatz löschen config.eanpools.delete

SDK

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

// Alle abrufen
const list = await ay.config.eANPools.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.config.eANPools.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.config.eANPools.create({ name: 'Foo' });

Weiterführend