Inventory > Purchase Orders > purchaseOrdersReject
Commerce APIInventoryPurchase OrderspurchaseOrdersReject
purchaseOrdersReject
POST:purchase_orders/reject.json

Description

Mark line items as not received.

Permission bit: "purchase_orders.modify"

Topic: Purchase Orders

Arguments

data: PurchaseOrderReject!

Main argument for mutations.


purchase_order_id: String!

Unique purchase order identifier. See also: Unique Identifiers

Example: "po_EQzGqWoY"


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

line_items: [PurchaseOrderLineItemPartial!]


reason: String

What happened to items?

Example: "TODO"


reject_all: Boolean

Mark all items as rejected

Example: true


Result

PurchaseOrder

Preview (typescript)

Loading module