{"title":"purchaseInvoiceLines resource type (v1.0)","url":"https://jonas-paprotka.de/docs/dev-itpro/api-reference/v1.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/v1.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/v1.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":"(v1.0) A purchase invoice line object in Dynamics 365 Business Central.","date":"2024-05-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"purchaseInvoiceLines resource type (v1.0)","slug":"purchaseinvoicelines-resource-type-v10","at":0,"chars":4203},{"level":2,"title":"Methods","slug":"methods","at":388,"chars":491},{"level":2,"title":"Properties","slug":"properties","at":879,"chars":1802},{"level":2,"title":"Relationships","slug":"relationships","at":2681,"chars":271},{"level":2,"title":"JSON representation","slug":"json-representation","at":2952,"chars":943},{"level":2,"title":"Related information","slug":"related-information","at":3895,"chars":308}],"text":"# purchaseInvoiceLines resource type (v1.0)\n> NEW VERSION This is v1.0 of the Business Central API. For the newest version, see Business Central API (V2.0)<../../v2.0>.\nRepresents a line on a purchase invoice 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|purchaseInvoiceLines|Gets a purchase invoice line object.\nPOST purchaseInvoiceLines<../api/dynamics_create_purchaseinvoiceline>|purchaseInvoiceLines|Creates a purchase invoice line object.\nPATCH purchaseInvoiceLines<../api/dynamics_purchaseinvoiceline_update>|purchaseInvoiceLines|Updates a purchase invoice line object.\n../api/dynamics_purchaseinvoiceline_delete|none|Deletes a purchase invoice line object.\n## Properties\nProperty|Type|Description\ndocumentId|GUID|The ID of the parent invoice.\nsequence|numeric|The line sequence number.\nitemId|GUID|The Id of the item in the invoice line.\naccountId|GUID|The Id of the Account that will be used for this line. lineType will automatically be set to \"Account\" if this is set.\nlineType|string|The type of the line. Can be Comment,Account,Item,Resource,Fixed Asset,Charge\nlineDetails|complex|The details of the line.\ndescription|string|A description of the item in the invoice line.\nunitOfMeasure|NAV.UnitOfMeasure<dynamics_complextypes>|The unit of measure complex type.\nunitCost|numeric|The unit cost of each individual item in the invoice line.\nquantity|numeric|The quantity of the item in the invoice line.\ndiscountAmount|numeric|The line discount amount.\ndiscountPercent|numeric|The line discount percent.\ndiscountAppliedBeforeTax|boolean|Specified if the discount is applied before tax. Read-Only.\namountExcludingTax|numeric|The line amount excluding the tax. Read-Only.\ntaxCode|string|The tax code for the line.\ntaxPercent|numeric|The tax percent for the line. Read-Only.\ntotalTaxAmount|numeric|The total tax amount for the line. Read-Only.\namountIncludingTax|numeric|The total amount for the line including tax. Read-Only.\ninvoiceDiscountAllocation|numeric|The invoice discount allocation is the invoice discount distributed on the total amount. Read-Only.\nnetAmount|numeric|The net amount is the amount including all discounts (taken from invoice header). Read-Only.\nnetTaxAmount|numeric|The net tax amount is the tax amount calculated from net amount. Read-Only.\nnetAmountIncludingTax|numeric|The net amount including tax is the total net amount including tax. Read-Only.\nexpectedReceiptDate|date|The date the item in the line is expected to be received.\n## Relationships\nA Purchase Invoice (documentId) must exist in the Purchase Invoices table.\nAn Item (itemId) must exist in the Item table.\nAn Account (accountId) must exist in the Accounts table.\nA Unit of Measure (unitOfMeasure) must exist in the Unit of Measure table.\n## JSON representation\nHere is a JSON representation of the resource.\n```json\n  \"value\": [\n    {\n      \"documentId\": \"GUID\",\n      \"sequence\": \"decimal\",\n      \"itemId\": \"GUID\",\n      \"accountId\": \"GUID\",\n      \"lineType\": \"String\",\n      \"lineDetails\": {NAV.documentLineObjectDetails},\n      \"description\": \"String\",\n      \"unitOfMeasure\": {NAV.UnitOfMeasure},\n      \"directUnitCost\": \"decimal\",\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    }\n  ]\n```\n## Related information\nGet Purchase Invoice Line<../api/dynamics_purchaseinvoiceline_get>\nCreate Purchase Invoice Line<../api/dynamics_create_purchaseinvoiceline>\nUpdate Purchase Invoice Line<../api/dynamics_purchaseinvoiceline_update>\nDelete Purchase Invoice Line<../api/dynamics_purchaseinvoiceline_delete>"}