{"title":"purchaseOrderLine resource type","url":"https://jonas-paprotka.de/docs/dev-itpro/api-reference/v2.0/resources/dynamics_purchaseorderline/","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_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.","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_purchaseorderline","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 purchase order line object in Dynamics 365 Business Central.","date":"2026-08-21","meta":{"topic":"reference"},"outline":[{"level":1,"title":"purchaseOrderLine resource type","slug":"purchaseorderline-resource-type","at":0,"chars":5271},{"level":2,"title":"Methods","slug":"methods","at":246,"chars":460},{"level":2,"title":"Navigation","slug":"navigation","at":706,"chars":596},{"level":2,"title":"Properties","slug":"properties","at":1302,"chars":2610},{"level":2,"title":"JSON representation","slug":"json-representation","at":3912,"chars":1127},{"level":2,"title":"Related information","slug":"related-information","at":5039,"chars":232}],"text":"# purchaseOrderLine resource type\nRepresents a purchase 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_purchaseorderline_get|purchaseOrderLine|Gets a purchase order line object.\n../api/dynamics_purchaseorderline_delete|none|Deletes a purchase order line object.\nPOST purchaseOrderLine<../api/dynamics_purchaseorderline_create>|purchaseOrderLine|Creates a purchase order line object.\nPATCH purchaseOrderLine<../api/dynamics_purchaseorderline_update>|purchaseOrderLine|Updates a purchase order line object.\n## Navigation\nNavigation|Return Type|Description\ndynamics_purchaseorder|purchaseOrder|Gets the purchaseorder of the purchaseOrderLine.\ndynamics_item|item|Gets the item of the purchaseOrderLine.\ndynamics_account|account|Gets the account of the purchaseOrderLine.\ndynamics_unitofmeasure|unitOfMeasure|Gets the unitofmeasure of the purchaseOrderLine.\ndynamics_itemvariant|itemVariant|Gets the itemvariant of the purchaseOrderLine.\ndynamics_dimensionsetline|dimensionSetLines|Gets the dimensionsetlines of the purchaseOrderLine.\ndynamics_location|location|Gets the location of the purchaseOrderLine.\n## Properties\n|Property|Type|Description|\n|id|GUID|The unique ID of the purchase order line. Non-editable.|\n|documentId|GUID|The ID of the parent purchase order line.|\n|sequence|integer|The line sequence number.|\n|itemId|GUID|The ID of the item in the purchase order line.|\n|accountId|GUID|The id of the account that the purchase order line is related to.|\n|lineType|NAV.invoiceLineAggLineType|The type of the purchase 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 purchase order line.|\n|description|string|Specifies the description of the purchase order line.|\n|description2|string||\n|unitOfMeasureId|GUID|The ID of unit of measure for the purchase order line.|\n|unitOfMeasureCode|string|The code of unit of measure for the purchase order line.|\n|quantity|decimal|The quantity of the item in the purchase order line.|\n|directUnitCost|decimal|The direct cost per unit.|\n|discountAmount|decimal|The purchase 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 purchase order line. Read-Only.|\n|amountIncludingTax|decimal|The total amount for the line including tax. Read-Only.|\n|invoiceDiscountAllocation|decimal|The purchase order line discount allocation is the purchase 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 purchase 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|expectedReceiptDate|date|The date the item in the line is expected to be received.|\n|receivedQuantity|decimal|The quantity of items from the purchase order line that was received.|\n|invoicedQuantity|decimal|The quantity of items from the purchase order line that was invoiced.|\n|invoiceQuantity|decimal|The quantity of items from the purchase order line to be invoiced.|\n|receiveQuantity|decimal|The quantity of items from the purchase order line to be received.|\n|itemVariantId|GUID|The ID of the item variant in the purchase order line.|\n|locationId|GUID||\n## JSON representation\nHere's a JSON representation of the purchaseOrderLine 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    \"directUnitCost\": \"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    \"expectedReceiptDate\": \"date\",\n    \"receivedQuantity\": \"decimal\",\n    \"invoicedQuantity\": \"decimal\",\n    \"invoiceQuantity\": \"decimal\",\n    \"receiveQuantity\": \"decimal\",\n    \"itemVariantId\": \"GUID\",\n    \"locationId\": \"GUID\"\n}\n```\n## Related information\n../api/dynamics_purchaseorderline_get\n../api/dynamics_purchaseorderline_delete\nPOST purchaseOrderLine<../api/dynamics_purchaseorderline_create>\nPATCH purchaseOrderLine<../api/dynamics_purchaseorderline_update>"}