Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.firstresonance.io/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Record receiving of a PO line — creates the corresponding PartInventory rows. Use case group: Manage Supply Chain

Mutation

mutation ReceivePO($input: ReceivePurchaseOrderLineInput!) {
  receivePurchaseOrderLine(input: $input) {
    purchaseOrderLineItem { id receivedQuantity }
    partInventories { id serialNumber lotNumber quantity location { id name } }
  }
}

Variables

{
  "input": {
    "purchaseOrderLineItemId": 7001,
    "quantityReceived": 100,
    "lotNumber": "LOT-2026-0123",
    "locationId": 4
  }
}

Sample response

{
  "data": {
    "receivePurchaseOrderLine": {
      "purchaseOrderLineItem": { "id": 7001, "receivedQuantity": 100 },
      "partInventories": [ { "id": 12345, "serialNumber": null, "lotNumber": "LOT-2026-0123", "quantity": 100, "location": { "id": 4, "name": "WH-Receiving" } } ]
    }
  }
}

Notes

Pass a serialNumber instead of lotNumber (or in addition) for serialized intake.