Create Sale Line Addon
Creates an addon line for an existing sale line. The API consumer must provide a unique GUID for the addon line ID. Use this endpoint when you need to add addons after the parent line has been created. Returns the saleId and a refresh object with SystemIds of updated entities and totals.
Authentication
x-np-api-keystring
API Key authentication via header
Path parameters
tenant
Your Entra Tenant ID. More details.
environment
Your Business Central Environment. More details.
company
Your Business Central Company. More details.
saleId
The id of a POS sale. This can be provided by the API consumer when creating a new sale.
addonLineId
The unique GUID for this new addon line
Headers
x-api-version
Used for API versioning. More details.
Request
This endpoint expects an object.
parentLineId
The SystemId of the parent sale line this addon applies to
addonNo
The addon configuration number
addonLineNo
The specific line within the addon configuration
quantity
Quantity of the addon (defaults to 1)
selectedOptionLineNo
For Select-type addons, the selected option line number
Response
This endpoint returns an object.
saleId
The id of a POS sale. This can be provided by the API consumer when creating a new sale.
receiptNo
posUnit
posStore
date
startTime
customerNo
salespersonCode
vatBusinessPostingGroup
refreshedSaleLines
Full objects for all sale lines that were created or modified
refreshedPaymentLines
Full objects for all payment lines that were created or modified
deletedSaleLines
Array of SystemIds (UUIDs) for sale lines that were deleted
deletedPaymentLines
Array of SystemIds (UUIDs) for payment lines that were deleted
totalSalesAmountInclVat
Total amount of all sale lines including VAT
totalPaymentAmount
Total amount of all payment lines
