Skip to content

Create Payment ID

POST
/open/account/create

Use this API to generate a unique, permanent Payment ID that customers can dial (*203*paymentid#) to make payments directly to your wallet. The generated Payment ID is persistent and linked to your account. Specifying an amount is optional. Omitting it creates the Payment ID without a preset limit.

history

Request History

Your request history will appear here.

Headers

X-API-USER stringrequired

This is your Moolre username.

X-API-PUBKEY stringrequired

This is your Public API Key Generated from your Account.

Body Params

typerequired

ID of the function. Must be 2.

phonerequired

Phone number of the customer (e.g., +233240000002).

namerequired

Name of the Customer or a Unique ID.

currencyrequired

Currency of your account/wallet.

amount (Optional)

Optional preset amount. Omit to create the Payment ID without a limit.

externalrefrequired

Unique external reference for this request.

accountnumberrequired

Your Moolre Account Number.

Responses

RESPONSE BODY
statusinteger
codestring
messagestring
dataobject
terminalidstring
paymentidstring
namestring
qrcodestring

Language

curl --request POST \     --url 'https://api.moolre.com/open/account/create' \     --header 'X-API-USER: Your Username' \     --header 'X-API-PUBKEY: YOUR_PUBLIC_KEY' \     --header 'Content-Type: application/json' \     --data '{  "type": 2,  "phone": "",  "name": "",  "currency": "GHS",  "externalref": "",  "accountnumber": ""}'

Response

Body

{  "status": 1,  "code": "AD14",  "message": "Payment ID Creation Successful",  "data": {    "terminalid": "08160984",    "paymentid": "08160984",    "name": "Kofi Adeniyi",    "qrcode": null  },  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}