# purchaseOrderLine resource type
Represents a purchase order line 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_purchaseorderline_get|purchaseOrderLine|Gets a purchase order line object.
../api/dynamics_purchaseorderline_delete|none|Deletes a purchase order line object.
POST purchaseOrderLine<../api/dynamics_purchaseorderline_create>|purchaseOrderLine|Creates a purchase order line object.
PATCH purchaseOrderLine<../api/dynamics_purchaseorderline_update>|purchaseOrderLine|Updates a purchase order line object.
## Navigation
Navigation|Return Type|Description
dynamics_purchaseorder|purchaseOrder|Gets the purchaseorder of the purchaseOrderLine.
dynamics_item|item|Gets the item of the purchaseOrderLine.
dynamics_account|account|Gets the account of the purchaseOrderLine.
dynamics_unitofmeasure|unitOfMeasure|Gets the unitofmeasure of the purchaseOrderLine.
dynamics_itemvariant|itemVariant|Gets the itemvariant of the purchaseOrderLine.
dynamics_dimensionsetline|dimensionSetLines|Gets the dimensionsetlines of the purchaseOrderLine.
dynamics_location|location|Gets the location of the purchaseOrderLine.
## Properties
|Property|Type|Description|
|id|GUID|The unique ID of the purchase order line. Non-editable.|
|documentId|GUID|The ID of the parent purchase order line.|
|sequence|integer|The line sequence number.|
|itemId|GUID|The ID of the item in the purchase order line.|
|accountId|GUID|The id of the account that the purchase order line is related to.|
|lineType|NAV.invoiceLineAggLineType|The type of the purchase order 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 purchase order line.|
|description|string|Specifies the description of the purchase order line.|
|description2|string||
|unitOfMeasureId|GUID|The ID of unit of measure for the purchase order line.|
|unitOfMeasureCode|string|The code of unit of measure for the purchase order line.|
|quantity|decimal|The quantity of the item in the purchase order line.|
|directUnitCost|decimal|The direct cost per unit.|
|discountAmount|decimal|The purchase order 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 purchase order line. Read-Only.|
|amountIncludingTax|decimal|The total amount for the line including tax. Read-Only.|
|invoiceDiscountAllocation|decimal|The purchase order line discount allocation is the purchase order line discount distributed on the total amount. Read-Only.|
|netAmount|decimal|The net amount is the amount including all discounts (taken from the purchase order 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.|
|expectedReceiptDate|date|The date the item in the line is expected to be received.|
|receivedQuantity|decimal|The quantity of items from the purchase order line that was received.|
|invoicedQuantity|decimal|The quantity of items from the purchase order line that was invoiced.|
|invoiceQuantity|decimal|The quantity of items from the purchase order line to be invoiced.|
|receiveQuantity|decimal|The quantity of items from the purchase order line to be received.|
|itemVariantId|GUID|The ID of the item variant in the purchase order line.|
|locationId|GUID||
## JSON representation
Here's a JSON representation of the purchaseOrderLine resource.
```json
{
    "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",
    "directUnitCost": "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",
    "expectedReceiptDate": "date",
    "receivedQuantity": "decimal",
    "invoicedQuantity": "decimal",
    "invoiceQuantity": "decimal",
    "receiveQuantity": "decimal",
    "itemVariantId": "GUID",
    "locationId": "GUID"
}
```
## Related information
../api/dynamics_purchaseorderline_get
../api/dynamics_purchaseorderline_delete
POST purchaseOrderLine<../api/dynamics_purchaseorderline_create>
PATCH purchaseOrderLine<../api/dynamics_purchaseorderline_update>

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_purchaseorderline, 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/v2.0/resources/dynamics_purchaseorderline/
