Magidoc

rejectPurchaseOrder
Mutation

Rejects a submitted purchase order at the approver's decision point. Distinct from cancelling: reject is the approver's answer before approval, leaving the order at 'rejected' for its owner to revise and resubmit. Any rule route holding the order closes with it, so a rejected order never reads as still mid-route. Access: 'purchasingApprove' in a workspace where finance is enabled, and — when a rule route is holding the order — only the approver that route is waiting on. Errors: refuses an order that is not submitted, and refuses a missing or blank reason.

Arguments

#

purchaseOrderId

ID !
Non-null

Response

#

Returns PurchaseOrder !.

Example

#