Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

GlobalCapture as a conduit to Dynamics 365 Business Central

Purchase Invoice Lines

Purchase invoices need at least one line item to represent the transaction and how it should be coded.

The purchase invoice line endpoint looks like:

purchaseInvoices({p_id})/purchaseInvoiceLines

Where {p_id} represents the ID (a GUID) returned from the purchase invoice create request.

Acceptable types are noted below, and should be passed in the request body for creating a new purchase invoice line.

  • Comment

  • Account

  • Item

  • Resource

  • Value

  • Fixed Asset

  • Charge

One of these values is required for the lineType parameter.

Code Block
languagejson
"lineType": "Account"