Skip to main content

Purchase Order

Purchase Orders represent formal requests issued by a buyer to a supplier, authorising the procurement of specific products at agreed quantities.

The purchase_order Object

Field NameTypeDescription
iduuidPrimary key for the purchase order.
user_createdobjectUser who created the record. Read-only.
date_createddatetimeTimestamp in ISO 8601 when the record was created. Read-only.
user_updatedobjectUser who last updated the record. Read-only.
date_updateddatetimeTimestamp in ISO 8601 when the record was last updated. Read-only.
statusstringCurrent status of the purchase order. One of: draft, open, partial, completed, cancelled.
purchase_order_numberstringHuman-readable purchase order number or reference.
urnstringUniform Resource Name uniquely identifying this purchase order, for use in EPCIS messages (typically auto created by system).
purchase_order_datestringDate the purchase order was issued (ISO 8601 date, e.g. 2024-03-15).
purchase_order_issuerobjectOrganisation that issued this purchase order.
supplierobjectOrganisation acting as the supplier for this order.
ship_to_locationobjectLocation to which the ordered goods should be delivered.
line_itemsarray of objectsLine items detailing the products and quantities ordered.

Sub-Objects

User Object (user_created, user_updated)

See Users for the full schema.

Organisation Object (purchase_order_issuer, supplier)

See Organisation for the full schema.

Location Object (ship_to_location)

See Location for the full schema.

Purchase Order Line Item (line_items)

FieldTypeDescription
iduuidPrimary key of the line item.
user_createdobjectUser who created the line item. Read-only.
date_createddatetimeWhen the line item was created. Read-only.
user_updatedobjectUser who last updated the line item. Read-only.
date_updateddatetimeWhen the line item was last updated. Read-only.
purchase_order_iduuidReference to the parent purchase order.
productobjectProduct being ordered. Links to Product.
quantitynumberQuantity of the product ordered.
uomobjectUnit of measurement for the quantity. Links to Unit of Measurement.
unit_pricenumberPrice per unit of the product.
currencyobjectCurrency for the unit price.

List Purchase Orders

GET /items/purchase_order

Query Parameters

Supports all global query parameters.

Returns

An array of up to limit purchase order objects. If no items are available, data will be an empty array.


Retrieve a Purchase Order

GET /items/purchase_order/:id

Returns

Returns a purchase order object if a valid primary key was provided.


Create a Purchase Order

POST /items/purchase_order

{
"purchase_order_number": "PO-2024-001",
"purchase_order_date": "2024-03-15",
"status": "issued",
"purchase_order_issuer": "org-uuid",
"supplier": "supplier-org-uuid",
"ship_to_location": "location-uuid"
}

Query Parameters

Supports all global query parameters.

Request Body

A partial purchase order object.

Returns

Returns the purchase order object for the created record.


Update a Purchase Order

PATCH /items/purchase_order/:id

{
"status": "received"
}

Query Parameters

Supports all global query parameters.

Request Body

A partial purchase order object.

Returns

Returns the purchase order object for the updated record.


Delete a Purchase Order

DELETE /items/purchase_order/:id

Returns

Empty body.