Skip to main content

Cancel purchase order

PATCH 

/v1/entities/:entity_id/purchase_orders/:uuid/cancel

Cancels a purchase order that is still in draft or ordered status and has no receipts against it.

Requires the purchase_orders:write scope. The key's shop must also be linked to {entity_id}, else 403 — see the API key scheme on the Authentication page. A purchase order can be cancelled only while its status is draft or ordered, it has no receipts, and it has no partially-applied incoming inventory changes — otherwise 422. A purchase_orders:write key can cancel a purchase order this way, but cannot mark one ordered, receive it, or delete it.

Request

Responses

Purchase order cancelled.