Xentral icon

Xentral

Interact with Xentral ERP API

Actions196

Offer → Add Line Item

AI-generated

Summary

Add a new line item to an existing offer in the Xentral system by specifying the offer ID, product ID, quantity, and various optional line item details.

Inputs

  • Offer ID (required) — The ID of the offer to which the line item will be added.
  • Product ID (required) — The ID of the product to add as a line item.
  • Quantity (required) — The quantity for the product line item; must be at least 1.
  • Line Item Options — Optional additional properties for the line item, such as country of origin, customer product number, delivery date, visibility on PDF, description, discount percentage, HS code, internal comment, name override, number override, net price amount, price currency, and tax legal notice.

Output shape

A single record representing the updated offer or the newly added line item, as returned by the Xentral API after the addition.

The operation requires the offer and product IDs to be specified and returns the result from the API indicating success or failure. Optional line item details customize the added item. There is no pagination involved for this operation.

Examples

Example 1: Add a product line to a specific offer with a custom quantity and discount

Offer ID '123', Product ID '987', Quantity 5, Discount 10% in line item options

Links

Discussion