# salesOrderLines resource type (v1.0)
> NEW VERSION This is v1.0 of the Business Central API. For the newest version, see Business Central API (V2.0)<../../v2.0>.
Represents a line on a sales order in Business Central.
> NOTE
> For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central<../enabling-apis-for-dynamics-nav>.
## Methods
Method|Return Type|Description
../api/dynamics_salesorderline_get|salesOrderLines|Gets a sales order line object.
POST salesOrderLines<../api/dynamics_create_salesorderline>|salesOrderLines|Creates a sales order line object.
PATCH salesOrderLines<../api/dynamics_salesorderline_update>|salesOrderLines|Updates a sales order line object.
../api/dynamics_salesorderline_delete|none|Deletes a sales order line object.
## Properties
Property|Type|Description
id|GUID|The ID of the order line.
documentId|GUID|The ID of the parent order.
sequence|numeric|The line sequence number.
itemId|GUID|The Id of the item in the order line.
accountId|GUID|The Id of the Account that will be used for this line. lineType will automatically be set to "Account" if this is set.
lineType|string|The type of the line. Can be Comment,Account,Item,Resource,Fixed Asset,Charge
lineDetails|complex|The details of the line.
description|string|A description of the item in the order line.
unitOfMeasureId|GUID|The Id of the unit of measure in the order line.
unitOfMeasure|NAV.UnitOfMeasure<dynamics_complextypes>|The unit of measure complex type.
quantity|numeric|The quantity of the item in the order line.
unitPrice|numeric|The unit price of each individual item in the order line.
discountAmount|numeric|The line discount amount.
discountPercent|numeric|The line discount percent.
discountAppliedBeforeTax|boolean|Specified if the discount is applied before tax. Read-Only.
amountExcludingTax|numeric|The line amount excluding the tax. Read-Only.
taxCode|string|The tax code for the line.
taxPercent|numeric|The tax percent for the line. Read-Only.
totalTaxAmount|numeric|The total tax amount for the line. Read-Only.
amountIncludingTax|numeric|The total amount for the line including tax. Read-Only.
invoiceDiscountAllocation|numeric|The invoice discount allocation is the order discount distributed on the total amount. Read-Only.
netAmount|numeric|The net amount is the amount including all discounts (taken from order header). Read-Only.
netTaxAmount|numeric|The net tax amount is the tax amount calculated from net amount. Read-Only.
netAmountIncludingTax|numeric|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.
shippedQuantity|numeric|The quantity of items from the order already shipped.
invoicedQuantity|numeric|The quantity of items from the order already invoiced.
invoiceQuantity|numeric|The quantity of items from the order to be invoiced.
shipQuantity|numeric|The quantity of items from the order to be shipped.
## Relationships
A Sales Order (documentId) must exist in the Sales Orders table.
An Item (itemId) must exist in the Item table.
An Account (accountId) must exist in the Accounts table.
A Unit of Measure (unitOfMeasure) must exist in the Unit of Measure table.
## JSON representation
Here is a JSON representation of the resource.
```json
  "value": [
    {
      "documentId": "GUID",
      "sequence": "decimal",
      "itemId": "GUID",
      "accountId": "GUID",
      "lineType": "string",
      "lineDetails": {NAV.documentLineObjectDetails},
      "description": "string",
      "unitOfMeasure": {NAV.UnitOfMeasure},
      "unitPrice": "decimal",
      "quantity": "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",
      "shippedQuantity": "decimal",
      "invoicedQuantity": "decimal",
      "invoiceQuantity": "decimal",
      "shipQuantity": "decimal"
    }
  ]
```
## Related information
Get Sales Order Line<../api/dynamics_salesorderline_get>
Create Sales Order Line<../api/dynamics_create_salesorderline>
Update Sales Order Line<../api/dynamics_salesorderline_update>
Delete Sales Order Line<../api/dynamics_salesorderline_delete>

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/v1.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. https://jonas-paprotka.de/docs/dev-itpro/api-reference/v1.0/resources/dynamics_salesorderline/
