🔒 Update offer line item V3

This endpoint is currently in Beta and available for testing. It may contain bugs, and breaking changes can occur at any time without prior notice. We do not recommend using Beta endpoints in production environments. Should you choose to use it in production, you assume full responsibility for any resulting issues.

This endpoint requires the following scopes: offer:update.

Update a line item in an offer.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
string
required
Body Params
string

Name of the line item.

string | null

Description of the line item.

float

Quantity of the line item.

date | null

Delivery date of the line item.

boolean
Defaults to false

Whether to show the delivery date as calendar week or explicit.

string | null

Internal comment for the line item.

integer

Sort order of the line item.

string | null

Unit of the line item (e.g., "kg", "pcs").

string | null

Country of origin for the product. The legacy empty value "0" is returned as null.

string | null

Harmonized System (HS) code for the product.

string | null

Customer product number for the line item.

string | null

Packaging unit (VPE) of the line item — how many units one package contains. On purchase orders a numeric value greater than 1 makes the generated PDF present the line in packages: the price is printed per package, the quantity in packages, and the unit as "VPE". On all other document types the value is stored and carried over on document conversion, but nothing reads it — in particular, the stored quantity, the stored unit price, and the values returned by the API are never derived from it.

project

Project of the line item. Pass null to remove the project assignment.

customFields
array of objects

Custom field values for the line item. Accepts the customField1 to customField40 keys as well as any custom field configured for this line item in your Xentral instance. Listed keys are written, keys that are not listed are left untouched. Pass value: null to clear a single field.

customFields
float

Discount percentage

price
object

Price information

string
length ≤ 255

Legal notice regarding tax for this line item

printSettings
object

Print settings for this line item

boolean
Defaults to false

If true, no discount may be applied to this line item.

string | null

Formula used to compute the quantity.

string | null

Formula used to compute the price.

string | null

Cost center for this line item.

purchasePrice
object

Purchase price (cost price) of this line item. The currency must match the document currency. Setting it marks the price as manually provided (not resolved from a price list) and it is used for the contribution margin calculation.

boolean

Whether this line item is optional.

string | null

Free text shown instead of the price.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

401

Unauthorized

403

Forbidden

404

Not Found

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json