# Fund a batch group via direct debit Funds all transfers in a batch group via direct debit. The batch group must be in the COMPLETED state. To use this funding method, you need to link an external bank account first. See direct debit account creation for more information. {% admonition type="warning" %} This endpoint is SCA protected when it applies. If your profile is registered within the UK and/or EEA, SCA most likely applies to you. For more information, please read implementing SCA. {% /admonition %} Endpoint: POST /v1/profiles/{profileId}/batch-groups/{batchGroupId}/payment-initiations Security: UserToken, PersonalToken ## Path parameters: - `profileId` (integer, required) The ID of the profile that the batch group is associated with. Example: 12345678 - `batchGroupId` (string, required) The batch group ID. Example: "54a6bc09-cef9-49a8-9041-f1f0c654cd88" ## Request fields (application/json): - `type` (string, required) The method of payment to use. Enum: "DIRECT_DEBIT" - `accountId` (integer, required) Direct debit account ID. See [direct debit account creation](/api-reference/direct-debit-account#create). Example: 1 - `reference` (string) Optional payment initiation reference. Maximum 10 characters. If not provided, a reference will be generated automatically. Example: "B1234567" ## Response 200 fields (application/json): - `id` (integer) Payment initiation ID. Example: 12345 - `batchGroupId` (string) Batch group ID. Example: "068e186d-9632-4937-b753-af3e53f4d0b0" - `reference` (string) Payment reference that will be passed to the network. Can be used for reconciliation. Example: "B1234567" - `userId` (integer) The ID of the user who initiated this payment. Example: 33333333 - `profileId` (integer) The ID of the profile this payment belongs to. Example: 44444444 - `type` (string) Payment type. Enum: "DIRECT_DEBIT" - `status` (string) Payment initiation status: - NEW — Payment initiation created - PROCESSING — Payment is being processed - COMPLETED — Payment completed successfully - FAILED — Payment failed - CHARGED_BACK — Payment was charged back Enum: "NEW", "PROCESSING", "COMPLETED", "FAILED", "CHARGED_BACK" - `accountId` (integer) External account ID associated with the payment. Example: 1 - `transferId` (integer,null) Transfer ID of the direct debit payment. Present only after the direct debit is initiated. - `createdTime` (string) Date and time when the payment initiation was created. Example: "2022-01-01T19:51:41.423404Z"