List purchase invoices (draft and posted). Supports OData $filter and $expand.
GUID for targeted Company
Maximum number of records to return. Without $top, Business Central returns the records page by page and adds @odata.nextLink to the response.
Number of records to skip.
Sort order, e.g. lastModifiedDateTime desc.
Comma-separated list of properties to return.
When true, the response includes @odata.count with the total number of matching records.
OData $expand for purchase invoices. Supported navigations:
purchaseInvoiceLines, dimensionSetLines, pdfDocument, attachments, documentAttachments.
Line navigations can be nested, e.g. purchaseInvoiceLines($expand=dimensionSetLines,location).
OK
OData context URL of the collection
Total number of matching records, returned when $count=true
URL of the next page, present when more records are available
Buy-from vendor number. Either vendorId or vendorNumber is required on create.
Assigned User ID (BC user name, not a GUID).
Dimension set line (standard page "APIV2 - Dimension Set Lines").
If the customer, vendor, G/L account or item has default dimensions, overriding them on a document line needs additional PATCH requests;
without default dimensions, send the dimensions with the line in the same request.
For documents with hundreds of lines, post dimensions in a separate $batch request.
SystemId of the dimension (not of the line)
Location (standard page "APIV2 - Locations").
Dimension set line (standard page "APIV2 - Dimension Set Lines").
If the customer, vendor, G/L account or item has default dimensions, overriding them on a document line needs additional PATCH requests;
without default dimensions, send the dimensions with the line in the same request.
For documents with hundreds of lines, post dimensions in a separate $batch request.
SystemId of the dimension (not of the line)
PDF of the document (standard page "APIV2 - PDF Document", read-only).
Download the file with GET .../pdfDocument/pdfDocumentContent.
The report and layout come from Report Selections for the document type; if more than one report is set up, the first in sequence is used.
Total excluding VAT as calculated by the external system. Compared with the amount calculated by Business Central when Check VAT Mismatch in API Request is enabled.
Total including VAT as calculated by the external system. Used for the VAT mismatch check and, when Allow VAT Auto Correction is enabled, to correct VAT differences within Max. VAT Difference Allowed.
URL stored as a record link on the document.
Text stored as a record note on the document.
Posted invoice is fully applied (closed). Always false for drafts. The page accepts a value but ignores it.
Incoming document attachment (standard page "APIV2 - Attachments").
Upload or download the file content via .../attachments({id})/attachmentContent.
Document attachment (standard page "APIV2 - Document Attachments").
Upload or download the file content via .../documentAttachments({id})/attachmentContent.
When the attachment is created together with the document (e.g. a signed sales contract), the file content is sent in a separate PATCH request.
Unauthorized