Skip to main content
POST
Error

Authorizations

authorization
string
header
required
X-Workspace-ID
string
header
required

Path Parameters

purchase_order_id
integer
required

Body

application/json

Either the baseline filter (one item per matching baseline row — of one package with package_id, or across projects without it; description, unit, category and unit price come from the row, quantity is the row's remaining quantity — adjust single items afterwards with PATCH; each item belongs to its row's package, section and project) or a single manual item (package_section_id, description, quantity, unit_price required, no filter). One order can hold items of several projects. Match type and tolerances apply to every created item.

package_id
integer

A baselined (in progress / finished) package of the workspace whose rows are selected; any project's package, not only the projects already on the order. Omit to select across projects with filter alone — the baselined packages of the active projects you're a member of, as the cross-project Committed grid lists them.

package_section_id
integer

Manual items only (required) — a section of an in-progress / finished package of any project of the workspace. The item takes the section's package and project. Sending it (without filter) marks the request as a manual item; package_id may be sent along and must then be the section's package.

filter
object

Same filter as baseline find_items (ids, origin, category, package_section_ids, supplier fields, search, remaining); without package_id also the cross-project project_ids and package_ids (ignored with package_id). Every matching row becomes one item (max 5000).

description
string
unit_type
string | null
category_id
integer | null

Manual items only — a category of the workspace. The stored category text is the name the item's package committed for it, else the current path. Baseline rows bring their own.

quantity
string

Manual items only (required); ignored for baseline rows — they get their remaining quantity.

unit_price
string
match_type
enum<string>
Available options:
two_way,
three_way,
four_way
price_variance_percent
string | null

Null / blank = this price limit is not checked.

quantity_variance_percent
string
amount_variance_absolute
string | null

Null / blank = this price limit is not checked.

Response

Created

id
integer
required
project_id
integer
required

The project this line procures for — the baseline row's project for linked items, the picked section's project for manual ones. Receipts, inspections, matches and invoice lines of the item carry it.

purchase_order
object
required
package_id
integer
required

The package the item counts for in Budget Analysis — the baseline row's, or the picked section's for a manual item.

package_section_id
integer
required

The section the item counts for in Budget Analysis — the baseline row's, or the picked one for a manual item.

match_type
enum<string>
required
Available options:
two_way,
three_way,
four_way
category_id
integer | null
required

The category the item was picked with (the row's for linked items). May no longer exist.

quantity
string
required
Example:

"1000.00"

unit_price
string
required
Example:

"10.00"

received_quantity
string
required

Σ goods receipt quantity.

accepted_quantity
string
required

Σ accepted quantity of inspections.

matched_quantity
string
required

Σ matched invoice quantity.

invoiced_quantity
string
required

Σ quantity of the item's lines on non-cancelled invoices, matched or not. Above 0, match type and tolerances are frozen.

baseline_item
object | null

The baseline row this item was created from (or re-linked to); null for manual items.

description
string | null
category
string | null

Frozen category text — the row's for linked items; for a manual item the name its package committed for category_id, else the path at that time.

unit_type
string | null
price_variance_percent
string | null

Max over-price in % of the PO unit price; null = not checked. With both price tolerances null, no over-price is allowed.

Example:

"2.0000"

quantity_variance_percent
string
Example:

"0.0000"

amount_variance_absolute
string | null

Max over-price × quantity per invoice item; null = not checked.

Example:

"50.00"

position
integer
created_at
string<date-time>
updated_at
string<date-time>