Skip to content

Invoice status

POST
/open/invoice/status

Read one invoice by its invoiceid or your reference.

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.

Body Params

accountnumberstringrequired

Your Moolre wallet account number.

invoiceidstringoptional

The invoiceid returned by Create invoice, for example 5-1. Send invoiceid or reference.

referencestringoptional

Your invoice reference. Send invoiceid or reference.

Responses

The invoice object.

statusinteger
1 for success
codestring
Response code, INV15
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": "INV15",  "message": "Invoice found.",  "data": {    "invoiceid": "5-1",    "status": "pending",    "reference": "INV-1001",    "invoice_name": "Term 1 fees",    "currency": "GHS",    "total": "100.00",    "amount_paid": "0.00",    "tax": "0",    "items": [      {        "amount": "50.00",        "quantity": "2",        "description": "Tuition"      }    ],    "customer": {      "name": "Ama Mensah",      "phone": "0240000001",      "email": ""    },    "narration": "Term 1 fees",    "due_date": "2026-12-31T23:59:59Z",    "payment_link": "https://invoice.moolre.com/5-1",    "payment_code": "*203*0621#",    "metadata": null,    "created": "2026-11-15T09:00:00Z"  },  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}

No invoice matches on this wallet.

statusinteger
0 for failure
codestring
Response code, for example INV12
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": "INV12",  "message": "Invoice not found.",  "data": "invoiceid",  "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/invoice/status' \     --header 'X-API-USER: Your Username' \     --header 'X-API-KEY: YOUR_API_KEY' \     --header 'Content-Type: application/json' \     --data '{  "accountnumber": "",  "reference": "INV-1001"}'

Response

Body

{  "status": 1,  "code": "INV15",  "message": "Invoice found.",  "data": {    "invoiceid": "5-1",    "status": "pending",    "reference": "INV-1001",    "invoice_name": "Term 1 fees",    "currency": "GHS",    "total": "100.00",    "amount_paid": "0.00",    "tax": "0",    "items": [      {        "amount": "50.00",        "quantity": "2",        "description": "Tuition"      }    ],    "customer": {      "name": "Ama Mensah",      "phone": "0240000001",      "email": ""    },    "narration": "Term 1 fees",    "due_date": "2026-12-31T23:59:59Z",    "payment_link": "https://invoice.moolre.com/5-1",    "payment_code": "*203*0621#",    "metadata": null,    "created": "2026-11-15T09:00:00Z"  },  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}