Playground

Playground

PurchaseOrder

/api/v1/finance/purchase-orders

A purchase order issued to a vendor.

listgetcreateupdateapprove

Schema

FieldTypeNotes
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumfrontend | backend | server | system | apiWhere the write originated. Defaults to 'api'.
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
numberstringHuman-readable unique purchase order number (e.g. 'PO-2026-0018').
vendor_iduuidUUID of the Vendor this PO is raised against.
statusstringLifecycle status of the purchase order.
requested_by_iduuidUUID of the Person who raised this purchase order.
approved_by_iduuidUUID of the Person who approved this purchase order. Null until approved.
issued_datedate-timeISO 8601 date the PO was formally issued to the vendor.
expected_delivery_datedate-timeISO 8601 expected date for delivery or fulfilment.
currencystringISO 4217 three-character currency code.
totalnumberTotal value of the purchase order.
line_itemsjsonOrdered list of line items for this purchase order.
notesstringFree-form notes or delivery instructions.
linked_contract_iduuidUUID of the Contract that covers this PO.
cost_center_iduuidUUID of the CostCenter to which this PO is charged.
supplier_iduuidSupplier / vendor the PO is raised against.
amountnumberPO total value.
order_datedate-timeISO 8601 date the PO was placed.
budget_iduuidBudget this PO draws down.
requested_byuuidPerson who raised this purchase order.
approved_byuuidPerson who approved this purchase order.
tagsjsonFree-form tags for grouping and filtering.

API

client.finance.purchaseOrders.*
Loading manifest…