Skip to content

Sales Status

POST
/open/sales/status

Check the status of an Airtime, Data or Insurance sale directly from the sales records. Only sales belonging to the wallet in accountnumber are searched. Look up the original external reference, transaction ID, or reference returned in the sale reply.

Use the identifier from the original Airtime or Data sale. Read the Sales guide for what each outcome means.

history

Request History

Your request history will appear here.

Headers

X-API-USER required

Your Moolre username.

X-API-KEY required

Your Private API Key for the paying wallet.

Body Params

type integer required

Sales status function. Must be 1.

accountnumber string required

Moolre wallet account number used for the sale, linked to your Sell on Our Platform Service. Only this wallet's sales are searched.

idtype integer required

Which identifier you send in id.

  • 1externalref: the externalref or extid you sent with the sale.
  • 2transactionid: from the sale reply.
  • 3reference: from the sale reply.
id string required

Use the original externalref (or extid) sent with the Airtime or Data sale. Do not generate a new reference for this lookup.

Responses

Supplied Data sale status example: sent, with txstatus 1. Other outcomes are described below; exact response bodies for them were not supplied.

statusstring
1 in the supplied sent response; inspect code and data.txstatus for the sale outcome.
codestring
ASS01 in the supplied sent response. Application codes are distinct from HTTP status codes.
messagestring
Sale Successful in the supplied example.
dataobject
Recorded sale details. The supplied example describes a Data sale.
txstatusinteger
Where the sale is.
  • 0Pending
  • 1Sent
  • 2Failed: and refunded.
  • 3Not found
productstring
Recorded product; data in the supplied example.
networkstring
Recorded network; mtn in the supplied example.
bundlestring
Recorded data bundle ID in the supplied Data sale example.
receiverstring
Phone number receiving the airtime or data.
amountstring
Sale amount as a decimal string.
discountstring
Recorded discount as a decimal string.
chargedstring
Recorded wallet charge as a decimal string.
accountnumberstring
Wallet account number; masked in the supplied example.
transactionidstring
Sale transaction ID, used as id with idtype 2.
refundidstring or null
Refund transaction ID when failed and refunded; null in the supplied sent example.
referencestring
Reference returned in the sale reply, used as id with idtype 3.
externalrefstring
Original externalref/extid supplied with the sale, used as id with idtype 1.
thirdpartyrefstring
Reference recorded from the provider.
tsstring
Recorded sale timestamp.
updatedstring
Last recorded update timestamp.
gonull
null in the supplied example.

Insurance sales

An insurance sale is looked up the same way as airtime and data, with the original externalref (idtype 1), the transactionid or the reference. For an insurance sale the reply carries the insurance fields below as well as the common ones (product is insurance). txstatus 1 means the policy is issued; 2 means it was not issued and the charge was refunded; 0 means it is not final yet. See Sell Insurance for the purchase.

{
  "status": "1",
  "code": "ASS01",
  "message": "Policy Issued",
  "data": {
    "txstatus": 1,
    "stage": "issued",
    "product": "insurance",
    "network": "enterprise",
    "cover_code": "T",
    "receiver": "0240000000",
    "amount": "1250.00",
    "premium": "1250.00",
    "charged": "1250.00",
    "commission": "125.00",
    "commission_status": "paid",
    "accountnumber": "10XXXXXXXXXXXX",
    "transactionid": "123456789",
    "refundid": null,
    "reference": "SALE-REFERENCE",
    "externalref": "your-extid",
    "thirdpartyref": "POLICY-NUMBER",
    "provider_message": "Policy created",
    "policy": {
      "pol_no": "POLICY-NUMBER",
      "certificate_url": "https://example.com/certificate",
      "sticker_no": "STICKER-NUMBER",
      "sticker_url": "https://example.com/sticker",
      "brown_card_url": "https://example.com/brown-card"
    },
    "ts": "2026-12-01 09:00:00",
    "updated": "2026-12-01 09:00:12",
    "created_at": "2026-12-01T09:00:00Z",
    "updated_at": "2026-12-01T09:00:12Z"
  },
  "go": null,
  "meta": {
    "requestid": "req_c68f4c66115c26725c796242",
    "notices": []
  }
}

Insurance fields in data

stagestring
Where an insurance sale is.
  • awaiting_insurerWaiting for the insurer to confirm it (txstatus 0).
  • needs_reviewMoolre is checking it (txstatus 0).
  • refund_pendingNot issued, and the refund is being processed (txstatus 0).
  • issuedThe policy is issued (txstatus 1).
  • refundedRefunded (txstatus 2).
cover_codestring
Cover code of the policy: T, TPA, F, C or CX. See Covers.
premiumstring
Premium as a decimal string. Equal to amount and, once charged, to charged.
commissionstring
Commission earned as a decimal string: 10% of the premium once the policy is issued, otherwise 0.00.
commission_statusstring or null
paid or pending for an issued policy; null otherwise. Pending commission is paid later.
provider_messagestring
The insurer message for the sale, when there is one.
policyobject or null
Once issued: pol_no (policy number), certificate_url, sticker_no, sticker_url and brown_card_url. A link is null when the insurer has not supplied it. null until the policy is issued.
created_at / updated_atstring
The same timestamps as ts and updated, in ISO 8601 (UTC).
Insurance sale status codes
CodeMeaningNext step
ASS01Policy Issued.txstatus 1. Read policy and commission.
ASS02Policy not issued, the charge was refunded.txstatus 2. Read refundid. A new purchase is safe.
ASS03Policy Pending.txstatus 0 with stage awaiting_insurer or needs_review. Check again; do not buy again.
ASS09Policy not issued, the refund is pending.txstatus 0 with stage refund_pending. Check again until txstatus is 2.

Status application codes

Application codes, not HTTP status codes. A successful HTTP request does not mean the sale was sent.

Sales Status application codes
CodeMeaningNext step
ASS01Sent.The sale was sent; read data.txstatus and the recorded sale details.
ASS02Failed and refunded.Read refundid for the refund transaction.
ASS03Pending.Check the status again before treating the sale as complete or retrying a purchase.
ASS04Not found.Check accountnumber, idtype, and id; only sales belonging to that wallet are searched.
ASS05Identifier type invalid.Use idtype 1, 2, or 3 with the corresponding identifier.
ASS06Parameters incomplete.Supply type, accountnumber, idtype, and id.
ASS07Type invalid.Send type 1.
ASS08Unknown error.The lookup did not establish a final outcome. Do not assume the purchase failed or automatically resubmit it.
ASS00Authentication error.Check X-API-USER and X-API-KEY for the selected wallet and environment.

View Errors and status codes for the shared response guidance.

Language

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

Response

Body

{  "status": "1",  "code": "ASS01",  "message": "Policy Issued",  "data": {    "txstatus": 1,    "stage": "issued",    "product": "insurance",    "network": "enterprise",    "cover_code": "T",    "receiver": "0240000000",    "amount": "1250.00",    "premium": "1250.00",    "charged": "1250.00",    "commission": "125.00",    "commission_status": "paid",    "accountnumber": "10XXXXXXXXXXXX",    "transactionid": "123456789",    "refundid": null,    "reference": "SALE-REFERENCE",    "externalref": "your-extid",    "thirdpartyref": "POLICY-NUMBER",    "provider_message": "Policy created",    "policy": {      "pol_no": "POLICY-NUMBER",      "certificate_url": "https://example.com/certificate",      "sticker_no": "STICKER-NUMBER",      "sticker_url": "https://example.com/sticker",      "brown_card_url": "https://example.com/brown-card"    },    "ts": "2026-12-01 09:00:00",    "updated": "2026-12-01 09:00:12",    "created_at": "2026-12-01T09:00:00Z",    "updated_at": "2026-12-01T09:00:12Z"  },  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}