purchaseReceipt resource type

Important: Currently all requests to API v2.0 must append $schemaversion=2.0 to the request URL to work properly. This is to uptake the new improved $metadata model avaliable from Business Central 17. An update will be applied shortly to apply the schemaversion automatically to API v2.0. For all other APIs $schemaversion=1.0 will be the default, unless specified in the request URL with $schemaversion=2.0. A solution is being worked on, where the schemaversion will be defined in the extension.

Represents a purchase receipt in Dynamics 365 Business Central.


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


Method Return Type Description
GET purchaseReceipt purchaseReceipt Gets a purchase receipt object.
Navigation Return Type Description
vendor vendor Gets the vendor of the purchaseReceipt.
countryRegion countryRegion Gets the countryregion of the purchaseReceipt.
purchaseReceiptLines purchaseReceiptLines Gets the purchasereceiptlines of the purchaseReceipt.
dimensionSetLines dimensionSetLines Gets the dimensionsetlines of the purchaseReceipt.


Property Type Description
id GUID The unique ID of the purchase receipt. Non-editable.
number string Specifies the number of the purchase receipt.
invoiceDate date The invoice date .
postingDate date The date that the purchase receipt is posted.
dueDate date T he date the purchase receipt is due.
vendorNumber string Specifies vendor's number.
vendorName string Specifies vendor's name.
payToName string Pay to name of the purchase receipt.
payToContact string Pay to contact.
payToVendorNumber string Pay to vendor number.
shipToName string Ship to name.
shipToContact string Ship to contact.
buyFromAddressLine1 string Buy from address line 1.
buyFromAddressLine2 string Buy from address line 2.
buyFromCity string Buy from city.
buyFromCountry string Buy from state.
buyFromState string Buy from state.
buyFromPostCode string Buy from country.
shipToAddressLine1 string Ship to address line 1.
shipToAddressLine2 string Ship to address line 2.
shipToCity string Ship to city.
shipToCountry string Ship to country.
shipToState string Ship to state.
shipToPostCode string Ship to post code.
payToAddressLine1 string Pay to address line 1.
payToAddressLine2 string Pay to address line 2.
payToCity string Pay to address line 2.
payToCountry string Pay to country.
payToState string Pay to state.
payToPostCode string Pay to post code.
currencyCode string The default currency code for the purchase receipt.
lastModifiedDateTime datetime The last datetime the purchase receipt was modified. Read-Only.

JSON representation

Here is 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",
    "lastModifiedDateTime": "datetime"

See Also

GET purchaseReceipt