purchaseCreditMemoLine resource type

Represents a purchase credit memo line in Business Central.

Note

For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central.

Methods

MethodReturn TypeDescription
GET purchaseCreditMemoLinepurchaseCreditMemoLineGets a purchase credit memo line object.
DELETE purchaseCreditMemoLinenoneDeletes a purchase credit memo line object.
POST purchaseCreditMemoLinepurchaseCreditMemoLineCreates a purchase credit memo line object.
PATCH purchaseCreditMemoLinepurchaseCreditMemoLineUpdates a purchase credit memo line object.
NavigationReturn TypeDescription
purchaseCreditMemopurchaseCreditMemoGets the purchasecreditmemo of the purchaseCreditMemoLine.
itemitemGets the item of the purchaseCreditMemoLine.
accountaccountGets the account of the purchaseCreditMemoLine.
unitOfMeasureunitOfMeasureGets the unitofmeasure of the purchaseCreditMemoLine.
itemVariantitemVariantGets the itemvariant of the purchaseCreditMemoLine.
dimensionSetLinesdimensionSetLinesGets the dimensionsetlines of the purchaseCreditMemoLine.
locationlocationGets the location of the purchaseCreditMemoLine.

Properties

PropertyTypeDescription
idGUIDThe unique ID of the purchase credit memo line. Non-editable.
documentIdGUIDThe ID of the parent purchase credit memo line.
sequenceintegerThe line sequence number.
itemIdGUIDThe ID of the item in the purchase credit memo line.
accountIdGUIDThe id of the account that the purchase credit memo line is related to.
lineTypeNAV.invoiceLineAggLineTypeThe type of the purchase credit memo line. It can be "Comment", "Account", "Item", "Resource" Value", "Fixed Asset" or "Charge".
lineObjectNumberstringThe number of the object (account or item) of the purchase credit memo line.
descriptionstringSpecifies the description of the purchase credit memo line.
unitOfMeasureIdGUIDThe ID of unit of measure for the purchase credit memo line.
unitOfMeasureCodestringThe code of unit of measure for the purchase credit memo line.
unitCostdecimalThe unit cost of each individual item in the purchase credit memo line.
quantitydecimalThe quantity of the item in the purchase credit memo line.
discountAmountdecimalThe purchase credit memo line discount amount.
discountPercentdecimalThe line discount percent.
discountAppliedBeforeTaxbooleanSpecifies whether the discount is applied before tax.
amountExcludingTaxdecimalThe line amount excluding the tax. Read-Only.
taxCodestringThe tax code for the line.
taxPercentdecimalThe tax percent for the line. Read-Only.
totalTaxAmountdecimalThe total tax amount for the purchase credit memo line. Read-Only.
amountIncludingTaxdecimalThe total amount for the line including tax. Read-Only.
invoiceDiscountAllocationdecimalThe purchase credit memo line discount allocation is the purchase credit memo line discount distributed on the total amount. Read-Only.
netAmountdecimalThe net amount is the amount including all discounts (taken from the purchase credit memo line). Read-Only.
netTaxAmountdecimalThe net tax amount is the tax amount calculated from net amount. Read-Only.
netAmountIncludingTaxdecimalThe net amount including tax is the total net amount including tax. Read-Only.
itemVariantIdGUIDThe ID of the item variant in the purchase credit memo line.
locationIdGUID

JSON representation

Here's a JSON representation of the purchaseCreditMemoLine resource.

{
    "id": "GUID",
    "documentId": "GUID",
    "sequence": "integer",
    "itemId": "GUID",
    "accountId": "GUID",
    "lineType": "NAV.invoiceLineAggLineType",
    "lineObjectNumber": "string",
    "description": "string",
    "unitOfMeasureId": "GUID",
    "unitOfMeasureCode": "string",
    "unitCost": "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",
    "itemVariantId": "GUID",
    "locationId": "GUID"
}

GET purchaseCreditMemoLine DELETE purchaseCreditMemoLine POST purchaseCreditMemoLine PATCH purchaseCreditMemoLine