Open Inventory / Docs
EndpunktePurchasingPurchase orders

List purchase orders and their open incoming quantities

Die API läuft auf deiner Anwendungsinstanz. Schemas und Feldnamen stammen unverändert aus der OpenAPI-Spezifikation. Browsergebundene Aufrufe benötigen eine Sitzung auf der Instanz.

GET
/purchase-orders

Authentifizierung

bearerAuth
headerAuthentifizierungBearer <inv_ token>

Abfrageparameter

status?string
Mögliche Werte"draft""ordered""partially-received""received""cancelled"
limit?integer
Bereich1 <= value <= 100
Standard100

Header-Parameter

X-Organization-ID?string

Organization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.

Formatuuid

Antwortinhalt

Purchase orders

application/json
  1. response
orders*array<>
Beispielanfrage
curl -X GET 'https://inventory.example.com/api/v1/purchase-orders'
Beispielantwort200
{  "orders": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "reference": "string",      "supplier": "string",      "status": "draft",      "orderedAt": "2019-08-24T14:15:22Z",      "expectedAt": "2019-08-24T14:15:22Z",      "note": "string",      "createdBy": "string",      "lines": [        {          "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",          "orderedQuantity": 1,          "purchaseQuantity": 1,          "expectedAt": "2019-08-24T14:15:22Z",          "note": "string",          "unitPriceCents": 0,          "priceCurrency": "str",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "resourceName": "string",          "resourceSku": "string",          "resourceCurrency": "str",          "baseUnitName": "string",          "purchaseUnitName": "string",          "purchaseUnitFactor": 1,          "orderedPurchaseQuantity": 0,          "receivedPurchaseQuantity": 0,          "openPurchaseQuantity": 0,          "receivedQuantity": 0,          "openQuantity": 0,          "trackingMode": "bulk",          "totalPriceCents": 0        }      ],      "totalOrdered": 0,      "totalReceived": 0,      "totalOpen": 0    }  ]}