Zum Inhalt springen
aYOUne
← Warehouse API

StockReservations

Singular: StockReservation — Base-URL: https://warehouse-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": "6acf4a111a112572cb496d0b",
    "product": "6ac33cc4c0aedf1dd2d61efe",
    "warehouse": "6ab22702497e7e1a3405689c",
    "serialNumbers": [],
    "qtyReserved": 1,
    "qtyFulfilled": 0,
    "sourceType": "order",
    "sourceId": "6acf4a111a112572cb496d0a",
    "sourcePosition": 1,
    "status": "released",
    "reservedAt": "2026-10-14T09:23:29.256Z",
    "expiresAt": "2026-10-14T09:53:29.256Z",
    "priority": 0,
    "note": "checkout",
    "shares": [],
    "createdAt": "2026-10-14T09:23:29.333Z",
    "updatedAt": "2026-10-14T09:27:12.277Z",
    "releasedAt": "2026-10-14T09:27:12.275Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://warehouse-api.ayoune.app/stockreservations/6acf4a111a112572cb496d0b",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6ad4538b5f4078494fa8c720",
    "errors": [],
    "actions": [],
    "version": {
      "host": "2026.22.1",
      "core": "2026.385.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2456",
      "reset": "1792303316",
      "resetDate": "Sun Oct 18 2026"
    },
    "responseTime": 101.192907,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend