Skip to content

Create bulk payout

POST
/open/transact/bulk

Submit up to 500 payouts in one batch. Every item is validated when you submit; accepted items are sent in the background, one ordinary payout each (same fees, limits and webhooks as Initiate Transfer). Moolre sends a bulk_payout.completed callback when every item has a final state.

New to bulk payouts? Read the Bulk payouts guide first. Listen for the bulk_payout.completed rather than polling.

history

Request History

Your request history will appear here.

Headers

X-API-USER stringrequired

Your Moolre username.

X-API-KEY stringrequired

Your wallet private API key. A public key is refused.

Idempotency-Key stringoptional

Optional. 1 to 128 printable characters. Repeating a request with the same key and the same body returns the stored response with meta.replayed true for 24 hours; the same key with a different body returns IDEM01.

Body Params

typeintegerrequired

Must be 1.

accountnumberstringrequired

Your Moolre wallet account number.

currencystringrequired

GHS or NGN. Must equal the wallet currency.

batchrefstringrequired

Your reference for the batch: 1 to 128 characters, unique per wallet. Sending the same batchref with the same items returns the original batch (BLK02); with different items it is refused (BLK09).

callbackstringoptional

HTTPS URL (at most 512 characters) that receives the bulk_payout.completed callback instead of the wallet callback URL. Webhooks always go to the wallet webhook_url.

atomicbooleanoptional

When true and any item fails validation, nothing is queued (BLK07). Default false: valid items are queued and the rest are listed in data.rejected.

itemsarrayrequired

1 to 500 payout items. Each item is an object with the fields below.

Show item fields (7)
items[].externalrefstringrequired
1 to 128 characters, unique on the wallet across all payouts and batches (case-insensitive). extid is accepted as an alias.
items[].receiverstringrequired
Phone number of 9 to 15 digits for MTN, TELECEL and AT; account number of 6 to 24 digits for BANK.
items[].channelstringrequired
MTN, TELECEL, AT or BANK. NGN wallets: BANK only.
items[].amountstringrequired
Decimal string with at most 2 decimals. GHS: at most 200000.00 per item.
items[].sublistidstringoptional
BANK only, and then required: the bank code from Get banks.
items[].sendernamestringoptional
1 to 40 characters: letters, digits, space and . ' -
items[].referencestringoptional
Narration, at most 64 printable characters.
JSON1 item

Responses

The batch was validated and queued. data.rejected lists items that failed validation (index is the position in the submitted items array). A replay of the same batch returns BLK02 with data.replayed true (meta.replayed is also true when the Idempotency-Key matched).

statusinteger
1 for success
codestring
Response code, BLK01
messagestring
Response message
dataobject
Result
gonull
Navigation hint
metaobject
Always present. meta.requestid is the unique id of this request (also the X-Request-Id header); quote it to support. meta.notices is an array, empty when there is nothing to report. meta.replayed is true only on an idempotent replay.
{  "status": 1,  "code": "BLK01",  "message": "Batch queued.",  "data": {    "batchid": "bat_3f9c2a1d7e5b4c60",    "batchref": "PAYROLL-2026-11",    "accepted": 2,    "rejected": [      {        "index": 2,        "code": "BLKR04",        "message": "externalref has already been used on this wallet.",        "externalref": "PAY-3"      }    ],    "total_amount": "150.00",    "status": "queued",    "currency": "GHS",    "balance_warning": true,    "balance": "90.00"  },  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}

Every item failed validation, or atomic was set and some failed. Nothing was queued. Read data.rejected.

statusinteger
0 for failure
codestring
Response code, for example BLK08
messagestring
Error message
datastring | object | null
The failing field, or details
metaobject
Always present: meta.requestid (the unique id of this request) and meta.notices (an array)
{  "status": 0,  "code": "BLK08",  "message": "No valid items in this batch.",  "data": {    "accepted": 0,    "rejected": [      {        "index": 0,        "code": "BLKR07",        "message": "amount must have at most 2 decimal places. Send it as a string.",        "externalref": "PAY-1"      }    ]  },  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}

batchref was already used with different items. Use a new batchref.

statusinteger
0 for failure
codestring
Response code, for example BLK09
messagestring
Error message
datastring | object | null
The failing field, or details
metaobject
Always present: meta.requestid (the unique id of this request) and meta.notices (an array)
{  "status": 0,  "code": "BLK09",  "message": "batchref was already used with different items. Use a new batchref.",  "data": "batchref",  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}

Fields every response can carry

On failures, read code, message and data (the first failing field). meta is always present and holds requestid (also the X-Request-Id header), notices and, only on idempotent replays, replayed. There is no outcome field: use status, code and data.txstatus. Send X-Moolre-Http-Status: strict to receive real HTTP status codes. See Responses and request IDs and Errors and status codes.

Language

curl --request POST \     --url 'https://api.moolre.com/open/transact/bulk' \     --header 'X-API-USER: Your Username' \     --header 'X-API-KEY: YOUR_API_KEY' \     --header 'Content-Type: application/json' \     --data '{  "type": 1,  "accountnumber": "",  "currency": "GHS",  "batchref": "",  "items": [    {      "externalref": "",      "receiver": "",      "channel": "MTN",      "amount": ""    }  ]}'

Response

Body

{  "status": 1,  "code": "BLK01",  "message": "Batch queued.",  "data": {    "batchid": "bat_3f9c2a1d7e5b4c60",    "batchref": "PAYROLL-2026-11",    "accepted": 2,    "rejected": [      {        "index": 2,        "code": "BLKR04",        "message": "externalref has already been used on this wallet.",        "externalref": "PAY-3"      }    ],    "total_amount": "150.00",    "status": "queued",    "currency": "GHS",    "balance_warning": true,    "balance": "90.00"  },  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}