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.
orderNumber
Order reference number. Required. Maximum 255 characters.
supplierId
ID of the supplier for this order.
locationId
ID of the destination location.
note
Optional free-text note for the supplier.
dueDate
Expected delivery date (ISO 8601 date, e.g. 2026-04-15).
items
Initial line items. Items can also be added after creation.
Response
This endpoint returns an object.
id
Unique identifier for the purchase order.
itemCount
Number of line items in this purchase order.
assignedUserIds
IDs of users assigned to this purchase order.
orderNumber
Human-readable order reference number (e.g. PO-1042).
status
Current lifecycle status of the purchase order.
type
Optional classification tag for the order (e.g. STANDARD, EMERGENCY).
totalCost
Grand total cost of all items in USD.
subtotal
Subtotal before any adjustments in USD.
note
Free-text note for the supplier.
supplier
Reference to the supplier for this order.
location
Reference to the destination location.
dueDate
ISO 8601 date when the order is expected (e.g. 2026-04-15).
receivedAt
ISO 8601 timestamp when the order was marked received. null if not yet received.
createdAt
ISO 8601 timestamp when the record was created.
updatedAt
ISO 8601 timestamp when the record was last updated.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error