salesInvoiceLine resource type

Represents a sales invoice line in Business Central.

Note

For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central.

Methods

MethodReturn TypeDescription
GET salesInvoiceLinesalesInvoiceLineGets a sales invoice line object.
DELETE salesInvoiceLinenoneDeletes a sales invoice line object.
POST salesInvoiceLinesalesInvoiceLineCreates a sales invoice line object.
PATCH salesInvoiceLinesalesInvoiceLineUpdates a sales invoice line object.
NavigationReturn TypeDescription
salesInvoicesalesInvoiceGets the salesinvoice of the salesInvoiceLine.
itemitemGets the item of the salesInvoiceLine.
accountaccountGets the account of the salesInvoiceLine.
unitOfMeasureunitOfMeasureGets the unitofmeasure of the salesInvoiceLine.
itemVariantitemVariantGets the itemvariant of the salesInvoiceLine.
dimensionSetLinesdimensionSetLinesGets the dimensionsetlines of the salesInvoiceLine.
locationlocationGets the location of the salesInvoiceLine.

Properties

PropertyTypeDescription
idGUIDThe unique ID of the sales invoice line. Non-editable.
documentIdGUIDThe ID of the parent sales invoice line.
sequenceintegerThe line sequence number.
itemIdGUIDThe ID of the item in the sales invoice line.
accountIdGUIDThe id of the account that the sales invoice line is related to.
lineTypeNAV.invoiceLineAggLineTypeThe type of the sales invoice line. It can be "Comment", "Account", "Item", "Resource" Value", "Fixed Asset" or "Charge".
lineObjectNumberstringThe number of the object (account or item) of the sales invoice line.
descriptionstringSpecifies the description of the sales invoice line.
description2string
unitOfMeasureIdGUIDThe ID of unit of measure for the sales invoice line.
unitOfMeasureCodestringThe code of unit of measure for the sales invoice line.
quantitydecimalThe quantity of the item in the sales invoice line.
unitPricedecimalSpecifies the price for one unit of the item in the specified sales invoice line.
discountAmountdecimalThe sales invoice line discount amount.
discountPercentdecimalThe line discount percent.
discountAppliedBeforeTaxbooleanSpecifies whether the discount is applied before tax.
amountExcludingTaxdecimalThe line amount excluding the tax. Read-Only.
taxCodestringThe tax code for the line.
taxPercentdecimalThe tax percent for the line. Read-Only.
totalTaxAmountdecimalThe total tax amount for the sales invoice line. Read-Only.
amountIncludingTaxdecimalThe total amount for the line including tax. Read-Only.
invoiceDiscountAllocationdecimalThe sales invoice line discount allocation is the sales invoice line discount distributed on the total amount. Read-Only.
netAmountdecimalThe net amount is the amount including all discounts (taken from the sales invoice line). Read-Only.
netTaxAmountdecimalThe net tax amount is the tax amount calculated from net amount. Read-Only.
netAmountIncludingTaxdecimalThe net amount including tax is the total net amount including tax. Read-Only.
shipmentDatedateThe date the item in the line is expected to ship.
itemVariantIdGUIDThe ID of the item variant in the sales invoice line.
locationIdGUID

JSON representation

Here's a JSON representation of the salesInvoiceLine resource.

{
    "id": "GUID",
    "documentId": "GUID",
    "sequence": "integer",
    "itemId": "GUID",
    "accountId": "GUID",
    "lineType": "NAV.invoiceLineAggLineType",
    "lineObjectNumber": "string",
    "description": "string",
    "description2": "string",
    "unitOfMeasureId": "GUID",
    "unitOfMeasureCode": "string",
    "quantity": "decimal",
    "unitPrice": "decimal",
    "discountAmount": "decimal",
    "discountPercent": "decimal",
    "discountAppliedBeforeTax": "boolean",
    "amountExcludingTax": "decimal",
    "taxCode": "string",
    "taxPercent": "decimal",
    "totalTaxAmount": "decimal",
    "amountIncludingTax": "decimal",
    "invoiceDiscountAllocation": "decimal",
    "netAmount": "decimal",
    "netTaxAmount": "decimal",
    "netAmountIncludingTax": "decimal",
    "shipmentDate": "date",
    "itemVariantId": "GUID",
    "locationId": "GUID"
}

GET salesInvoiceLine
DELETE salesInvoiceLine
POST salesInvoiceLine
PATCH salesInvoiceLine