Skip to content

Initiate Transfer

POST
/open/transact/transfer

This endpoint allows you to send money from your account to a recipient's mobile money or bank account instantly.

dangerous

Do not Assume Transfer Failure

Never assume a transfer has failed unless the transfer response or status check response txstatus indicates failure with a value of 2.

lightbulb

Validate Account Name before Transfer

We recommend that you validate the account name before initiating a transfer to ensure you are sending to the right recipient. Please note that while Name Validation and Transfer Status check accept both public and private keys, initiating a transfer strictly requires your private API key (passed via X-API-KEY).

history

Request History

Your request history will appear here.

Headers

X-API-USER stringrequired

This is your Moolre username.

X-API-KEY stringrequired

This is your Private API Key Generated from your Account.

Body Params

typerequired

ID of the function. Must be 1.

channelrequired

Send the channel name (case-insensitive). The numeric ids still work but are deprecated and return a notice. See channel codes.

  • MTNMTN Mobile Money (deprecated id 1).
  • TELECELTelecel Cash (deprecated id 6).
  • ATAT Money (deprecated id 7).
  • BANKInstant bank transfer (deprecated id 2).
  • GHQRGhQR (deprecated id 13).
currencyrequired

Select the currency for this transfer.

amountrequired

Amount to be transferred.

receiverrequired

Recipient mobile money number, beginning with 0.

externalrefrequired

Unique ID to identify the transfer.

reference (Optional)

Reference message for the transfer.

sendername (Optional)

Name shown to the recipient as the sender. 2 to 30 characters: letters, spaces and . ' - only. Leave empty to use the default.

accountnumberrequired

Your Moolre Account Number.

Responses

RESPONSE BODY
statusstring
codestring
messagearray
dataobject
txstatusinteger
Status of the transfer.
  • 0Pending
  • 1Successful
  • 2Failed
transactionidstring
externalrefstring
receivernamestring
amountdecimal
The recipient account number was not found or the network is unavailable.
You do not have enough balance to complete this transfer.

Language

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

Response

Body

{  "status": "1",  "code": "OBGH01",  "message": [    "Pay out Successful",    "Click close to view transactions."  ],  "data": {    "txstatus": 1,    "receiver": "0240000007",    "transactionid": "32759150",    "externalref": "28171451",    "thirdpartyref": "901733241086",    "receivername": "YUSIF YA-ADZAGEY",    "amount": "1",    "amountfee": "1.01",    "networkfee": "0.00",    "fee": "0.01"  },  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}