Many of our partner’s customers need to make multiple payments at once. For instance, they may want to pay all their monthly bills or they may already be used to doing monthly or quarterly payment runs.
Batch Groups enable partners to group up to 1000 transfers under a single reference, this means that all the payments within the batch group can be funded at once.
Follow the guide below to understand more about how batch groups work, how to create a group, add transfers, and funding the batch once closed.
We've created a Postman collection to help you test your integrations easily! It includes:
- Our sandbox environment (
https://api.wise-sandbox.com) - Common API calls for creating users and profiles
- Automated tests that copy response data between calls
- Example responses for reference
Fork the collection to get updates automatically. This lets you test the complete flow with minimal setup!
Fork in PostmanMany Batch Group API endpoints return a batch group resource. See the BatchGroup schema for full details on the structure and fields.
| Status | Description |
|---|---|
NEW | New batch group with zero or more transfers. Able to have more transfers added to it. Any transfers in a NEW group cannot yet be funded and paid out. |
COMPLETED | The batch group has had all the desired transfers added to it and is now closed to further changes. The transfers in the group are now able to be funded and paid out. Note: COMPLETED does not imply that payouts have been successfully completed. |
MARKED_FOR_CANCELLATION | Cancellation of the transfers in the batch group was requested. |
PROCESSING_CANCEL | Transfers in the group are being cancelled. |
CANCELLED | Transfers in the group have been cancelled. |
Pay-in details describe how the batch group can be funded. They are only populated when a batch group is in the COMPLETED state. See the PayInDetails schema for full details.
- Production Environmenthttps://api.wise.com/v3/profiles/{profileId}/batch-groups
- Sandbox Environmenthttps://api.wise-sandbox.com/v3/profiles/{profileId}/batch-groups
curl -i -X POST \
https://api.wise.com/v3/profiles/12345678/batch-groups \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"sourceCurrency": "GBP",
"name": "My batch group"
}'For request/response details, see the API reference.
Create a transfer in the batch group, using a previously created recipient account and quote. Please see quote creation and recipient account creation documentation.
For the request body format please see transfer creation.
- Production Environmenthttps://api.wise.com/v3/profiles/{profileId}/batch-groups/{batchGroupId}/transfers
- Sandbox Environmenthttps://api.wise-sandbox.com/v3/profiles/{profileId}/batch-groups/{batchGroupId}/transfers
curl -i -X POST \
https://api.wise.com/v3/profiles/12345678/batch-groups/54a6bc09-cef9-49a8-9041-f1f0c654cd88/transfers \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"targetAccount": 67890,
"sourceAccount": 12345,
"quoteUuid": "bd244a95-dcf8-4c31-aac8-bf5e2f3e54c0",
"customerTransactionId": "a]1b2c3d4-e5f6-7890-abcd-ef1234567890",
"details": {
"reference": "to my friend",
"transferPurpose": "verification.transfers.purpose.pay.bills",
"transferPurposeSubTransferPurpose": "verification.sub.transfers.purpose.pay.interpretation.service",
"sourceOfFunds": "verification.source.of.funds.other"
}
}'For request/response details, see the API reference.
Completes the batch group and allows funding to proceed. Note: this action prevents any further modification.
- Production Environmenthttps://api.wise.com/v3/profiles/{profileId}/batch-groups/{batchGroupId}
- Sandbox Environmenthttps://api.wise-sandbox.com/v3/profiles/{profileId}/batch-groups/{batchGroupId}
curl -i -X PATCH \
https://api.wise.com/v3/profiles/12345678/batch-groups/54a6bc09-cef9-49a8-9041-f1f0c654cd88 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"status": "COMPLETED",
"version": 1234
}'For request/response details, see the API reference.
Once the batch group is completed, you can fund all transfers at once. There are two funding options available: from your multi-currency account balance, or via direct debit from a linked external bank account.
- Production Environmenthttps://api.wise.com/v3/profiles/{profileId}/batch-payments/{batchGroupId}/payments
- Sandbox Environmenthttps://api.wise-sandbox.com/v3/profiles/{profileId}/batch-payments/{batchGroupId}/payments
curl -i -X POST \
https://api.wise.com/v3/profiles/12345678/batch-payments/54a6bc09-cef9-49a8-9041-f1f0c654cd88/payments \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"type": "BALANCE"
}'For request/response details, see the API reference.
- Production Environmenthttps://api.wise.com/v1/profiles/{profileId}/batch-groups/{batchGroupId}/payment-initiations
- Sandbox Environmenthttps://api.wise-sandbox.com/v1/profiles/{profileId}/batch-groups/{batchGroupId}/payment-initiations
curl -i -X POST \
https://api.wise.com/v1/profiles/12345678/batch-groups/54a6bc09-cef9-49a8-9041-f1f0c654cd88/payment-initiations \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"type": "DIRECT_DEBIT",
"accountId": 1,
"reference": "B1234567"
}'For request/response details, see the API reference.
- Production Environmenthttps://api.wise.com/v1/profiles/{profileId}/batch-groups/{batchGroupId}/payment-initiations/{paymentInitiationId}
- Sandbox Environmenthttps://api.wise-sandbox.com/v1/profiles/{profileId}/batch-groups/{batchGroupId}/payment-initiations/{paymentInitiationId}
curl -i -X GET \
https://api.wise.com/v1/profiles/12345678/batch-groups/54a6bc09-cef9-49a8-9041-f1f0c654cd88/payment-initiations/12345 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'For request/response details, see the API reference.
- Production Environmenthttps://api.wise.com/v3/profiles/{profileId}/batch-groups/{batchGroupId}
- Sandbox Environmenthttps://api.wise-sandbox.com/v3/profiles/{profileId}/batch-groups/{batchGroupId}
curl -i -X GET \
https://api.wise.com/v3/profiles/12345678/batch-groups/54a6bc09-cef9-49a8-9041-f1f0c654cd88 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'For request/response details, see the API reference.