← API reference
Mutation / logistics

createPurchaseOrder

Create a purchase order with lines, computing totals automatically. Requires purchaseOrder:write.

Arguments

The supplier, PO number, currency and lines of the order to create.

Returns CreatePurchaseOrderPayload!

Explore in a view

Fulfillment
View exact SDL
"""
Create a purchase order with lines, computing totals automatically. Requires purchaseOrder:write.
"""
createPurchaseOrder(
  """The supplier, PO number, currency and lines of the order to create."""
  input: CreatePurchaseOrderInput!
): CreatePurchaseOrderPayload! @topic(names: ["logistics"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.