← Einkauf API
SupplierRequests
Singular: SupplierRequest — Base-URL: https://purchase-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": "65ce1398b98a6f26ab9f7f42",
"status": "Neu",
"done": false,
"accepted": false,
"declined": false,
"archived": false,
"requested": false,
"hasDuration": false,
"createdBy": "6045f4d25704710012485569",
"positions": [],
"deadline": "2024-02-15T13:37:28.869Z",
"first_start_date": "2024-02-15T13:37:28.869Z",
"last_end_date": "2024-02-15T13:37:28.869Z",
"createdAt": "2024-02-15T13:37:28.871Z",
"updatedAt": "2024-02-15T13:37:28.871Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://purchase-api.ayoune.app/supplierrequests/65ce1398b98a6f26ab9f7f42",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Consumers",
"title": "MODEL_CONSUMER",
"href": "https://api.ayoune.app/crm/consumers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.consumers"
},
{
"rel": "Projects",
"title": "MODEL_PROJECT",
"href": "https://api.ayoune.app/pm/projects",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pm.projects"
},
{
"rel": "Offers",
"title": "MODEL_OFFER",
"href": "https://api.ayoune.app/sale/offers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.offers"
},
{
"rel": "Assignments",
"title": "MODEL_ASSIGNMENT",
"href": "https://api.ayoune.app/sale/assignments",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.assignments"
}
],
"debugId": "6a8291d21c8d7eeae3944b8d",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_SUPPLIERREQUEST",
"href": "https://api.ayoune.app/purchase/supplierrequests/65ce1398b98a6f26ab9f7f42/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_SUPPLIERREQUEST",
"href": "https://api.ayoune.app/purchase/supplierrequests/65ce1398b98a6f26ab9f7f42/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.17.5",
"core": "2026.287.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2316",
"reset": "1786945450",
"resetDate": "Mon Aug 17 2026"
},
"responseTime": 16.980109,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /supplierrequests |
Liste mit Filtern/Paginierung | purchase.supplierrequests.view |
| GET | /supplierrequests/:id |
Einzelner Datensatz | purchase.supplierrequests.view |
| POST | /supplierrequests |
Neuen Datensatz erstellen | purchase.supplierrequests.new |
| PUT | /supplierrequests |
Datensatz aktualisieren | purchase.supplierrequests.edit |
| DELETE | /supplierrequests/:id |
Datensatz löschen | purchase.supplierrequests.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.purchase.supplierRequests.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.purchase.supplierRequests.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.purchase.supplierRequests.create({ name: 'Foo' });