Edit

purchaseLine resource type

Represents a purchase line in Business Central.

Methods

Method Return Type Description
GET purchaseLine purchaseLine Gets a purchaseLine object.

Properties

Property Type Description
orderNo string The primary key of the purchaseLine.
documentType string The primary key of the purchaseLine.
payToVendorNo string Specifies the payToVendorNo of the purchaseLine.
buyFromVendorNo string Specifies the buyFromVendorNo of the purchaseLine.
purchaserCode string Specifies the purchaserCode of the purchaseLine.
quoteNo string Specifies the quoteNo of the purchaseLine.
orderDate Date Specifies the orderDate of the purchaseLine.
documentDate Date Specifies the documentDate of the purchaseLine.
dueDate Date Specifies the dueDate of the purchaseLine.
campaignNo string Specifies the campaignNo of the purchaseLine.
purchaseLineDocumentType string The primary key of the purchaseLine.
documentNo string The primary key of the purchaseLine.
type string Specifies the type of the purchaseLine.
description string Specifies the description of the purchaseLine.
lineNo integer The primary key of the purchaseLine.
itemNo string Specifies the itemNo of the purchaseLine.
locationCode string Specifies the locationCode of the purchaseLine.
quantityBase decimal Specifies the quantityBase of the purchaseLine.
outstandingQtyBase decimal Specifies the outstandingQtyBase of the purchaseLine.
outstandingAmountLCY decimal Specifies the outstandingAmountLCY of the purchaseLine.
amount decimal Specifies the amount of the purchaseLine.
unitCostLCY decimal Specifies the unitCostLCY of the purchaseLine.
outstandingQuantity decimal Specifies the outstandingQuantity of the purchaseLine.
returnReasonCode string Specifies the returnReasonCode of the purchaseLine.
plannedReceiptDate Date Specifies the plannedReceiptDate of the purchaseLine.
expectedReceiptDate Date Specifies the expectedReceiptDate of the purchaseLine.
promisedReceiptDate Date Specifies the promisedReceiptDate of the purchaseLine.
requestedReceiptDate Date Specifies the requestedReceiptDate of the purchaseLine.
dimensionSetID integer Specifies the dimensionSetID of the purchaseLine.
qtyRcdNotInvd decimal Specifies the qtyRcdNotInvd of the purchaseLine.
qtyRcdNotInvdBase decimal Specifies the qtyRcdNotInvdBase of the purchaseLine.
qtyToReceive decimal Specifies the qtyToReceive of the purchaseLine.
qtyToReceiveBase decimal Specifies the qtyToReceiveBase of the purchaseLine.
amtRcdNotInvdExVATLCY decimal Specifies the amtRcdNotInvdExVATLCY of the purchaseLine.
amtRcdNotInvd decimal Specifies the amtRcdNotInvd of the purchaseLine.
amtRcdNotInvdLCY decimal Specifies the amtRcdNotInvdLCY of the purchaseLine.
qtyReceived decimal Specifies the qtyReceived of the purchaseLine.
qtyReceivedBase decimal Specifies the qtyReceivedBase of the purchaseLine.
quantityInvoiced decimal Specifies the quantityInvoiced of the purchaseLine.
projectNo string Specifies the projectNo of the purchaseLine.
prepmtAmountInvLCY decimal Specifies the prepmtAmountInvLCY of the purchaseLine.

JSON representation

Here's a JSON representation of the purchaseLine resource.

{
    "orderNo": "10000",
    "documentType": "Invoice",
    "payToVendorNo": "10000",
    "buyFromVendorNo": "10000",
    "purchaserCode": "JR",
    "quoteNo": "10000",
    "orderDate": "2026-01-12",
    "documentDate": "2026-01-10",
    "dueDate": "2026-02-28",
    "campaignNo": "10000",
    "purchaseLineDocumentType": "Invoice",
    "documentNo": "103001",
    "type": "Item",
    "description": "ATHENS Desk",
    "lineNo": 10000,
    "itemNo": "1896-S",
    "locationCode": "BLUE",
    "quantityBase": 10.00,
    "outstandingQtyBase": 10.00,
    "outstandingAmountLCY": 1500.00,
    "amount": 1500.00,
    "unitCostLCY": 25.5,
    "outstandingQuantity": 10.00,
    "returnReasonCode": "RETURN",
    "plannedReceiptDate": "2026-01-18",
    "expectedReceiptDate": "2026-01-18",
    "promisedReceiptDate": "2026-01-18",
    "requestedReceiptDate": "2026-01-18",
    "dimensionSetID": 102,
    "qtyRcdNotInvd": 10.00,
    "qtyRcdNotInvdBase": 10.00,
    "qtyToReceive": 10.00,
    "qtyToReceiveBase": 10.00,
    "amtRcdNotInvdExVATLCY": 100.00,
    "amtRcdNotInvd": 100.00,
    "amtRcdNotInvdLCY": 100.00,
    "qtyReceived": 10.00,
    "qtyReceivedBase": 10.00,
    "quantityInvoiced": 10.00,
    "projectNo": "10000",
    "prepmtAmountInvLCY": 1500.00
}

GET purchaseLine