> ## 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/accounting/v1/accounts-payable/credit-memos > Updates one or more AP credit memos. Currently supports updating the approval status to Approved. ## OpenAPI ````json PATCH /public/accounting/v1/accounts-payable/credit-memos { "openapi": "3.0.1", "info": { "title": "R365.PublicApi", "contact": { "name": "R365 Services Team", "email": "r365@restaurant365.com" }, "version": "1.0" }, "security": [ { "Bearer": [] } ], "paths": { "/public/accounting/v1/accounts-payable/credit-memos": { "patch": { "tags": [ "accounting" ], "description": "Updates one or more AP credit memos. Currently supports updating the approval status to Approved.", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/R365.Accounting.Public.Contracts.AccountsPayable.Models.PatchCreditMemosRequest" } } }, "required": true }, "responses": { "200": { "description": "All credit memos updated successfully.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/R365.Accounting.Public.Contracts.AccountsPayable.Models.PatchCreditMemosResponse" } } } }, "207": { "description": "207 Multi-Status – Partial success: the response contains arrays of updated credit memos and errors for those that could not be updated.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/R365.Accounting.Public.Contracts.AccountsPayable.Models.PatchCreditMemosResponse" } } } }, "400": { "description": "Bad request – one or more validation errors occurred.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/R365.Accounting.Public.Contracts.AccountsPayable.Models.PatchCreditMemosResponse" } } } }, "404": { "description": "Not Found – all requested credit memos could not be located. When only some items are not found, a 207 is returned instead with per-item errors.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/R365.Accounting.Public.Contracts.AccountsPayable.Models.PatchCreditMemosResponse" } } } }, "422": { "description": "Unprocessable Entity – the request was well-formed but contains semantic errors and could not be processed.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/R365.Accounting.Public.Contracts.AccountsPayable.Models.PatchCreditMemosResponse" } } } } } } } }, "components": { "schemas": { "R365.Accounting.Public.Contracts.AccountsPayable.Models.PatchCreditMemosRequest": { "required": [ "creditMemos" ], "type": "object", "properties": { "creditMemos": { "minItems": 1, "type": "array", "items": { "$ref": "#/components/schemas/R365.Accounting.Public.Contracts.AccountsPayable.Models.PatchCreditMemoItem" } } }, "additionalProperties": false }, "R365.Accounting.Public.Contracts.AccountsPayable.Models.PatchCreditMemosResponse": { "type": "object", "properties": { "success": { "type": "array", "items": { "$ref": "#/components/schemas/R365.Accounting.Public.Contracts.AccountsPayable.Models.CreditMemoUpdated" } }, "errors": { "type": "array", "items": { "$ref": "#/components/schemas/R365.Accounting.Public.Contracts.AccountsPayable.Models.CreditMemoError" } } }, "additionalProperties": false }, "R365.Accounting.Public.Contracts.AccountsPayable.Models.PatchCreditMemoItem": { "required": [ "id", "approvalStatus" ], "type": "object", "properties": { "id": { "type": "string", "description": "Identifier of the credit memo to update.", "format": "uuid" }, "approvalStatus": { "enum": [ "Approved" ], "type": "string", "description": "The approval status to set on the credit memo." } }, "additionalProperties": false }, "R365.Accounting.Public.Contracts.AccountsPayable.Models.CreditMemoUpdated": { "type": "object", "properties": { "id": { "type": "string", "description": "Identifier of the credit memo that was updated.", "format": "uuid" } }, "additionalProperties": false }, "R365.Accounting.Public.Contracts.AccountsPayable.Models.CreditMemoError": { "type": "object", "properties": { "id": { "type": "string", "description": "Identifier of the credit memo that failed to update, if applicable.", "format": "uuid", "nullable": true }, "message": { "type": "string", "description": "Description of the error." }, "errorCode": { "type": "string", "description": "Machine-readable error code (e.g. urn:r365:accounts-payable:credit-memo:not-found).", "nullable": true } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "http", "description": "Put **_ONLY_** your JWT Bearer token on textbox below!", "scheme": "Bearer", "bearerFormat": "JWT" } } } } ````