← Einkauf API
SupplierOrders
Singular: SupplierOrder — 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": {
"shippingAddress": {
"address_additional": ""
},
"_id": "65ce16bde1e657daef67fabd",
"done": false,
"archive": false,
"editors": [],
"team": [],
"confirmed": false,
"destinationCountries": [],
"destinationCities": [],
"destinationCity": [],
"groups": [],
"othergroups": [],
"skus": [],
"shopOrder": false,
"shopOrderNbr": "",
"interestchannels": [],
"stock_booked": false,
"hasQuota": false,
"hasDuration": false,
"hasCheckLists": false,
"hasSupplierFeedback": false,
"hasRequirements": false,
"needsProduction": false,
"hasProductionOrders": false,
"insuranceBooked": false,
"status": "Neu",
"deposits": [],
"type": "Kurz",
"text_pre": "",
"text_post": "",
"final_discount_percent": 0,
"final_discount_percent_amount": 0,
"final_discount": 0,
"coupon_discount": 0,
"shippingCosts": 0,
"sum": 0,
"totalDiscount": 0,
"net_total": 0,
"net_total_1": 0,
"net_total_2": 0,
"tax_1": 0,
"tax_2": 0,
"total": 0,
"monthly_part": 0,
"total_part": 0,
"external_monthly_part": 0,
"external_total_part": 0,
"foreignCountry": false,
"watchers": [],
"createdBy": "6045f4d25704710012485569",
"shares": [],
"pricedate": "2024-02-15T13:50:53.471Z",
"positions": [],
"taxes": [],
"comments": [],
"createdAt": "2024-02-15T13:50:53.473Z",
"updatedAt": "2024-02-15T13:50:53.473Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://purchase-api.ayoune.app/supplierorders/65ce16bde1e657daef67fabd",
"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": "Consumers",
"title": "MODEL_CONSUMER",
"href": "https://api.ayoune.app/crm/consumers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.consumers"
},
{
"rel": "ApprovalRequests",
"title": "MODEL_APPROVALREQUEST",
"href": "https://api.ayoune.app/automation/approvalrequests",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "automation.approvalrequests"
},
{
"rel": "Budgets",
"title": "MODEL_BUDGET",
"href": "https://api.ayoune.app/accounting/budgets",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "accounting.budgets"
},
{
"rel": "Shops",
"title": "MODEL_SHOP",
"href": "https://api.ayoune.app/ecommerce/shops",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ecommerce.shops"
},
{
"rel": "Coupons",
"title": "MODEL_COUPON",
"href": "https://api.ayoune.app/marketing/coupons",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "marketing.coupons"
},
{
"rel": "Transactions",
"title": "MODEL_TRANSACTION",
"href": "https://api.ayoune.app/ecommerce/transactions",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ecommerce.transactions"
},
{
"rel": "CalendarEntries",
"title": "MODEL_CALENDARENTRY",
"href": "https://api.ayoune.app/crm/calendarentries",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.calendarentries"
},
{
"rel": "Opportunities",
"title": "MODEL_OPPORTUNITY",
"href": "https://api.ayoune.app/sale/opportunities",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.opportunities"
},
{
"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": "Contracts",
"title": "MODEL_CONTRACT",
"href": "https://api.ayoune.app/sale/contracts",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.contracts"
},
{
"rel": "ProductionOrders",
"title": "MODEL_PRODUCTIONORDER",
"href": "https://api.ayoune.app/production/productionorders",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "production.productionorders"
},
{
"rel": "Invoices",
"title": "MODEL_INVOICE",
"href": "https://api.ayoune.app/sale/invoices",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.invoices"
},
{
"rel": "Shippings",
"title": "MODEL_SHIPPING",
"href": "https://api.ayoune.app/sale/shippings",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.shippings"
},
{
"rel": "Shippments",
"title": "MODEL_SHIPPMENT",
"href": "https://api.ayoune.app/sale/shippments",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.shippments"
},
{
"rel": "Departments",
"title": "MODEL_DEPARTMENT",
"href": "https://api.ayoune.app/config/departments",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.departments"
},
{
"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": "PriceGroups",
"title": "MODEL_PRICEGROUP",
"href": "https://api.ayoune.app/config/pricegroups",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.pricegroups"
},
{
"rel": "DiscountGroups",
"title": "MODEL_DISCOUNTGROUP",
"href": "https://api.ayoune.app/config/discountgroups",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.discountgroups"
},
{
"rel": "PaymentGroups",
"title": "MODEL_PAYMENTGROUP",
"href": "https://api.ayoune.app/config/paymentgroups",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.paymentgroups"
},
{
"rel": "Documents",
"title": "MODEL_DOCUMENT",
"href": "https://api.ayoune.app/crm/documents",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.documents"
}
],
"debugId": "6a8291c71c8d7eeae3944828",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_SUPPLIERORDER",
"href": "https://api.ayoune.app/purchase/supplierorders/65ce16bde1e657daef67fabd/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_SUPPLIERORDER",
"href": "https://api.ayoune.app/purchase/supplierorders/65ce16bde1e657daef67fabd/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.17.5",
"core": "2026.287.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2358",
"reset": "1786945450",
"resetDate": "Mon Aug 17 2026"
},
"responseTime": 104.175868,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /supplierorders |
Liste mit Filtern/Paginierung | purchase.supplierorders.view |
| GET | /supplierorders/:id |
Einzelner Datensatz | purchase.supplierorders.view |
| POST | /supplierorders |
Neuen Datensatz erstellen | purchase.supplierorders.new |
| PUT | /supplierorders |
Datensatz aktualisieren | purchase.supplierorders.edit |
| DELETE | /supplierorders/:id |
Datensatz löschen | purchase.supplierorders.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.purchase.supplierOrders.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.purchase.supplierOrders.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.purchase.supplierOrders.create({ name: 'Foo' });