Xentral icon

Xentral

Interact with Xentral ERP API

Actions196

Purchase Order → Update Line Item

AI-generated

Summary

Update an existing line item in a specified purchase order by providing the purchase order ID, line item ID, and the fields to update.

Inputs

  • Purchase Order ID (required) — The ID of the purchase order containing the line item to update.
  • Line Item ID (required) — The ID of the line item within the purchase order to update.
  • Update Fields (required) — A collection of fields to update on the line item, including delivery date, delivery date as calendar week, description, name, price amount, price currency, product ID, quantity, sort order, and tax legal notice.

Output shape

The updated line item object reflecting the changes made.

The operation requires at least the Purchase Order ID and Line Item ID to identify the line item to update. Update Fields are optional but at least one field should be provided to modify the line item. The response contains the updated data of the line item.

Examples

Example 1: Update the quantity and price of a specific line item in a purchase order.

Provide the purchaseOrderId, lineItemId, and set Update Fields with new quantity and priceAmount values.

Links

Discussion