# 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 - https://wyzio.app: https://wyzio.app () ## Parameters ### Headers - **TARGET-ORGANIZATION-ID** (integer(int32)) ID of organization, for which the operation must be performed - **WEAL-TOKEN** (string) API token (can be retrieved from account settings) ### Body: application/json (object) generationRequest - **feeSplit** (string) - **isConfidential** (boolean) - **payableByChartOfAccountId** (integer) - **paymentsForGeneration** (array[object]) - **plannedDate** (string) - **timezone** (integer(int32)) ## Responses ### 200 OK #### Body: */* (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)