Zum Inhalt springen
aYOUne
← Einkauf API

TradeChannelEvents

Singular: TradeChannelEvent — Base-URL: https://purchase-api.ayoune.app — Zugriff: read-only — 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": {
    "counts": {
      "created": 2,
      "updated": 0,
      "skipped": 0,
      "failed": 0
    },
    "_id": "6abef16d14c01adc4abb4a9f",
    "_channel": "6abef16d3e4ac8da65834a62",
    "provider": "amazon",
    "type": "import-batch",
    "severity": "info",
    "message": "Imported 2 orders from plugin-scrape (outbound)",
    "data": {
      "source": "plugin-scrape",
      "direction": "outbound",
      "accountHint": "pruefer-beispiel"
    },
    "createdBy": "5a76d07e2d8b3270ff6df587",
    "shares": [],
    "createdAt": "2026-10-01T23:49:01.677Z",
    "updatedAt": "2026-10-01T23:49:01.677Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://purchase-api.ayoune.app/tradechannelevents/6abef16d14c01adc4abb4a9f",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "TradeChannels",
        "title": "MODEL_TRADECHANNEL",
        "href": "https://api.ayoune.app/purchase/tradechannels/6abef16d3e4ac8da65834a62",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "purchase.tradechannels"
      }
    ],
    "relations": [
      {
        "rel": "TradeChannels",
        "title": "MODEL_TRADECHANNEL",
        "href": "https://api.ayoune.app/purchase/tradechannels",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "purchase.tradechannels"
      }
    ],
    "debugId": "6ac9c32f57e1a6a13fa5ab94",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_TRADECHANNELEVENT",
        "href": "https://api.ayoune.app/purchase/tradechannelevents/6abef16d14c01adc4abb4a9f/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_TRADECHANNELEVENT",
        "href": "https://api.ayoune.app/purchase/tradechannelevents/6abef16d14c01adc4abb4a9f",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.19.0",
      "core": "2026.365.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9892",
      "reset": "1791611150",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 302.426142,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /tradechannelevents Liste mit Filtern/Paginierung purchase.tradechannelevents.view
GET /tradechannelevents/:id Einzelner Datensatz via ID purchase.tradechannelevents.view

SDK

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

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

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

Weiterführend