Skip to main content
POST
Cancel a purchase order

Authorizations

Authorization
string
header
required

API key issued per entity via Settings > Developers > API Keys. Each key carries scopes (e.g. orders:read, products:write). Bearer token format: Authorization: Bearer ark_live_ent_ Test keys use ark_test_ent_. Both are issued per entity via Settings > Developers > API Keys.

Path Parameters

id
string<uuid>
required

Body

application/json
reason
string

Optional cancellation reason recorded on the activity log.

Response

Cancelled purchase order

A purchase order issued to a vendor.

id
string<uuid>
object
enum<string>
Available options:
purchase_order
entity_id
string<uuid>
read-only
po_number
string
read-only
vendor_id
string<uuid>
location_id
string<uuid> | null
status
enum<string>
read-only
Available options:
draft,
approved,
sent,
partially_received,
received,
closed,
cancelled
po_date
string<date-time>
expected_date
string<date-time> | null
subtotal
number
tax_total
number
shipping_total
number
po_total
number
currency
string
default:USD
notes
string | null
internal_notes
string | null
metadata
object | null
created_at
string<date-time>
read-only
updated_at
string<date-time>
read-only
approved_total
number | null
read-only

The order total as it stood when an approver approved this purchase order -- the basis they actually saw. NULL on every approval predating 2026-08-17 (no backfill) and NULL means "basis unknown", which is treated as fail-safe.

approval_stale
boolean
read-only

DERIVED, not stored. True when the order is approved AND its total has since risen above approved_total. The purchase order still receives normally; this is a non-blocking prompt to re-approve.

header_editability
object
read-only

Per-field verdicts for the header fields, from the same predicate the write handlers enforce. Keys: notes, internal_notes, due_date, expected_date, location_id, po_tracking_reference. Each is { allowed: boolean, reason: string|null } where reason is a token from the PoLineEditReason vocabulary.

billed_total
number
read-only

How much of this purchase order's commitment a vendor bill has already taken over: the sum of total over every linked bill in open, partial, paid or written_off. 0 when no bill has been raised, never null.

unbilled_balance
number
read-only

What the purchase order STILL commits the buyer to: max(order_total - billed_total, 0), cents-quantized. Read this rather than balance_due, which on a purchase order is the ORIGINAL COMMITMENT the header was raised for and is never decremented when a bill is raised (the payable is the bill). Clamped at zero because a vendor may add freight on the bill and over-bill the order.