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