Create Purchase Order

Creates a new purchase order. Items can be included in the request body or added later via the items endpoints.

Requires scope: purchase_orders:write

Authentication

API_KEYstring
API Key authentication via header

Request

This endpoint expects an object.
orderNumberstringRequired
Order reference number. Required. Maximum 255 characters.
supplierIdUUIDOptional
ID of the supplier for this order.
locationIdUUIDOptional
ID of the destination location.
notestringOptional

Optional free-text note for the supplier.

dueDatedateOptional

Expected delivery date (ISO 8601 date, e.g. 2026-04-15).

itemslist of objectsOptional
Initial line items. Items can also be added after creation.

Response

This endpoint returns an object.
idUUID
Unique identifier for the purchase order.
itemCountinteger
Number of line items in this purchase order.
assignedUserIdslist of UUIDs
IDs of users assigned to this purchase order.
orderNumberstring

Human-readable order reference number (e.g. PO-1042).

statusenum
Current lifecycle status of the purchase order.
typestring

Optional classification tag for the order (e.g. STANDARD, EMERGENCY).

totalCostdouble
Grand total cost of all items in USD.
subtotaldouble
Subtotal before any adjustments in USD.
notestring

Free-text note for the supplier.

supplierobject
Reference to the supplier for this order.
locationobject
Reference to the destination location.
dueDatedate

ISO 8601 date when the order is expected (e.g. 2026-04-15).

receivedAtdatetime

ISO 8601 timestamp when the order was marked received. null if not yet received.

createdAtdatetime
ISO 8601 timestamp when the record was created.
updatedAtdatetime
ISO 8601 timestamp when the record was last updated.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error