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
Method | Return Type | Description |
---|---|---|
GET salesInvoiceLine | salesInvoiceLine | Gets a sales invoice line object. |
DELETE salesInvoiceLine | none | Deletes a sales invoice line object. |
POST salesInvoiceLine | salesInvoiceLine | Creates a sales invoice line object. |
PATCH salesInvoiceLine | salesInvoiceLine | Updates a sales invoice line object. |
Navigation
Navigation | Return Type | Description |
---|---|---|
salesInvoice | salesInvoice | Gets the salesinvoice of the salesInvoiceLine. |
item | item | Gets the item of the salesInvoiceLine. |
account | account | Gets the account of the salesInvoiceLine. |
unitOfMeasure | unitOfMeasure | Gets the unitofmeasure of the salesInvoiceLine. |
itemVariant | itemVariant | Gets the itemvariant of the salesInvoiceLine. |
dimensionSetLines | dimensionSetLines | Gets the dimensionsetlines of the salesInvoiceLine. |
location | location | Gets the location of the salesInvoiceLine. |
Properties
Property | Type | Description |
---|---|---|
id | GUID | The unique ID of the sales invoice line. Non-editable. |
documentId | GUID | The ID of the parent sales invoice line. |
sequence | integer | The line sequence number. |
itemId | GUID | The ID of the item in the sales invoice line. |
accountId | GUID | The id of the account that the sales invoice line is related to. |
lineType | NAV.invoiceLineAggLineType | The type of the sales invoice line. It can be "Comment", "Account", "Item", "Resource" Value", "Fixed Asset" or "Charge". |
lineObjectNumber | string | The number of the object (account or item) of the sales invoice line. |
description | string | Specifies the description of the sales invoice line. |
description2 | string | |
unitOfMeasureId | GUID | The ID of unit of measure for the sales invoice line. |
unitOfMeasureCode | string | The code of unit of measure for the sales invoice line. |
quantity | decimal | The quantity of the item in the sales invoice line. |
unitPrice | decimal | Specifies the price for one unit of the item in the specified sales invoice line. |
discountAmount | decimal | The sales invoice line discount amount. |
discountPercent | decimal | The line discount percent. |
discountAppliedBeforeTax | boolean | Specifies whether the discount is applied before tax. |
amountExcludingTax | decimal | The line amount excluding the tax. Read-Only. |
taxCode | string | The tax code for the line. |
taxPercent | decimal | The tax percent for the line. Read-Only. |
totalTaxAmount | decimal | The total tax amount for the sales invoice line. Read-Only. |
amountIncludingTax | decimal | The total amount for the line including tax. Read-Only. |
invoiceDiscountAllocation | decimal | The sales invoice line discount allocation is the sales invoice line discount distributed on the total amount. Read-Only. |
netAmount | decimal | The net amount is the amount including all discounts (taken from the sales invoice line). Read-Only. |
netTaxAmount | decimal | The net tax amount is the tax amount calculated from net amount. Read-Only. |
netAmountIncludingTax | decimal | The net amount including tax is the total net amount including tax. Read-Only. |
shipmentDate | date | The date the item in the line is expected to ship. |
itemVariantId | GUID | The ID of the item variant in the sales invoice line. |
locationId | GUID |
JSON representation
Here is 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"
}
Related information
GET salesInvoiceLine
DELETE salesInvoiceLine
POST salesInvoiceLine
PATCH salesInvoiceLine