{"title":"purchaseInvoiceLine resource type","url":"https://jonas-paprotka.de/docs/dev-itpro/api-reference/v2.0/resources/dynamics_purchaseinvoiceline/","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_purchaseinvoiceline, 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_purchaseinvoiceline","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 invoice line object in Dynamics 365 Business Central.","date":"2026-08-21","meta":{"topic":"reference"},"outline":[{"level":1,"title":"purchaseInvoiceLine resource type","slug":"purchaseinvoiceline-resource-type","at":0,"chars":4996},{"level":2,"title":"Methods","slug":"methods","at":250,"chars":486},{"level":2,"title":"Navigation","slug":"navigation","at":736,"chars":616},{"level":2,"title":"Properties","slug":"properties","at":1352,"chars":2350},{"level":2,"title":"JSON representation","slug":"json-representation","at":3702,"chars":1050},{"level":2,"title":"Related information","slug":"related-information","at":4752,"chars":244}],"text":"# purchaseInvoiceLine resource type\nRepresents a purchase invoice 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_purchaseinvoiceline_get|purchaseInvoiceLine|Gets a purchase invoice line object.\n../api/dynamics_purchaseinvoiceline_delete|none|Deletes a purchase invoice line object.\nPOST purchaseInvoiceLine<../api/dynamics_purchaseinvoiceline_create>|purchaseInvoiceLine|Creates a purchase invoice line object.\nPATCH purchaseInvoiceLine<../api/dynamics_purchaseinvoiceline_update>|purchaseInvoiceLine|Updates a purchase invoice line object.\n## Navigation\nNavigation|Return Type|Description\ndynamics_purchaseinvoice|purchaseInvoice|Gets the purchaseinvoice of the purchaseInvoiceLine.\ndynamics_item|item|Gets the item of the purchaseInvoiceLine.\ndynamics_account|account|Gets the account of the purchaseInvoiceLine.\ndynamics_unitofmeasure|unitOfMeasure|Gets the unitofmeasure of the purchaseInvoiceLine.\ndynamics_itemvariant|itemVariant|Gets the itemvariant of the purchaseInvoiceLine.\ndynamics_dimensionsetline|dimensionSetLines|Gets the dimensionsetlines of the purchaseInvoiceLine.\ndynamics_location|location|Gets the location of the purchaseInvoiceLine.\n## Properties\n|Property|Type|Description|\n|id|GUID|The unique ID of the purchase invoice line. Non-editable.|\n|documentId|GUID|The ID of the parent purchase invoice line.|\n|sequence|integer|The line sequence number.|\n|itemId|GUID|The ID of the item in the purchase invoice line.|\n|accountId|GUID|The id of the account that the purchase invoice line is related to.|\n|lineType|NAV.invoiceLineAggLineType|The type of the purchase invoice 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 invoice line.|\n|description|string|Specifies the description of the purchase invoice line.|\n|description2|string||\n|unitOfMeasureId|GUID|The ID of unit of measure for the purchase invoice line.|\n|unitOfMeasureCode|string|The code of unit of measure for the purchase invoice line.|\n|unitCost|decimal|The unit cost of each individual item in the purchase invoice line.|\n|quantity|decimal|The quantity of the item in the purchase invoice line.|\n|discountAmount|decimal|The purchase invoice 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 invoice line. Read-Only.|\n|amountIncludingTax|decimal|The total amount for the line including tax. Read-Only.|\n|invoiceDiscountAllocation|decimal|The purchase invoice line discount allocation is the purchase invoice 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 invoice 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|itemVariantId|GUID|The ID of the item variant in the purchase invoice line.|\n|locationId|GUID|The ID of the location in the purchase invoice line.|\n## JSON representation\nHere's a JSON representation of the purchaseInvoiceLine resource, showing the full shape of the resources that a GET would return.\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    \"unitCost\": \"decimal\",\n    \"quantity\": \"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    \"itemVariantId\": \"GUID\",\n    \"locationId\": \"GUID\"\n}\n```\n## Related information\n../api/dynamics_purchaseinvoiceline_get\n../api/dynamics_purchaseinvoiceline_delete\nPOST purchaseInvoiceLine<../api/dynamics_purchaseinvoiceline_create>\nPATCH purchaseInvoiceLine<../api/dynamics_purchaseinvoiceline_update>"}