aYOUne
← Produktion API

ProductionOrders

Singular: ProductionOrder — Base-URL: https://production-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": {
    "shippingAddress": {
      "address_additional": ""
    },
    "_id": "65ce12fddb17b1c95ee037d2",
    "suppliers": [],
    "ready": false,
    "productionStarted": false,
    "overSupply": false,
    "underSupply": false,
    "done": false,
    "progress": 0,
    "internal": false,
    "editors": [],
    "team": [],
    "confirmed": false,
    "destinationCountries": [],
    "destinationCities": [],
    "destinationCity": [],
    "groups": [],
    "othergroups": [],
    "skus": [],
    "shopOrder": false,
    "shopOrderNbr": "",
    "stock_booked": false,
    "hasQuota": false,
    "hasDuration": false,
    "hasCheckLists": false,
    "hasSupplierFeedback": false,
    "hasRequirements": false,
    "status": "Neu",
    "type": "Kurz",
    "text_pre": "",
    "text_post": "",
    "assignmentDeliveryDateSet": false,
    "productionDeliveryDateSet": false,
    "materialLocked": false,
    "totalWeight": 0,
    "totalVolume": 0,
    "totalTime": 0,
    "totalTimeHours": 0,
    "totalTimeDays": 0,
    "totalTimeWeeks": 0,
    "totalTimeMonths": 0,
    "specialRemarks": "",
    "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",
    "pricedate": "2024-02-15T13:34:53.799Z",
    "material": [],
    "machines": [],
    "workCenters": [],
    "skills": [],
    "positions": [],
    "shippingBoxes": [],
    "warnings": [],
    "comments": [],
    "createdAt": "2024-02-15T13:34:53.801Z",
    "updatedAt": "2024-02-15T13:34:53.801Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://production-api.ayoune.app/productionorders/65ce12fddb17b1c95ee037d2",
        "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": "ProductionSchemas",
        "title": "MODEL_PRODUCTIONSCHEMA",
        "href": "https://api.ayoune.app/config/productionschemas",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.productionschemas"
      },
      {
        "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": "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": "InternalOrders",
        "title": "MODEL_INTERNALORDER",
        "href": "https://api.ayoune.app/purchase/internalorders",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "purchase.internalorders"
      },
      {
        "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": "Assignments",
        "title": "MODEL_ASSIGNMENT",
        "href": "https://api.ayoune.app/sale/assignments",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "sale.assignments"
      },
      {
        "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": "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": "WorkCenters",
        "title": "MODEL_WORKCENTER",
        "href": "https://api.ayoune.app/production/workcenters",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "production.workcenters"
      },
      {
        "rel": "Departments",
        "title": "MODEL_DEPARTMENT",
        "href": "https://api.ayoune.app/config/departments",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.departments"
      }
    ],
    "debugId": "6a61989e2f837abff5645680",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_PRODUCTIONORDER",
        "href": "https://api.ayoune.app/production/productionorders/65ce12fddb17b1c95ee037d2/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_PRODUCTIONORDER",
        "href": "https://api.ayoune.app/production/productionorders/65ce12fddb17b1c95ee037d2/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.19.1",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2445",
      "reset": "1784784540",
      "resetDate": "Thu Jul 23 2026"
    },
    "responseTime": 196.375197,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend