Open Inventory / Docs
EndpunktePurchasingPurchase ordersOrderid

Retrieve one purchase order

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/{orderId}

Authentifizierung

bearerAuth
headerAuthentifizierungBearer <inv_ token>

Pfadparameter

orderId*string
Formatuuid

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 order

application/json
  1. response
order*
Beispielanfrage
curl -X GET 'https://inventory.example.com/api/v1/purchase-orders/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Beispielantwort
{  "order": {    "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  }}