Cancel purchase order
hub_cancel_purchase_orderCancel an order the merchant no longer wants. CONFIRM FIRST, naming the supplier and the PO number — there is no undo, and the order disappears from the list rather than showing as cancelled. REFUSED once any stock has been received against it: that stock is real and the record has to stay. Receive the rest instead, or leave it partially received. Cancelling does NOT tell the supplier anything. If the order was already sent, the merchant still has to contact them — say so.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purchaseOrderId | Yes | Purchase order id from get_purchase_orders — not a PO number |