Skip to main content

AppUpdatePurchaseOrderInput

Changes to a DRAFT purchase order. A purchase order past DRAFT is refused.

input AppUpdatePurchaseOrderInput {
expectedVersion: Int
lines: [AppPurchaseOrderLineInput!]
notes: String
paymentTerms: String
purchaseOrderId: ID!
warehouseId: ID
}

Fields​

AppUpdatePurchaseOrderInput.expectedVersion ● Int scalar​

The purchase order version you read. One changed since then is refused instead of overwritten.

AppUpdatePurchaseOrderInput.lines ● [AppPurchaseOrderLineInput!] list input​

The order's lines, replacing the ones it has: at least 1, at most 200. A line without unitCost keeps the cost and discount the order already has for that variant and unit; a new one takes the supplier's standard cost.

AppUpdatePurchaseOrderInput.notes ● String scalar​

Notes for the supplier.

AppUpdatePurchaseOrderInput.paymentTerms ● String scalar​

A payment term code the organization offers, such as NET_30. Without it the supplier's own term, else the organization's default, applies.

AppUpdatePurchaseOrderInput.purchaseOrderId ● ID! non-null scalar​

The ID of the purchase order.

AppUpdatePurchaseOrderInput.warehouseId ● ID scalar​

The ID of the warehouse the goods should arrive at.

Member Of​

appUpdatePurchaseOrder mutation