aYOUne
← Einkauf API

ShippingBoxes

Singular: ShippingBox — Base-URL: https://purchase-api.ayoune.app — Zugriff: CRUD

play_circle 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": "65e0b1ad121b7d48fe159d94",
    "status": "Neu",
    "packageWeight": 0,
    "netWeight": 0,
    "grossWeight": 0,
    "controlWeight": 0,
    "qty": 0,
    "unit": "Palette",
    "contentQty": 0,
    "contentUnit": "Stück",
    "length": 0,
    "width": 0,
    "height": 0,
    "volume": 0,
    "maxWeight": 0,
    "maxVolume": 0,
    "createdBy": "6045f4d25704710012485569",
    "products": [],
    "createdAt": "2024-02-29T16:32:45.409Z",
    "updatedAt": "2024-02-29T16:32:45.409Z",
    "nbr": "HJGMHSR"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://purchase-api.ayoune.app/shippingboxes/65e0b1ad121b7d48fe159d94",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Warehouses",
        "title": "MODEL_WAREHOUSE",
        "href": "https://api.ayoune.app/config/warehouses",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.warehouses"
      },
      {
        "rel": "StorageAreas",
        "title": "MODEL_STORAGEAREA",
        "href": "https://api.ayoune.app/config/storageareas",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.storageareas"
      },
      {
        "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"
      },
      {
        "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": "Shippings",
        "title": "MODEL_SHIPPING",
        "href": "https://api.ayoune.app/sale/shippings",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "sale.shippings"
      },
      {
        "rel": "Invoices",
        "title": "MODEL_INVOICE",
        "href": "https://api.ayoune.app/sale/invoices",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "sale.invoices"
      }
    ],
    "debugId": "6a6198c21496f64392e30109",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_SHIPPINGBOX",
        "href": "https://api.ayoune.app/purchase/shippingboxes/65e0b1ad121b7d48fe159d94/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_SHIPPINGBOX",
        "href": "https://api.ayoune.app/purchase/shippingboxes/65e0b1ad121b7d48fe159d94/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.10.0",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2437",
      "reset": "1784784576",
      "resetDate": "Thu Jul 23 2026"
    },
    "responseTime": 187.719106,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend