{"title":"salesOrderLine resource type","url":"https://jonas-paprotka.de/docs/dev-itpro/api-reference/v2.0/resources/dynamics_salesorderline/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_salesorderline, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_salesorderline","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"A sales order line object in Dynamics 365 Business Central.","date":"2026-08-21","meta":{"topic":"reference"},"outline":[{"level":1,"title":"salesOrderLine resource type","slug":"salesorderline-resource-type","at":0,"chars":5105},{"level":2,"title":"Methods","slug":"methods","at":240,"chars":421},{"level":2,"title":"Navigation","slug":"navigation","at":661,"chars":566},{"level":2,"title":"Properties","slug":"properties","at":1227,"chars":2556},{"level":2,"title":"JSON representation","slug":"json-representation","at":3783,"chars":1108},{"level":2,"title":"Related information","slug":"related-information","at":4891,"chars":214}],"text":"# salesOrderLine resource type\nRepresents a sales order line in Business Central.\n> NOTE\n> For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central<../enabling-apis-for-dynamics-nav>.\n## Methods\nMethod|Return Type|Description\n../api/dynamics_salesorderline_get|salesOrderLine|Gets a sales order line object.\n../api/dynamics_salesorderline_delete|none|Deletes a sales order line object.\nPOST salesOrderLine<../api/dynamics_salesorderline_create>|salesOrderLine|Creates a sales order line object.\nPATCH salesOrderLine<../api/dynamics_salesorderline_update>|salesOrderLine|Updates a sales order line object.\n## Navigation\nNavigation|Return Type|Description\ndynamics_salesorder|salesOrder|Gets the salesorder of the salesOrderLine.\ndynamics_item|item|Gets the item of the salesOrderLine.\ndynamics_account|account|Gets the account of the salesOrderLine.\ndynamics_unitofmeasure|unitOfMeasure|Gets the unitofmeasure of the salesOrderLine.\ndynamics_itemvariant|itemVariant|Gets the itemvariant of the salesOrderLine.\ndynamics_dimensionsetline|dimensionSetLines|Gets the dimensionsetlines of the salesOrderLine.\ndynamics_location|location|Gets the location of the salesOrderLine.\n## Properties\n|Property|Type|Description|\n|id|GUID|The unique ID of the sales order line. Non-editable.|\n|documentId|GUID|The ID of the parent sales order line.|\n|sequence|integer|The line sequence number.|\n|itemId|GUID|The ID of the item in the sales order line.|\n|accountId|GUID|The id of the account that the sales order line is related to.|\n|lineType|NAV.invoiceLineAggLineType|The type of the sales order line. It can be \"Comment\", \"Account\", \"Item\", \"Resource\" Value\", \"Fixed Asset\" or \"Charge\".|\n|lineObjectNumber|string|The number of the object (account or item) of the sales order line.|\n|description|string|Specifies the description of the sales order line.|\n|description2|string||\n|unitOfMeasureId|GUID|The ID of unit of measure for the sales order line.|\n|unitOfMeasureCode|string|The code of unit of measure for the sales order line.|\n|quantity|decimal|The quantity of the item in the sales order line.|\n|unitPrice|decimal|Specifies the price for one unit of the item in the specified sales order line.|\n|discountAmount|decimal|The sales order line discount amount.|\n|discountPercent|decimal|The line discount percent.|\n|discountAppliedBeforeTax|boolean|Specifies whether the discount is applied before tax.|\n|amountExcludingTax|decimal|The line amount excluding the tax. Read-Only.|\n|taxCode|string|The tax code for the line.|\n|taxPercent|decimal|The tax percent for the line. Read-Only.|\n|totalTaxAmount|decimal|The total tax amount for the sales order line. Read-Only.|\n|amountIncludingTax|decimal|The total amount for the line including tax. Read-Only.|\n|invoiceDiscountAllocation|decimal|The sales order line discount allocation is the sales order line discount distributed on the total amount. Read-Only.|\n|netAmount|decimal|The net amount is the amount including all discounts (taken from the sales order line). Read-Only.|\n|netTaxAmount|decimal|The net tax amount is the tax amount calculated from net amount. Read-Only.|\n|netAmountIncludingTax|decimal|The net amount including tax is the total net amount including tax. Read-Only.|\n|shipmentDate|date|The date the item in the line is expected to ship.|\n|shippedQuantity|decimal|The quantity of items from the order already shipped.|\n|invoicedQuantity|decimal|The quantity of items from the sales order line that was invoiced.|\n|invoiceQuantity|decimal|The quantity of items from the sales order line to be invoiced.|\n|shipQuantity|decimal|The quantity of items from the order to be shipped.|\n|itemVariantId|GUID|The ID of the item variant in the sales order line.|\n|locationId|GUID||\n## JSON representation\nHere's a JSON representation of the salesOrderLine resource.\n```json\n{\n    \"id\": \"GUID\",\n    \"documentId\": \"GUID\",\n    \"sequence\": \"integer\",\n    \"itemId\": \"GUID\",\n    \"accountId\": \"GUID\",\n    \"lineType\": \"NAV.invoiceLineAggLineType\",\n    \"lineObjectNumber\": \"string\",\n    \"description\": \"string\",\n    \"description2\": \"string\",\n    \"unitOfMeasureId\": \"GUID\",\n    \"unitOfMeasureCode\": \"string\",\n    \"quantity\": \"decimal\",\n    \"unitPrice\": \"decimal\",\n    \"discountAmount\": \"decimal\",\n    \"discountPercent\": \"decimal\",\n    \"discountAppliedBeforeTax\": \"boolean\",\n    \"amountExcludingTax\": \"decimal\",\n    \"taxCode\": \"string\",\n    \"taxPercent\": \"decimal\",\n    \"totalTaxAmount\": \"decimal\",\n    \"amountIncludingTax\": \"decimal\",\n    \"invoiceDiscountAllocation\": \"decimal\",\n    \"netAmount\": \"decimal\",\n    \"netTaxAmount\": \"decimal\",\n    \"netAmountIncludingTax\": \"decimal\",\n    \"shipmentDate\": \"date\",\n    \"shippedQuantity\": \"decimal\",\n    \"invoicedQuantity\": \"decimal\",\n    \"invoiceQuantity\": \"decimal\",\n    \"shipQuantity\": \"decimal\",\n    \"itemVariantId\": \"GUID\",\n    \"locationId\": \"GUID\"\n}\n```\n## Related information\n../api/dynamics_salesorderline_get\n../api/dynamics_salesorderline_delete\nPOST salesOrderLine<../api/dynamics_salesorderline_create>\nPATCH salesOrderLine<../api/dynamics_salesorderline_update>"}