# Generate pain001 file(s) **POST /api-v1/payable/pain001** Return value: if isConfidential is true and paymentsForGeneration are of several modules - [{fileName, xmlAsBytes}, {fileName, xmlAsBytes}] (where one of the files is confidential on the bank statement), otherwise xml file as byte[] ## Servers - Generated server url: https://wyzio.app (Generated server url) ## Parameters ### Headers - **WEAL-TOKEN** (string) API token (can be retrieved from account settings) - **TARGET-ORGANIZATION-ID** (integer) ID of organization, for which the operation must be performed ### Body: application/json (object) - **paymentsForGeneration** (array[object]) - **payableByChartOfAccountId** (integer) - **plannedDate** (string) - **feeSplit** (string) - **timezone** (integer(int32)) - **isConfidential** (boolean) ## Responses ### 200 OK #### Body: application/json (object) object ### 400 400 Bad Request ### 401 401 Unauthorized ### 403 403 Access Denied ### 404 404 Not Found ### 500 500 Internal Server Error [Powered by Bump.sh](https://bump.sh)