AP Invoices

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

Partial update AP Invoices in batch

Security

The requesting user must have one of the following permissions to approve AP invoices:

  • Accounts Payable → AP Invoices → Approve AP Invoices
  • Food → AP Invoices → Approve AP Invoices (Food equivalent)

Approve and create are separate permissions — this permission does not grant create rights.

Security
HTTP
Type Bearer
Header parameters
x-r365-context-tenant-id
stringRequired

Identifies the R365 tenant the request applies to. Required on every request.

Body parameters
Expand All
object
invoices
Array of object (InvoicePatchItem)

The collection of AP invoices to approve or reject.

object
id
string (uuid)

Invoice identifier to approve or reject.

approvalStatus
string

Approval status to set on the invoice. Valid values: Approved, Rejected.

Responses
207

Multi-Status – Batch operation result containing status for each invoice in the request.

Expand All
object
results
Array of object (InvoicePatchResult)

The result for each invoice in the request.

object
requestIndex
integer (int32)

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

id
string (uuid)

Invoice identifier.

status
string

Result status of the operation. Valid values: Unknown, Succeeded, Failed.

errorCode
string | null

Error code if the operation failed, otherwise null.

errorMessage
string | null

Error message if the operation failed, otherwise null.

400

Bad Request — a parameter value is malformed, of the wrong type, or outside its allowed range.

401

Unauthorized — the bearer token is missing, invalid or expired, or is not valid for the specified tenant.

403

Forbidden — the caller lacks the permission required for this operation.

404

Not Found — the requested resource does not exist, or the supplied continuation token is unknown or has expired.

409

Conflict — the request conflicts with the current state of the resource and cannot be applied.

422

Unprocessable Entity — a required parameter is missing, or a supplied parameter value is invalid.

429

Too Many Requests — the caller has exceeded the rate limit; retry after a short delay.

500

Internal Server Error — an unexpected error occurred while processing the request.