purchaseReceipt resource type

Represents a purchase receipt 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 purchaseReceiptpurchaseReceiptGets a purchase receipt object.
NavigationReturn TypeDescription
purchaseReceiptLinespurchaseReceiptLinesGets the purchasereceiptlines of the purchaseReceipt.
dimensionSetLinesdimensionSetLinesGets the dimensionsetlines of the purchaseReceipt.

Properties

PropertyTypeDescription
idGUIDThe unique ID of the purchase receipt. Non-editable.
numberstringSpecifies the number of the purchase receipt.
invoiceDatedateThe invoice date .
postingDatedateThe date that the purchase receipt is posted.
dueDatedateThe date the purchase receipt is due.
vendorNumberstringSpecifies vendor's number.
vendorNamestringSpecifies vendor's name.
payToNamestringPay to name of the purchase receipt.
payToContactstringPay to contact.
payToVendorNumberstringPay to vendor number.
shipToNamestringShip to name.
shipToContactstringShip to contact.
buyFromAddressLine1stringBuy from address line 1.
buyFromAddressLine2stringBuy from address line 2.
buyFromCitystringBuy from city.
buyFromCountrystringBuy from state.
buyFromStatestringBuy from state.
buyFromPostCodestringBuy from country.
shipToAddressLine1stringShip to address line 1.
shipToAddressLine2stringShip to address line 2.
shipToCitystringShip to city.
shipToCountrystringShip to country.
shipToStatestringShip to state.
shipToPostCodestringShip to post code.
payToAddressLine1stringPay to address line 1.
payToAddressLine2stringPay to address line 2.
payToCitystringPay to address line 2.
payToCountrystringPay to country.
payToStatestringPay to state.
payToPostCodestringPay to post code.
currencyCodestringThe default currency code for the purchase receipt.
orderNumberstringThe number of the order to which the purchase receipt is associated to. Read-Only.
lastModifiedDateTimedatetimeThe last datetime the purchase receipt was modified. Read-Only.

JSON representation

Here's a JSON representation of the purchaseReceipt resource.

{
    "id": "GUID",
    "number": "string",
    "invoiceDate": "date",
    "postingDate": "date",
    "dueDate": "date",
    "vendorNumber": "string",
    "vendorName": "string",
    "payToName": "string",
    "payToContact": "string",
    "payToVendorNumber": "string",
    "shipToName": "string",
    "shipToContact": "string",
    "buyFromAddressLine1": "string",
    "buyFromAddressLine2": "string",
    "buyFromCity": "string",
    "buyFromCountry": "string",
    "buyFromState": "string",
    "buyFromPostCode": "string",
    "shipToAddressLine1": "string",
    "shipToAddressLine2": "string",
    "shipToCity": "string",
    "shipToCountry": "string",
    "shipToState": "string",
    "shipToPostCode": "string",
    "payToAddressLine1": "string",
    "payToAddressLine2": "string",
    "payToCity": "string",
    "payToCountry": "string",
    "payToState": "string",
    "payToPostCode": "string",
    "currencyCode": "string",
    "orderNumber": "string",
    "lastModifiedDateTime": "datetime"
}

GET purchaseReceipt