Open Inventory / Docs
EndpunktePurchasingPurchase ordersOrderidLinesLineidReceipts

Receive all or part of an ordered line into physical stock

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.

POST
/purchase-orders/{orderId}/lines/{lineId}/receipts

Authentifizierung

bearerAuth
headerAuthentifizierungBearer <inv_ token>

Pfadparameter

orderId*string
Formatuuid
lineId*string
Formatuuid

Header-Parameter

Idempotency-Key*string

UUID identifying this atomic operation; reuse it only to retry the exact same request.

Formatuuid
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

Anfrageinhalt

application/json
  1. body
quantity*integer

Receipt quantity in base stock units.

Bereich1 <= value <= 1000
purchaseQuantity?integer

Receipt quantity in the purchase unit snapshotted on the order line.

Bereich1 <= value <= 1000000
receivedAt?string
Formatdate-time
location?|
Längelength <= 240
note?string
Längelength <= 20000
unitCodes?array<>

Antwortinhalt

Replayed the original goods receipt

Beispielanfrage
curl -X POST 'https://inventory.example.com/api/v1/purchase-orders/497f6eca-6276-4993-bfeb-53cbbbba6f08/lines/497f6eca-6276-4993-bfeb-53cbbbba6f08/receipts' \  -H 'Idempotency-Key: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Beispielantwort
Leer