Skip to main content
PATCH
Error

Authorizations

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

Path Parameters

purchase_order_id
integer
required
id
integer
required

Body

application/json

Only the given keys change. Match type and tolerances are frozen once the item has goods receipts or invoice items; quantity can't drop below what was received (net of rejections) or matched.

description
string | null
unit_type
string | null
category_id
integer | null

A category of the workspace (null clears it). The stored text is the name the item's package committed for it, else the current path; re-sending the item's own category keeps the stored text.

quantity
string
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.

package_section_id
integer

Moves a manual item to another section of an in-progress / finished package of the workspace (and to its package and project; the category text is re-picked for the new package). Refused for baseline-linked items (they follow their row's section) and, for another project, once the item has goods receipts or invoice items.

package_baseline_item_id
integer | null

Re-link to another baseline row of the workspace (the item moves to that row's package, section and project), or null to unlink (the item keeps its package, section and project).

Response

OK

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>