Skip to main content
PATCH
Update Purchase Order Line Item

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

Idempotency-Key
string

Optional, client-generated key for deduplicating repeated write requests. A repeated request with the same key returns the originally recorded result instead of executing the effect again.

Required string length: 1 - 255
x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

purchaseOrderId
string<uuid>
required

ID of the purchase order the position belongs to. Der LieferantenBestellung Schlüssel.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

lineItemId
string<uuid>
required

ID of the position to patch. It must belong to the order named in the route; a position of another order is rejected exactly like an unknown one, so the API never confirms the existence of a document it otherwise denies. Der LieferantenBestellungPos Schlüssel.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

Query Parameters

disableAutomaticWorkflows
boolean
required

Indicates whether automatic workflows should be suppressed for this write. Defaults to false when omitted.

Body

application/json

Request model for UpdatePurchaseOrderLineItem command endpoint. Route parameters bind from the route, query parameters from the query string, everything else from the body.

quantity
number<decimal>

Ordered quantity; must be greater than zero. Editable only while the order is Open or Released (structural tier), and only on a position of type FreePosition or Item.

netPurchasePriceAmount
number<decimal>

Net purchase price per unit. Editable only while the order is Open or Released (structural tier). Zero is allowed — it is the column's own default — on every position type, including the charge and discount types, whose amount this field carries.

deliveryDate
string<date-time>

Expected delivery date of this position. Editable only while the order is Open or Released (structural tier), and only on a position of type FreePosition or Item. An explicit null clears the date.

note
string

Free-text note on the position, at most 2000 characters. Editable in every status including Completed (annotations tier).

confirmedQuantity
number<decimal>

Quantity confirmed by the supplier. Editable in every status except Completed (confirmations tier). An explicit null means "no confirmation present".

confirmedDeliveryDate
string<date-time>

Delivery date confirmed by the supplier. Editable in every status except Completed (confirmations tier). An explicit null means "no confirmation present".

confirmedPrice
number<decimal>

Net price confirmed by the supplier. Editable in every status except Completed (confirmations tier). An explicit null means "no confirmation present".

isLineItemConfirmed
boolean

Whether the supplier confirmed this position. Editable in every status except Completed (confirmations tier), and bidirectional — an explicit false is a valid reset, while null means "no confirmation status set", a state distinct from false. Fully independent of the order header's IsConfirmed: setting this never changes the header flag and never raises the confirmation event.

Response

The position was patched successfully. The body is the full re-queried order, including all its line items, so the caller can observe the side effects of the write rather than having to infer them.

The full detail of a purchase order, including its line items, addresses and the supplier snapshot.

purchaseOrderId
string<uuid>
required

Unique ID of the purchase order.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

supplierId
string<uuid>
required

ID of the supplier the order was placed with.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

status
enum<integer>
required

The order's current status.

Available options:
0,
5,
20,
30,
50,
500
currencyIso
string
required

ISO code of the order's currency.

currencyFactor
number<decimal>
required

Conversion factor of the order's currency.

isConfirmed
boolean
required

Whether the order has been confirmed by the supplier.

lineItems
object[]
required

The order's line items.

supplierName
string

The supplier's current display name, resolved at read time. NULL if the supplier could not be resolved.

orderNumber
string

The order's own number.

externalOrderNumber
string

The buyer's own order number.

referenceOrderNumber
string

A reference order number.

requestedDeliveryDate
string<date-time>

The delivery date requested from the supplier.

createdAt
string<date-time>

Date the order was created.

warehouseId
string<uuid>

Target warehouse of the incoming goods.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

companyId
string<uuid>

The company the order was placed for.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

internalComment
string

Internal comment on the order, not communicated to the supplier.

deliveryAddress
object

Delivery address of the order.

billingAddress
object

Billing address of the order.

supplier
object

Snapshot of the supplier's master data at the time the order was created.