Cancel Purchase Order
Cancels the purchase order, freeing its external reference for reuse. Responds 409 when it is already cancelled.
Authentication
AuthorizationBearer
Authentication using Personal Access Token (PAT) token
OR
AuthorizationBearer
OAuth2 authentication using JWT tokens
Path parameters
id
Id of the purchase order
Response
OK
created_at
When the purchase order was created (UTC).
external_reference
The merchant’s own reference, unique among the merchant’s non-cancelled purchase orders.
line_items
The expected line items.
notes
Free-text notes.
purchase_order_id
Unique id of the purchase order.
status
A purchase order status.
supplier
The supplier, or null when none is set.
updated_at
When the purchase order was last changed (UTC).
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error

