Documentation Index

Fetch the complete documentation index at: https://docs.restaurant365.com/llms.txt

Use this file to discover all available pages before exploring further.

/public/v1/accounting/accounts-payable/invoices

Prev Next
Post
/public/v1/accounting/accounts-payable/invoices

Create AP Invoices in batch

Security
HTTP
Type Bearer

Put ONLY your JWT Bearer token on textbox below!

Body parameters
Expand All
object
invoices
Array of object (R365.Accounting.AccountsPayable.Contracts.Invoice.Apis.Requests.InvoiceCreateItem) Required

The list of AP invoices to create.

object
invoiceNumber
string Required

The invoice number. Required.

vendorId
string (uuid) Required

The identifier of the vendor. Required.

locationId
string (uuid) Required

The identifier of the location. Required.

documentDate
string (date) Required

The document date. Required.

documentAmount
number (decimal) Required

The document amount. Required.

dueDate
string (date) | null

Optional due date.

comment
string | null

Optional comment.

paymentTermsId
string (uuid) | null

Optional payment terms identifier.

purchaseOrderId
string (uuid) | null

Optional purchase order identifier.

markAsPaid
boolean | null

Indicates whether to mark the invoice as paid.

details
Array of object (R365.Accounting.AccountsPayable.Contracts.Invoice.Apis.Requests.InvoiceCreateDetailItem)

The list of invoice detail line items.

object
glAccountId
string (uuid) | null

Optional GL account identifier.

locationId
string (uuid) | null

Optional location identifier.

vendorItemNumber
string | null

Optional vendor item number.

quantity
number (decimal) | null

The quantity. Optional when totalAmount is provided.

eachAmount
number (decimal) | null

The unit price. Optional when totalAmount is provided.

totalAmount
number (decimal) Required

The total amount for this line item. Required.

unitOfMeasureId
string (uuid) | null

Optional unit of measure identifier.

comment
string | null

Optional comment.

Responses
207

Multi-Status – batch operation result containing per-invoice success or failure.

Expand All
object
results
Array of object (R365.Accounting.AccountsPayable.Contracts.Invoice.Apis.Responses.InvoiceCreateResult)

Per-invoice results for the batch operation.

object
requestIndex
integer (int32)

Zero-based index of the invoice in the original request array.

invoiceNumber
string

The invoice number from the original request.

status
string

Result status of this invoice. Valid values: Unknown, Succeeded, Failed.

errorCode
string | null

Error code if the invoice failed, otherwise null.

errorMessage
string | null

Human-readable error message if the invoice failed, otherwise null.

id
string (uuid) | null

The identifier of the created invoice if succeeded, otherwise null.

400

Bad request – one or more validation errors occurred.

401

Unauthorized – authentication credentials are missing or invalid.

403

Forbidden – the caller does not have permission to perform this operation.