Skip to content

Update Account

POST
/open/account/update

Account can be updated on the Moolre using the Update Account endpoint. Accounts can be set up with or without settlement information.

history

Request History

Your request history will appear here.

Headers

X-API-USER stringrequired

This is your Moolre username.

X-API-KEY stringrequired

Your Private API Key.

Body Params

typerequired

ID of the account update function. Must be 1.

accountnumberrequired

Account number of the account/wallet you want to update.

accountname

Updated business name: 2 to 30 characters, letters in any script, digits, spaces and . , & ( ) ' ’ / _ - @ # + : The name the wallet already has is accepted unchanged.

currencyrequired

Account currency is fixed to GHS for this endpoint.

apiboolean

Leave unchanged to preserve API access. Toggle it only when you need to change this setting; the wallet secret stays the same.

callback

Callback URL for collection results. A new or changed callback must be an absolute https URL on port 443 with a public host name and no credentials or fragment. The callback the wallet already has is accepted unchanged, and an existing http or custom-port callback keeps receiving deliveries.

webhook

Webhooks on or off. Leave it out to keep the current setting.

  • 1On: needs a webhook_url, sent here or stored earlier (APGW16).
  • 0Off
webhook_url

Where webhooks are sent: an https URL on port 443 with a public host name and no credentials or fragment.

email

Email alerts to the account owner, on or off.

SETTLEMENT (OPTIONAL)
currency

Select the settlement currency.

frequency

When settlements are paid out.

  • 0No: no automatic settlement.
  • 1Instant
  • 2Daily at 4 pm
  • 3Daily at 12 am
channel

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

  • 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).
recipient

Destination phone/account number.

sublist

Bank ID if channel is Bank Transfer.

Responses

RESPONSE BODY
statusstring
codestring
messagestring
dataobject
accountnamestring
accountnumberstring
paymentidstring
apiinteger
callbackstring
webhookinteger
webhook_urlstring
emailinteger
secretstring
settlementobject

Language

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

Response

Body

{  "status": "1",  "code": "WCU02",  "message": "Account Updated Successfully",  "data": {    "status": 1,    "accountnumber": "100000157257",    "accountname": "My Business PLC",    "paymentid": "0757257",    "api": 0,    "callback": "https://nocall.com/noend",    "webhook": 1,    "webhook_url": "https://shop.example.com/moolre/hooks",    "email": 0,    "settlement": {      "currency": "GHS",      "frequency": "1",      "channel": "1",      "recipient": "0240000008",      "sublist": "300303"    },    "secret": "bcec3865-bea1-4a99-8e70-c6a434cac757"  },  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}