> ## 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. # AP 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. ## OpenAPI ````json PATCH /public/v1/accounting/accounts-payable/invoices { "openapi": "3.0.1", "info": { "title": "R365 Public API", "contact": { "name": "R365 Services Team", "email": "r365@restaurant365.com" }, "version": "1.0" }, "security": [ { "Bearer": [] } ], "paths": { "/public/v1/accounting/accounts-payable/invoices": { "patch": { "tags": [ "accounting" ], "summary": "AP Invoices", "description": "Partial update AP Invoices in batch\n\n**Security**\n\nThe requesting user must have one of the following permissions to approve AP invoices:\n\n- Accounts Payable → AP Invoices → Approve AP Invoices\n- Food → AP Invoices → Approve AP Invoices (Food equivalent)\n\nApprove and create are separate permissions — this permission does not grant create rights.", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchInvoicesRequest" } } } }, "responses": { "207": { "description": "Multi-Status – Batch operation result containing status for each invoice in the request.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchInvoicesResponse" } } } }, "400": { "description": "Bad Request — a parameter value is malformed, of the wrong type, or outside its allowed range." }, "401": { "description": "Unauthorized — the bearer token is missing, invalid or expired, or is not valid for the specified tenant." }, "403": { "description": "Forbidden — the caller lacks the permission required for this operation." }, "404": { "description": "Not Found — the requested resource does not exist, or the supplied continuation token is unknown or has expired." }, "409": { "description": "Conflict — the request conflicts with the current state of the resource and cannot be applied." }, "422": { "description": "Unprocessable Entity — a required parameter is missing, or a supplied parameter value is invalid." }, "429": { "description": "Too Many Requests — the caller has exceeded the rate limit; retry after a short delay." }, "500": { "description": "Internal Server Error — an unexpected error occurred while processing the request." } }, "parameters": [ { "$ref": "#/components/parameters/TenantId" } ] } } }, "components": { "schemas": { "PatchInvoicesRequest": { "type": "object", "properties": { "invoices": { "type": "array", "items": { "$ref": "#/components/schemas/InvoicePatchItem" }, "description": "The collection of AP invoices to approve or reject." } }, "additionalProperties": false }, "PatchInvoicesResponse": { "type": "object", "properties": { "results": { "type": "array", "items": { "$ref": "#/components/schemas/InvoicePatchResult" }, "description": "The result for each invoice in the request." } }, "additionalProperties": false }, "InvoicePatchItem": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Invoice identifier to approve or reject." }, "approvalStatus": { "type": "string", "description": "Approval status to set on the invoice. Valid values: Approved, Rejected." } }, "additionalProperties": false }, "InvoicePatchResult": { "type": "object", "properties": { "requestIndex": { "type": "integer", "format": "int32", "description": "Zero-based index of the invoice in the original request." }, "id": { "type": "string", "format": "uuid", "description": "Invoice identifier." }, "status": { "type": "string", "description": "Result status of the operation. Valid values: Unknown, Succeeded, Failed." }, "errorCode": { "type": "string", "nullable": true, "description": "Error code if the operation failed, otherwise null." }, "errorMessage": { "type": "string", "nullable": true, "description": "Error message if the operation failed, otherwise null." } }, "additionalProperties": false } }, "parameters": { "TenantId": { "name": "x-r365-context-tenant-id", "in": "header", "required": true, "description": "Identifies the R365 tenant the request applies to. Required on every request.", "schema": { "type": "string" } } }, "securitySchemes": { "Bearer": { "type": "http", "scheme": "Bearer" } } } } ````