> ## 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 Payments > Create AP Payments in batch **Security** The requesting user must have the following permission to create AP payments: - Accounts Payable → AP Payments → Create Manual AP Payments Create and approve are separate permissions — this permission does not grant approval rights. ## OpenAPI ````json POST /public/v1/accounting/accounts-payable/payments { "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/payments": { "post": { "tags": [ "accounting" ], "summary": "AP Payments", "description": "Create AP Payments in batch\n\n**Security**\n\nThe requesting user must have the following permission to create AP payments:\n\n- Accounts Payable → AP Payments → Create Manual AP Payments\n\nCreate and approve are separate permissions — this permission does not grant approval rights.", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePaymentsRequest" } } } }, "responses": { "207": { "description": "Multi-Status – batch operation result containing per-payment success or failure.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePaymentsResponse" } } } }, "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": { "CreatePaymentsRequest": { "required": [ "payments" ], "type": "object", "properties": { "payments": { "type": "array", "items": { "$ref": "#/components/schemas/PaymentCreateItem" }, "description": "The list of AP payments to create." } }, "additionalProperties": false }, "CreatePaymentsResponse": { "type": "object", "properties": { "results": { "type": "array", "items": { "$ref": "#/components/schemas/PaymentCreateResult" }, "description": "Per-payment results for the batch operation." } }, "additionalProperties": false }, "PaymentCreateItem": { "required": [ "locationId", "vendorId", "bankGlAccountId", "paymentDate", "paymentAmount" ], "type": "object", "properties": { "locationId": { "type": "string", "description": "The identifier of the location for the payment. Required.", "format": "uuid" }, "vendorId": { "type": "string", "description": "The identifier of the vendor being paid. Required.", "format": "uuid" }, "bankGlAccountId": { "type": "string", "description": "The identifier of the bank GL account used for the payment. Required.", "format": "uuid" }, "paymentDate": { "type": "string", "description": "The date of the payment. Required.", "format": "date" }, "paymentAmount": { "type": "number", "description": "The amount of the payment. Required.", "format": "decimal" }, "comment": { "type": "string", "description": "Optional comment for the payment.", "nullable": true }, "checkNumber": { "type": "string", "description": "Optional check number associated with the payment.", "nullable": true } }, "additionalProperties": false }, "PaymentCreateResult": { "type": "object", "properties": { "requestIndex": { "type": "integer", "description": "Zero-based index of the payment in the original request array.", "format": "int32" }, "vendorId": { "type": "string", "description": "The vendor identifier from the original request.", "format": "uuid" }, "status": { "type": "string", "description": "Result status of this payment. Valid values: Unknown, Succeeded, Failed." }, "errorCode": { "type": "string", "description": "Error code if the payment failed, otherwise null.", "nullable": true }, "errorMessage": { "type": "string", "description": "Human-readable error message if the payment failed, otherwise null.", "nullable": true }, "id": { "type": "string", "description": "The identifier of the created payment if succeeded, otherwise null.", "format": "uuid", "nullable": true } }, "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" } } } } ````