← Purchase API
TradeChannelEvents
Singular: TradeChannelEvent — Base URL: https://purchase-api.ayoune.app — Access: read-only — Machine-readable spec (JSON · YAML)
Try it now
beta
Response (live)
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": {
"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": "6aded63087c51abebc05d4f0",
"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.388.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "9900",
"reset": "1792992269",
"resetDate": "Mon Oct 26 2026"
},
"responseTime": 226.395988,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /tradechannelevents |
List with filters/pagination | purchase.tradechannelevents.view |
| GET | /tradechannelevents/:id |
Single record by ID | purchase.tradechannelevents.view |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.purchase.tradeChannelEvents.find().limit(10).exec();
// Single record
const one = await ay.purchase.tradeChannelEvents.findById('OBJECT_ID').exec();