younifyd
Menu

List Purchase Invoices

Returns a list of purchaseInvoices

GET/companies({company_id})/purchaseInvoices

Use it in a workflow

  1. Add a step and choose the Microsoft Dynamics 365 Business Central connector.
  2. Pick the List Purchase Invoices action (under Business Central).
  3. Fill in the fields below, then reference the result from later steps as {{listPurchaseInvoices.response.data}}.

Request

Path parameters

company_idstring (uuid)required

(v1.0) id for company

Query parameters

$topinteger

(v1.0) Number of items to return from the top of the list

$skipinteger

(v1.0) Number of items to skip from the list

$limitinteger

(v1.0) Number of items to return from the list

$filterstring

(v1.0) Filtering expression

$expandarray<string>

(v1.0) Entities to expand

$selectarray<string>

(v1.0) Selected properties to be retrieved

Response

Returns 200 with an object. Read it in later steps with {{listPurchaseInvoices.response.data.<field>}}.

valuearray<object>
idstring (uuid)

(v1.0) The id property for the Dynamics 365 Business Central purchaseInvoice entity

numberstring

(v1.0) The number property for the Dynamics 365 Business Central purchaseInvoice entity

invoiceDatestring (date-time)

(v1.0) The invoiceDate property for the Dynamics 365 Business Central purchaseInvoice entity

dueDatestring (date-time)

(v1.0) The dueDate property for the Dynamics 365 Business Central purchaseInvoice entity

vendorInvoiceNumberstring

(v1.0) The vendorInvoiceNumber property for the Dynamics 365 Business Central purchaseInvoice entity

vendorIdstring (uuid)

(v1.0) The vendorId property for the Dynamics 365 Business Central purchaseInvoice entity

vendorNumberstring

(v1.0) The vendorNumber property for the Dynamics 365 Business Central purchaseInvoice entity

vendorNamestring

(v1.0) The vendorName property for the Dynamics 365 Business Central purchaseInvoice entity

payToNamestring

(v1.0) The payToName property for the Dynamics 365 Business Central purchaseInvoice entity

payToContactstring

(v1.0) The payToContact property for the Dynamics 365 Business Central purchaseInvoice entity

payToVendorIdstring (uuid)

(v1.0) The payToVendorId property for the Dynamics 365 Business Central purchaseInvoice entity

payToVendorNumberstring

(v1.0) The payToVendorNumber property for the Dynamics 365 Business Central purchaseInvoice entity

shipToNamestring

(v1.0) The shipToName property for the Dynamics 365 Business Central purchaseInvoice entity

shipToContactstring

(v1.0) The shipToContact property for the Dynamics 365 Business Central purchaseInvoice entity

buyFromAddressobject12 fields
payToAddressobject12 fields
shipToAddressobject12 fields
currencyIdstring (uuid)

(v1.0) The currencyId property for the Dynamics 365 Business Central purchaseInvoice entity

currencyCodestring

(v1.0) The currencyCode property for the Dynamics 365 Business Central purchaseInvoice entity

pricesIncludeTaxboolean

(v1.0) The pricesIncludeTax property for the Dynamics 365 Business Central purchaseInvoice entity

discountAmountnumber (decimal)

(v1.0) The discountAmount property for the Dynamics 365 Business Central purchaseInvoice entity

discountAppliedBeforeTaxboolean

(v1.0) The discountAppliedBeforeTax property for the Dynamics 365 Business Central purchaseInvoice entity

totalAmountExcludingTaxnumber (decimal)

(v1.0) The totalAmountExcludingTax property for the Dynamics 365 Business Central purchaseInvoice entity

totalTaxAmountnumber (decimal)

(v1.0) The totalTaxAmount property for the Dynamics 365 Business Central purchaseInvoice entity

totalAmountIncludingTaxnumber (decimal)

(v1.0) The totalAmountIncludingTax property for the Dynamics 365 Business Central purchaseInvoice entity

statusstring

(v1.0) The status property for the Dynamics 365 Business Central purchaseInvoice entity

lastModifiedDateTimestring (date-time)

(v1.0) The lastModifiedDateTime property for the Dynamics 365 Business Central purchaseInvoice entity

purchaseInvoiceLinesarray<object>26 fields
pdfDocumentarray<object>2 fields
vendorobject22 fields
currencyobject7 fields
json
{
  "value": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "number": "string",
      "invoiceDate": "2025-01-01T00:00:00Z",
      "dueDate": "2025-01-01T00:00:00Z",
      "vendorInvoiceNumber": "string",
      "vendorId": "00000000-0000-0000-0000-000000000000",
      "vendorNumber": "string",
      "vendorName": "string",
      "payToName": "string",
      "payToContact": "string",
      "payToVendorId": "00000000-0000-0000-0000-000000000000",
      "payToVendorNumber": "string"
    }
  ]
}

Need more? See the Microsoft Dynamics 365 Business Central guide for connection setup and behaviour shared by every action.