receivePurchaseOrder

Topics: Logistics

Record receipt of purchase order lines, optionally adding to warehouse stock. Requires purchaseOrder:write.

Returns

ReceivePurchaseOrderPayload!

Arguments

The purchase order being delivered against, the quantities received per line, and optionally the warehouse location to put the goods away into.

Examples

Receive Logistics Paper

mutation ReceiveLogisticsPaper($input: ReceivePurchaseOrderInput!) {
  receivePurchaseOrder(input: $input) {
    purchaseOrder { id status }
    updatedLines { id receivedQuantity }
    stockEntries { id quantity unit availableQuantity }
    errors { path message }
  }
}

Variables

{
  "input": {
    "purchaseOrderId": "pur_000000a48h848r248h248h248h",
    "warehouseLocationId": "wlc_000000448h848r248h248h248h",
    "receivedLines": [
      {
        "purchaseOrderLineId": "pul_000000c48h848r248h248h248h",
        "receivedQuantity": 3000
      }
    ]
  }
}
Exact field SDL
"""
Record receipt of purchase order lines, optionally adding to warehouse stock. Requires purchaseOrder:write.
"""
receivePurchaseOrder(
  """
  The purchase order being delivered against, the quantities received per line, and optionally the warehouse location to put the goods away into.
  """
  input: ReceivePurchaseOrderInput!
): ReceivePurchaseOrderPayload! @topic(names: ["logistics"]) @topic_example(names: ["logistics.receive-paper"])

Declared on Mutation. Access is checked by the platform for each operation.