B2B feature. Learn more
rejectPurchaseOrders mutation
The rejectPurchaseOrders
mutation rejects one or more purchase orders. The specified purchase orders must have a status of PENDING.
Syntax
Copied to your clipboardmutation {rejectPurchaseOrders(input: PurchaseOrdersActionInput!){PurchaseOrdersActionOutput}}
Reference
The rejectPurchaseOrders
reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following example rejects a purchase order.
Request:
Copied to your clipboardmutation {rejectPurchaseOrders(input: {purchase_order_uids: ["MTA="]}) {purchase_orders {numberuidstatus}errors {messagetype}}}
Response:
Copied to your clipboard{"data": {"rejectPurchaseOrders": {"purchase_orders": [{"number": "000000010","uid": "MTA=","status": "REJECTED"}],"errors": []}}}