Skip to content

Payment Status

POST
/open/transact/status

This endpoint checks the final status of a previously initiated mobile-money payment collection. Use Payment ID / Bank Account Status for type 2 account lookups.

lightbulb

Public API Key Usage

Public API Key can also be used to check the status of a transaction.

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.

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 1.

idtyperequired

Which kind of id you send in id.

  • 1externalref: the unique reference you sent.
  • 2Moolre ID: the transaction ID Moolre generated.
idrequired

The externalref or Moolre ID to be checked.

accountnumberrequired

Your Moolre Account Number.

Responses

RESPONSE BODY
statusinteger
codestring
messagestring
dataobject
txstatusinteger
Status of the payment.
  • 0Pending
  • 1Successful
  • 2Failed
  • 3Not found: no transaction matches this id (SS07).
transactionidstring
externalrefstring
tsstring

Language

curl --request POST \     --url 'https://api.moolre.com/open/transact/status' \     --header 'X-API-USER: Your Username' \     --header 'X-API-PUBKEY: YOUR_PUBLIC_KEY' \     --header 'Content-Type: application/json' \     --data '{  "type": 1,  "idtype": "1",  "id": "",  "accountnumber": ""}'

Response

Body

{  "status": 1,  "code": "SS01",  "message": "Transaction Successful",  "data": {    "txstatus": 1,    "txtype": 1,    "accountnumber": "100000100002",    "payer": "233240000009",    "payee": "Zagey",    "amount": "1",    "value": "1",    "transactionid": "31772290",    "externalref": "1231231-128",    "thirdpartyref": "471700539041",    "ts": "2023-11-21 03:57:25"  },  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}