Skip to content

Build and operate

Errors and status codes

Read Moolre response envelopes, distinguish transport errors from API errors, and surface actionable failures to users.

Read the response envelope first

Moolre responses include a status value, a code, a message, data, and an optional go value. Use the HTTP status for transport-level handling, then use the response code and message to decide what the application should do next.

Treat successful HTTP responses with an application error payload as an API-level failure. Keep the code and a correlation value in your logs so support can trace the request quickly.

API status code reference

The following application codes are used across the live and sandbox environments, grouped by product area. Use the code as the stable value for branching and logging, and use the message as user-facing context. Always handle the HTTP status separately because an HTTP success response can still contain an application-level failure.

A failure reports the first failing field in code, message and data (there is no error object), and every response carries a meta object with the requestid. See Responses and request IDs.

CodeResponseCondition
AIN00Authentication ErrorBulk Payout when authentication information is missing.
AIN01Authentication ErrorWhen the API keys or username are incorrect.
AIN02Authentication Error, accountnumber is required.Endpoints that act on a wallet when accountnumber is missing from the request.
AIN03Authentication Error, wallet not found.When checking account status and the API keys or wallet cannot be found.
AIN04Authentication Error, API Access not activated.The wallet exists but API access is not switched on for it. Enable the API for the wallet in the Moolre app.
AIN05Authentication ErrorThe API user and key (or public key) were rejected for the wallet in accountnumber. Check the credentials and the environment.
AIN06Request data invalid, Please check your request parameters and try again.The request carried no body and no recognised credentials. Send a JSON body and the authentication headers.
AIN09Authentication ErrorCreate Account or Update Account when the API user and key were rejected.
AIN11Authentication ErrorSMS and WhatsApp endpoints when the X-API-VASKEY is missing or rejected.
AIN12A public key cannot read balances or statements. Send your username and API key (X-API-USER and X-API-KEY) from your server.Account Status and List Transactions when the key is a public key, sent in X-API-PUBKEY or in X-API-KEY. Use the private key, from your server. Returned with HTTP 200 and status 0.
IN01Authentication ErrorWhen validating a name with incorrect API keys.
IN02Authentication ErrorPayout service rejected the credentials. Check the API user and private key.
IN03Authentication ErrorPayout service rejected the credentials. Check the API user and private key.
IN04Authentication ErrorPayout service rejected the credentials. Check the API user and private key.
IN05Authentication ErrorPayout service rejected the credentials. Check the API user and private key.
IN06Authentication ErrorPayout service rejected the credentials. Check the API user and private key.
IN08Authentication ErrorPayout service rejected the credentials. Check the API user and private key.
AC01Payment ID / Bank Account FoundFor a bank account status lookup that finds the account.
AC03Payment ID / Bank Account Not FoundFor a bank account status lookup when the reference or account number is incorrect.
AD14Payment ID Creation SuccessfulWhen creating a Payment ID. The Sandbox message reads "Terminal Creation Successful".
AD16See the endpoint page for the response message.Returned by Create Payment ID, Bank Collections.
AD19Account No. Creation SuccessfulFor bank collections.
APG01Currency InvalidReturned by Create Payment ID, Bank Collections.
APG02This wallet is inactive.Returned by Create Payment ID, Bank Collections.
APG03Account number not found or currency invalid.Returned by Create Payment ID, Bank Collections.
APG05name is requiredReturned by Create Payment ID, Bank Collections.
APG06accountnumber is requiredReturned by Create Payment ID, Bank Collections.
APG07Request Parameters Incomplete, Please check and try again.Returned by Create Payment ID, Bank Collections.
APG08This currency does not support API.Returned by Create Payment ID, Bank Collections.
APG09This wallet does not support GhQR Features.Returned by Create Account, Bank Collections, Update Account.
APG10An unknown error occured, Please refresh and try again.Returned by Create Account, Create Payment ID, Bank Collections.
APG11Authentication ErrorCreate Account when the request is not authenticated.
APG12externalref is required.Returned by Create Payment ID.
APG13External Reference is required and must be unique.Returned by Create Payment ID.
APGW01Currency InvalidReturned by Create Account, Update Account.
APGW02accountname is required, must be between 2 and 30 characters long and may contain only letters, digits, spaces and . , & ( ) ' / _ - @ # + :Returned by Create Account, Update Account and Generate Wallet when the name is missing, outside 2 to 30 characters, or has other characters. A name the wallet already has is accepted unchanged.
APGW03currency is requiredReturned by Create Account, Update Account.
APGW04accountnumber is requiredReturned by Create Account, Update Account.
APGW05Request Parameters Incomplete, Please check and try again.Returned by Create Account, Update Account.
APGW06This currency does not support API.Not specified in the source catalogue.
APGW07callback is requiredReturned by Create Account, Update Account.
APGW08settlement is requiredReturned by Create Account, Update Account.
APGW09Settlement Information IncompleteReturned by Create Account, Update Account.
APGW10Phone number must start with zero (0)Returned by Create Account, Update Account.
APGW11Callback is required when api is trueReturned by Update Account.
APGW12Authentication Error, wallet not found.When the wallet being updated is not found in your wallets.
APGW13callback must be an absolute https URL on port 443Returned by Create Account, Update Account and Generate Wallet when a new or changed callback is not an absolute https URL on port 443 with a public host name, or has credentials or a fragment. The message ends with the reason in brackets. A callback the wallet already has is accepted unchanged.
APGW14webhook must be 0 or 1Returned by Update Account.
APGW15webhook_url must be an absolute https URL on port 443Returned by Update Account when webhook_url is not an absolute https URL on port 443 with a public host name and no credentials or fragment, or is longer than 256 characters.
APGW16webhook_url is required when webhook is 1Returned by Update Account when webhooks are switched on for a wallet that has no webhook_url.
APGW17email must be 0 or 1Returned by Update Account.
PG01Invalid starting_after, send the next_cursor of the previous page.List endpoints when starting_after is not a cursor returned by an earlier response.
PG02Invalid limit, use a number from 1 toReturned by Payment ID / Bank Account Status, Payment ID and Bank Account Transactions.
PG03Invalid from, use YYYY-MM-DD or an ISO 8601 date after 2023-12-30.Returned by List Account Transactions.
ST01Invalid startdateReturned by List Account Transactions.
ST02Invalid enddateReturned by List Account Transactions.
ST04Invalid startidReturned by List Account Transactions.
ST05Invalid startidReturned by List Account Transactions.
ST06Invalid limitReturned by List Account Transactions.
ST07Invalid statusReturned by List Account Transactions.
ST08Transactions FoundNot specified in the source catalogue.
ST09Transactions not FoundNot specified in the source catalogue.
SW01Wallet FoundNot specified in the source catalogue.
SW02An unknown error occured, Please refresh and try again.Returned by Account Status.
SW03Request type invalid.Returned by Account Status.
SW04Request Parameters Incomplete, Please check and try again.Returned by Account Status.
SW05Authentication Error, authentication information is requiredReturned by Account Status.
SW06Wallet not found.Returned by Account Status.
WC02Wallet created successfully. Your wallet will be reloaded shortly, or click close to refresh now.When a wallet is created successfully.
WCU01Wallet update failed: invalid account number.Not specified in the source catalogue.
WCU02Account updated successfully.Not specified in the source catalogue.
APY00An unknown error occured, Please refresh and try again.Payout or internal transfer when an unexpected error occurs. Check the status by externalref before retrying.
APY01Amount is requiredReturned by Internal Transfer, Initiate Transfer.
APY04Phone no. is requiredReturned by Initiate Transfer.
APY05Account no. is requiredReturned by Initiate Transfer.
APY06Recipient Details are requiredReturned by Internal Transfer, Initiate Transfer.
APY07Request Parameters Incomplete, Please check and try again.Returned by Internal Transfer, Initiate Transfer.
APY08This channel does not support API payout.Returned by Initiate Transfer.
APY09Request type invalid.Returned by Internal Transfer, Initiate Transfer.
APY10An unknown error occured, Please refresh and try again.Payout or internal transfer when an unexpected error occurs. Check the status by externalref before retrying.
APY11Receiver account number is invalid. It must me a Moolre Account Number.Returned by Internal Transfer.
APY12Currency InvalidReturned by Internal Transfer, Initiate Transfer.
APY13This wallet is inactive.Returned by Internal Transfer, Initiate Transfer.
APY14Account number not found or currency invalid.Returned by Internal Transfer, Initiate Transfer.
APY15This wallet is currency does not support this channel currency.Returned by Internal Transfer, Initiate Transfer.
APY16Pay out in ProgressTransfer when the payment service gave no readable reply. The payout may well have started: treat it as pending and check Transfer Status with the externalref. Never resubmit.
APY18External reference is required and must be unique.When making a payout or internal transfer without an external reference. A payout sent again with an externalref already used on the wallet is not refused with APY18: the reply is the original payout (PY04, or PY05 when it failed).
APY19Currency InvalidReturned by Initiate Transfer.
APY20sublistid is requiredReturned by Initiate Transfer.
APY21Insufficient wallet balance.When making a payout with insufficient wallet balance.
APY22sendername must be 2 to 30 characters: letters, spaces and . ' - only.Initiate Transfer when the optional sendername is invalid.
AVD00Authentication Error, authentication information is requiredReturned by Validate Name.
AVD01SuccessfulWhen validating the name for a Ghanaian number.
AVD02Request type invalid.Returned by Validate Name.
AVD03FailedReturned by Validate Name.
AVD04Request Parameters Incomplete, Please check and try again.Returned by Validate Name.
AVD05Recipient Details are requiredReturned by Validate Name.
AVD06Account no. is requiredReturned by Validate Name.
AVD07Phone no. is requiredReturned by Validate Name.
AVD10Currency InvalidReturned by Validate Name.
AVD11Currency InvalidReturned by Validate Name.
AVD12This system is not recognized.Returned by Validate Name.
AVD13{field} is requiredValidate Name when the receiver is missing.
GHQ03Pay out SuccessfulGhQR payout completed. Status 1 with this code is final success.
OBGH01Pay out SuccessfulWhen making a payout.
OBNG01Pay out SuccessfulNaira bank payout completed. Status 1 with this code is final success.
OM03Pay out SuccessfulWhen an internal transfer is completed successfully.
OM12Network unavailablePayout not started and not charged because the network is unavailable. It is safe to retry. Bulk payouts retry such items automatically.
OM16Could not be started, not chargedPayout could not be started and the wallet was not charged. It is safe to retry. Bulk payouts retry such items automatically.
OTGH01Pay out SuccessfulTelecel or AT payout completed. Status 1 with this code is final success.
OTGH02Pay out in ProgressWhen an unsupported channel is selected.
PY01Request could not be completedGeneric reply from the payment service while a payout is still being handled. The result is unknown, treat it as pending: check Transfer Status with the externalref before doing anything else.
PY02Payment service did not answerThe payment service did not answer in time. The result is unknown, treat it as pending, and the HTTP status is 502 in strict mode. Check the status by externalref before retrying.
PY04Duplicate extid, this is the original pay outA payout or internal transfer was sent again with an externalref already used on this wallet by a payout that is pending or paid. Nothing new is paid. status is 1 and data is the original payout: data.txstatus 0 means it is still pending, 1 that it was paid. Record it and do not send it again.
PY05externalref already usedThe externalref was already used on this wallet and nothing new was paid. When it was used by a payout that failed, data is that original payout with data.txstatus 2: fix the cause and send the payout again with a new externalref. When it was used by another kind of transaction (such as a payment), data is "extid": use a new externalref. HTTP 409 in strict mode.
SS00Authentication Error, authentication information is requiredReturned by Transfer Status, Transfer and Payment Status.
SS01Transaction SuccessfulWhen checking a transfer transaction status.
SS02Transaction FailedReturned by Transaction status, Transfer and Payment Status.
SS03Request Parameters Incomplete, Please check and try again.Returned by Transfer Status, Transfer and Payment Status, Payment ID / Bank Account Status.
SS04Request type invalid.Returned by Transfer Status, Transfer and Payment Status.
SS06idtype invalid, options are [1,2]Returned by Transfer Status, Transfer and Payment Status.
SS07Transaction not foundReturned by Transfer Status, Transfer and Payment Status.
SS08Transaction PendingReturned by Transaction status.
TR01Generic payment service errorPayout or collection when the payment service returned a generic error. The result is unknown, treat it as pending: check the status by externalref before doing anything else.
TR02Generic payment service errorSame as TR01: the outcome is unknown. Never resend; check the status by externalref.
TR08Pay out SuccessfulPayout completed. Status 1 with this code is final success.
TR09It looks like you have insufficient balance to make this paymentWhen the wallet used for an internal transfer has insufficient funds.
TR099Internal transfer initiated successfullyWhen making an internal transfer.
TR099nullMobile money collection: when the Mobile Money USSD prompt is triggered successfully.
P02Transaction FailedPayment callback: a failed payment attempt with status 0 and data.txstatus 2. Read data.reason for the failure reason. Also the payment.failed webhook.
P11Payouts successfulWebhook payout.succeeded: payouts in data.hooks were paid.
P12Payouts failedWebhook payout.failed: payouts in data.hooks failed and the money is back in the wallet.
P13Payouts reversedWebhook payout.reversed: payouts already reported as paid were reversed.
P21Settlements successfulWebhook settlement.succeeded: settlements in data.hooks were paid.
P22Settlements failedWebhook settlement.failed: settlements in data.hooks failed and the money is back in the wallet.
P23Settlements reversedWebhook settlement.reversed: settlements already reported as paid were reversed.
POS09POS payment link successfully generated.Not specified in the source catalogue.
TP00Authentication Error, authentication information is requiredReturned by Mobile Money Collection.
TP01Currency InvalidMobile money collection: when an unsupported currency is supplied.
TP02Invalid wallet for top upReturned by Mobile Money Collection.
TP03This wallet is inactive.Returned by Mobile Money Collection.
TP04Account number not found or currency invalid.Returned by Mobile Money Collection.
TP05Amount is required and must be greater than 0.01Returned by Mobile Money Collection.
TP06Payer Details are requiredReturned by Mobile Money Collection.
TP07External Reference is required and must be unique.Returned by Mobile Money Collection.
TP08Request Parameters Incomplete, Please check and try again.Returned by Mobile Money Collection.
TP09This channel does not support API topup.For a payment link using an unsupported channel.
TP10Request type invalid.Returned by Mobile Money Collection.
TP11An unknown error occured, Please refresh and try again.Returned by Shared response helpers, Get Banks, Mobile Money Collection.
TP13External reference is required and must be unique.When receiving mobile money with a missing or non-unique external reference.
TP14Please complete the verification process sent to you via SMS and try again.Mobile money collection: when verifying an OTP.
TP15Invalid Phone no. Verification Code, Please request a code.Mobile Money Collection when the one-time code is wrong or expired. After 5 wrong attempts the code is invalidated: request a new one.
TP16Unknown Error Occured. Please try again or request a new code.Mobile Money Collection when the verification step failed for an unexpected reason.
TP17Phone number verification successful.Mobile money collection: when OTP verification is successful.
TP18Network timeout, payment request may still be sent.Mobile Money Collection when the request to the mobile money network timed out. The customer may still receive the prompt and the payment may still complete. Do not retry or create a new reference: wait for the callback, or check Payment Status with the original externalref, before doing anything else.
TP19Please complete the verification process sent to you via SMS and try again.Mobile Money Collection when the payer must first verify their phone number with the one-time code sent by SMS. Send the code in otpcode and repeat the request with the same externalref.
ASMQ00Request data invalid, Please check your request parameters and try again.Returned by SMS Status.
ASMQ01Sender ID StatusFor approved, pending, or rejected Sender ID statuses.
ASMQ03Account StatusFor the SMS service balance.
ASMQ04senderid is required.Returned by SMS Status.
ASMQ06senderid is required.Not specified in the source catalogue.
ASMQ07Sender IDs updated successfully.When approving Sender IDs.
ASMQ08Sender ID: '[sender ID]' is longer than 11 characters.Not specified in the source catalogue.
ASMQ08List of Your Sender IDsWhen listing Sender IDs; the same status code can also be returned when creating one.
ASMQ09You do not have permission to update Sender IDs. Contact Customer Support.Not specified in the source catalogue.
ASMQ10SMS StatusWhen checking the status of an SMS.
ASMQ11senderid contains characters that are not allowed.Returned by SMS Status.
ASMQ12Sender IDs Created Successfully.Not specified in the source catalogue.
ASMS01Request data invalid, Please check your request parameters and try again.Returned by Send SMS.
ASMS02senderid is required.Returned by Send SMS.
ASMS03Number for message at (Returned by Send SMS.
ASMS04message for message at (Returned by Send SMS.
ASMS05ref at (Returned by Send SMS.
ASMS06SMS Bundle Balance Insufficient, Please login on app.moolre.com to top up your balance.Returned by Send SMS.
ASMS07Sender ID is not approved. Please log in to app.moolre.com and set up your Sender ID.When the Sender ID is incorrect, not approved, or does not exist.
ASMS08Request data invalid, Please check your request parameters and try again.Returned by Send SMS.
ASMS09Request Unknown.For an unknown Sender ID request.
ASMS10The SMS gateway did not respond, please try again.Returned by Send SMS.
SMS01SuccessWhen an SMS is sent successfully.
WAS200Templates retrieved successfully or successWhen listing templates, sending a message successfully, or checking message status.
WAS400Template name is requiredReturned by Send WhatsApp Message, WhatsApp Message Status.
WAS401Your whatsapp business account is not fully setupReturned by Send WhatsApp Message, WhatsApp Message Status, WhatsApp Templates.
WAS403Authentication Error, authentication information is requiredReturned by WhatsApp Message Status, WhatsApp Templates.
WAS404WhatsApp Service not found, please create one at https://app.moolre.comReturned by Send WhatsApp Message, WhatsApp Message Status, WhatsApp Templates.
WAS500An unknown error occured, Please refresh and try again.Returned by WhatsApp Message Status, WhatsApp Templates.
BLK00Authentication Error, authentication information is requiredReturned by Bulk Payout, List Bulk Payouts, Bulk Payout Status.
BLK01Batch acceptedBulk Payout accepted: items were validated and queued.
BLK02Batch already received.Bulk Payout repeated with the same batchref and the same items: the original batch is returned, nothing is queued twice.
BLK03Request type invalid.Returned by Bulk Payout.
BLK04accountnumber is required.Returned by Bulk Payout.
BLK05items must be a non-empty list.Returned by Bulk Payout.
BLK06A batch holds at mostReturned by Bulk Payout.
BLK07atomic was set and some items were rejected. Nothing was queued.Returned by Bulk Payout.
BLK08No valid items in this batch.Returned by Bulk Payout.
BLK09batchref was already used with different items. Use a new batchref.Bulk Payout when batchref matches an earlier batch with different items. Use a new batchref.
BLK10Currency InvalidReturned by Bulk Payout.
BLK11Account number not found or currency invalid.Returned by Bulk Payout.
BLK12This wallet is inactive.Returned by Bulk Payout.
BLK13This wallet currency does not match the batch currency.Returned by Bulk Payout.
BLK14callback must be an https URL of at most 512 characters.Returned by Bulk Payout.
BLK15Too many batches are still processing on this wallet. Wait for some to complete.Returned by Bulk Payout.
BLK17Bulk payouts are not available right now.Returned by Bulk Payout.
BLK18This endpoint needs your private API key.Returned by Bulk Payout.
BLK20Credentials for this batch are not available.Returned by Bulk Payout.
BLK21Batch found.Returned by Bulk Payout Status.
BLK22Batch not found.Returned by Bulk Payout Status.
BLK23accountnumber and batchid or batchref are required.Returned by Bulk Payout Status.
BLK24status filter must be one of queued, submitted, pending, succeeded, failed.Returned by Bulk Payout Status.
BLK25page must be a whole number from 1.Returned by Bulk Payout Status.
BLK30Outcome unknown. Check the transaction by externalref.A bulk item whose payout outcome is not final. Do not resubmit it: check the transaction by its externalref.
BLK31Batches found.Returned by Bulk Payout, List Bulk Payouts.
BLK32Paid.Returned by Bulk Payout.
BLK33Batch rowBulk Payout Status item detail.
BLK34accountnumber is required.Returned by List Bulk Payouts.
BLK35status filter must be queued, processing or completed.Returned by List Bulk Payouts.
BLK37page must be a whole number from 1.Returned by List Bulk Payouts.
BLK40Bulk payout completedWebhook bulk_payout.completed: every payout of a batch is final.
BLK50An unknown error occured, Please refresh and try again.Returned by Bulk Payout, List Bulk Payouts, Bulk Payout Status.
BLKR01externalref is required.Returned by Bulk Payout.
BLKR02externalref must be at most 128 printable characters.Returned by Bulk Payout.
BLKR03Duplicate externalref in this batch (first used at indexReturned by Bulk Payout.
BLKR04externalref has already been used on this wallet.Returned by Bulk Payout.
BLKR05receiver is required.Returned by Bulk Payout.
BLKR06channel must be one of MTN, TELECEL, AT, BANK, GHQR.Returned by Bulk Payout.
BLKR07amount must have at most 2 decimal places. Send it as a string.Returned by Bulk Payout.
BLKR08The most you can pay out in one transaction is GHSReturned by Bulk Payout.
BLKR09sublistid is required for the BANK channel.Returned by Bulk Payout.
BLKR10sendername must be 1-40 characters: letters, digits, space . ' -Returned by Bulk Payout.
BLKR11reference must be at most 64 printable characters.Returned by Bulk Payout.
BLKR12Each item must be an object.Returned by Bulk Payout.
BLKR13Only the BANK channel is available for NGN.Returned by Bulk Payout.
INV00Authentication Error, authentication information is requiredReturned by Cancel Invoice, Create Invoice, List Invoices.
INV01Invoice createdCreate Invoice succeeded.
INV02Invoice already existsCreate Invoice repeated with the same reference and the same content: the existing invoice is returned.
INV03invoiceid is required.Returned by Invoices, Cancel Invoice, List Invoices.
INV04customer is required: {"name": "...", "phone": "...", "email": "..."}.Returned by Invoices.
INV05Send either amount or items, not both and not neither.Returned by Invoices.
INV06due_date is required (YYYY-MM-DD or YYYY-MM-DD HH:MM:SS, UTC).Returned by Invoices.
INV07reference was already used on this wallet for a different invoice.Returned by Invoices, Create Invoice.
INV08Invoices are available on GHS and NGN wallets.Returned by Create Invoice.
INV09This wallet has no collection service to invoice from. Create one in the dashboard first.Returned by Create Invoice.
INV10Account number not found.Returned by Invoices.
INV11This wallet is inactive.Returned by Invoices.
INV12Invoice not found.Returned by Cancel Invoice, Invoice Status.
INV13This endpoint needs your private API key.Returned by Cancel Invoice, Create Invoice.
INV14Invoices found.Returned by List Invoices.
INV15Invoice found.Returned by Invoice Status.
INV16starting_after is not a valid invoiceid.Returned by List Invoices.
INV17Invoice cancelled.Returned by Cancel Invoice.
INV18Invoice cannot be cancelledCancel Invoice when the invoice is already paid, expired or cancelled.
INV50An unknown error occured, Please refresh and try again.Returned by Cancel Invoice, Create Invoice, List Invoices.
WHD01Webhook deliveriesReturned by Webhook Deliveries.
WHD02Webhook deliveriesWebhook Deliveries returned a page of delivery attempts.
WHD03An unknown error occured, Please refresh and try again.Returned by Webhook Deliveries.
WHD05Authentication Error, a private API key is required.Returned by Webhook Deliveries.
WHR01Webhook event queued for delivery.Returned by Resend Webhook.
WHR02Webhook event not found.Returned by Resend Webhook.
WHR03event_id is required (evt_ followed by 24 characters).Returned by Resend Webhook.
WHR04An unknown error occured, Please refresh and try again.Returned by Resend Webhook.
WHR05Authentication Error, a private API key is required.Returned by Resend Webhook.
WHT00Webhook testReturned by Send Test Webhook.
WHT01Test webhook sentSend Test Webhook delivered the webhook.test event to the webhook_url or callback URL.
WHT02No webhook_url or callback URL is set on this wallet.Returned by Send Test Webhook.
WHT03An unknown error occured, Please refresh and try again.Returned by Send Test Webhook.
WHT04The callback URL (or webhook_url) on this wallet cannot be used:Returned by Send Test Webhook.
WHT05Authentication Error, a private API key is required.Returned by Send Test Webhook.
WHT06Test webhooks are sent only to https URLs on port 443.Returned by Send Test Webhook when the webhook_url or callback is http or uses another port. Nothing is sent. Change it with Update Account.
WHT07Too many test webhooks. Try again later (10 per minute, 100 per day).Returned by Send Test Webhook when the wallet has used its limit of 10 tests a minute or 100 a day.
DA01sublistid for Ghana Bank TransferWhen retrieving banks.
DA02Unknown data requestReturned by Get Banks.
IDEM01Idempotency-Key reused with a different requestThe same Idempotency-Key was sent with a different request body. HTTP 409 in strict mode. Use a new key for a new request, or resend the original body to receive the stored response.
IDEM02A request with this Idempotency-Key is still being processed. Wait a moment, then send it again.A second request with the same Idempotency-Key arrived while the first was still running. Wait, then resend the identical request.
IDEM03Idempotency-Key must be 1 to 128 printable characters.The Idempotency-Key header is empty, too long or contains control characters.
OTP429Too many OTP attempts. Try again later.Returned instead of sending or accepting a one-time code when the limit is reached (3 sends per phone per 10 minutes, 10 per phone per day, 30 per IP per hour, 5 wrong attempts per code). HTTP 429 in strict mode. Wait before trying again; retrying immediately does not help.
ASB02Data bundlesSales Bundles: a successful bundle catalogue response, grouped by network in the supplied example.
ASB00Authentication Error, authentication information is requiredReturned by Bundles.
ASB01network must be MTN, TELECEL or AT.Returned by Bundles.
ASB03An unknown error occured, Please refresh and try again.Returned by Bundles.
ASL00Authentication Error, authentication information is requiredReturned by Airtime and Data.
ASL01Amount is required and must be at least 1.00Returned by Airtime and Data.
ASL02Phone no. is requiredReturned by Airtime and Data.
ASL03Request Parameters Incomplete, Please check and try again.Returned by Airtime and Data.
ASL04This channel does not support airtime and data sales.Returned by Airtime and Data.
ASL05Request type invalid.Returned by Airtime and Data.
ASL06An unknown error occured, TRANSACTION MAY BE SUCCESSFUL, Please Check.Airtime or Data sale when the outcome is unknown. Do not resubmit: check Sales Status with the original reference first.
ASL07Use open/sales/airtime or open/sales/data.A sale was sent to the combined sale endpoint. Use the Airtime or Data endpoint.
ASL08extid/externalref is required and must be unique.Returned by Airtime and Data.
ASL09Currency Invalid, airtime is sold in GHS only.Returned by Airtime and Data.
ASL10This wallet is currency does not support this channel currency.Returned by Airtime and Data.
ASL11See the endpoint page for the response message.Returned by Airtime and Data.
ASL12This wallet is inactive.Returned by Airtime and Data.
ASL13Account number not found or currency invalid.Returned by Airtime and Data.
ASL14bundle is required for data.Returned by Airtime and Data.
ASL15Invalid bundle for this network, see open/sales/bundles for the bundles on sale.Returned by Airtime and Data.
ASS00Authentication Error, authentication information is requiredReturned by Sales Status.
ASS01Sale SuccessfulReturned by Sales Status.
ASS02Sale Failed, the charge was refundedReturned by Sales Status.
ASS03Sale PendingReturned by Sales Status.
ASS04Sale not foundReturned by Sales Status.
ASS05idtype invalid, options are 1 (externalref), 2 (transactionid) or 3 (reference).Returned by Sales Status.
ASS06Request Parameters Incomplete, accountnumber, idtype and id are required.Returned by Sales Status.
ASS07Request type invalid.Returned by Sales Status.
ASS08An unknown error occured, Please refresh and try again.Returned by Sales Status.

Keep integrations resilient

Some codes can be returned by more than one operation, and response wording may evolve. Prefer the status code and endpoint context over exact message text. Treat duplicate codes such as TR099 and ASMQ08 as context-dependent.

Codes that are not failures

A few codes mean the result is not known yet: PY01, PY02, TR01, TR02, TP11, TP18, APY10, APY16, ASL06, IS30 and SYS500. Treat each as pending and never as failed, and never create a new reference to try again. The response has no outcome field: decide from status, code and data.txstatus (0 pending, 1 succeeded, 2 failed). Status 1 with TR08, OBGH01, OTGH01, OBNG01, GHQ03 or OM03 is final success; any other status 1 is an accepted, unfinished request.

CodeMeaningWhat to do
TP18Network timeout. The payment request may still be sent to the customer and the payment may still complete.Do not retry. Wait for the webhook or check Payment Status with the original externalref.
PY02The payment service did not answer in time.Check Transfer Status by externalref before any other action.
APY16, PY01The payout may have started.Check Transfer Status by externalref. Never resubmit.
ASL06An airtime or data sale with an unknown result.Check Sales Status with the original reference.
IS30An insurance sale with an unknown result. It may have been charged.Check Sales Status with the original externalref. Never resubmit with a new one.
TR01, TR02, TP11, APY10, SYS500A generic or unexpected error where the result is not known.Check the status by externalref before any other action. Never resend blindly.

Code families

The letters at the start of a code tell you which area it belongs to. The reference table above is ordered by these families.

PrefixAreaNotes
AIN, INAuthentication codesReturned by every endpoint before the request is processed. Fix the credentials; do not retry the same request.
APG, APGW, SW, WC, ST, AD, AC, WCU, PGAccount, wallet and Payment ID codesCreate Account, Update Account, Account Status, List Transactions, Payment ID and Bank Collections.
APY, AVD, OBGH, OTGH, OBNG, TR, OM, GHQ, PY, SSTransfer and payout codesValidate Name, Initiate Transfer, Internal Transfer and Transfer Status. A payout that is pending (txstatus 0) or unknown must be checked by externalref, never resubmitted.
TP, P, POSCollection (payment) codesMobile Money Collection, payment links and the payment callback. TP18 means the payment request may still be sent: do not retry, wait for the callback or check Payment Status.
ASMS, ASMQ, SMSSMS codesSend SMS, SMS Status, Sender IDs and SMS account status.
WASWhatsApp codesTemplates, Send Message and Message Status.
BLK, BLKRBulk payout codesCreate, status and list for bulk payout batches. BLKR codes describe why one item in a batch was rejected.
INVInvoice codesCreate, status, list and cancel for invoices.
WHD, WHR, WHTWebhook delivery codesWebhook Deliveries, Resend Webhook and Send Test Webhook.
IDEM, OTP, DA, MSGGeneral codesIdempotency, one-time code limits, banks data and other shared responses.

Airtime sales codes

ASL11 means the sale is in progress, not that airtime has been delivered. ASL06 is an uncertain outcome: the sale may still have gone through. Check the sale status before retrying; do not generate a new external reference to resubmit a pending or uncertain sale.

Other replies are returned from the sales server unchanged. The table describes code meanings, not guaranteed exact response messages.

CodeMeaningNext step
ASL11Sale in progress; no final reply yet.Check the sale status before treating the top-up as complete or submitting again.
ASL00Authentication error.Check the API user and private API key for the wallet.
ASL01Amount missing or below GHS 1.00.Provide an amount of at least GHS 1.00.
ASL02Receiver missing.Provide the recipient phone number.
ASL03Incomplete request.Check all required request fields.
ASL04Channel not supported.Use MTN, TELECEL, or AT, or the corresponding legacy value 1, 6, or 7.
ASL05Type invalid.Send type 1.
ASL06Unknown error; the sale may still have gone through.Confirm the sale status before any retry. Do not generate a new reference to resubmit an uncertain sale.
ASL08External reference missing or already used.Use a unique reference per wallet for a new sale. Check the original sale before attempting a duplicate.
ASL09Currency is not GHS.Send currency GHS.
ASL10Wallet currency not supported.Use a wallet with a supported currency for this GHS sale.
ASL12Wallet inactive.Check the wallet activation state.
ASL13Account number not found.Check the paying wallet account number.

Data sales codes

Data uses the Airtime Sales codes above, plus the bundle-specific codes below.

Use a bundle ID returned by Bundles for the selected channel network. The bundle price determines the amount charged to the wallet. Do not send an amount parameter.

CodeMeaningNext step
ASL14Bundle missing.Provide a bundle ID returned by Bundles for the selected network.
ASL15Bundle not sold on this network.Use a bundle ID that Bundles lists for the selected channel network.

Bundle catalogue (ASB02)

ASB02 means Data bundles in the supplied catalogue response. It is a lookup result, not a completed Data purchase.

Use the returned bundle value as the bundle ID in a Data sale, and use the matching network as the sale channel. The bundle price determines the charge; do not send amount to the Data endpoint. An empty network array means this example contains no entries for that network, not that the network is permanently unsupported.

Sales Status codes

This endpoint reads Airtime and Data sales records directly. Only sales belonging to the wallet in accountnumber are searched. Use data.txstatus and the application code to distinguish pending, sent, failed-and-refunded, and not-found outcomes. A pending or uncertain purchase must not be treated as delivered or blindly resubmitted with a new reference.

ASS01 means sent, ASS02 failed and refunded, ASS03 pending, and ASS04 not found. refundid identifies the refund transaction for a failed/refunded sale.

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.

Insurance sales codes

IS21 and ASL11 mean the policy is still being confirmed with the insurer. They are not a failure and not an issued policy. The same applies when a request times out or returns ASL06 or IS30: the sale may still have gone through. Never resend the purchase with a new externalref. Check Sales Status with idtype 1 and the original externalref until txstatus is final: 1 means issued, and only 2 means the policy was not issued and the charge was refunded, so a new purchase is safe. txstatus 0 with stage refund_pending (IS23) means the policy was not issued and the refund is being processed.

ASL codes come from the API; ASQ, ASV and ASC codes belong to Quote, Vehicles and Covers. Codes starting IS (Sell Insurance) and IQ (Quote and Vehicles) come from the sales server and are returned unchanged. The status of an insurance sale uses ASS01, ASS02, ASS03 and ASS09.

CodeMeaningNext step
ASL00Authentication error.Check X-API-USER and X-API-KEY.
ASL03Request incomplete.Send type, accountnumber, externalref, premium and policy.
ASL05type invalid.Send type 1 (new motor policy) or 2 (renewal).
ASL06Unknown error; the sale may still have been charged.Check Sales Status with idtype 1 and the original externalref. Never resend with a new externalref.
ASL08externalref (or extid) is missing, longer than 128 characters, or already used on this wallet.Send a unique externalref of at most 128 characters for each new sale. When it was already used nothing is charged and the earlier sale is not changed; the reply does not carry that sale, so look it up with Sales Status (idtype 1). HTTP 409 with X-Moolre-Http-Status: strict, otherwise 200.
ASL09Currency invalid: insurance is sold in GHS only.Send currency GHS or leave it out.
ASL10The wallet is not a GHS wallet.Sell from your GHS insurance agent wallet.
ASL11Insurance sale in progress: no readable reply from the sales server in time.The sale may still go through. Check Sales Status with the original externalref. Do not resend.
ASL12The wallet is inactive.Check the wallet with Moolre Support.
ASL13Account number not found or currency invalid.Check accountnumber.
ASL16premium is required and must be an amount above 0.00.Send the premium as a decimal amount in GHS with at most 2 decimals.
ASL17policy is required and must be an object.Send policy as a JSON object with the fields for the type.
ASQ00Authentication error (Quote).Check X-API-USER, X-API-KEY and accountnumber.
ASQ01start_date is missing or not a valid date.Send start_date as YYYY-MM-DD.
ASQ02seats is missing or not a whole number from 1 to 100.Send the number of seats.
ASQ03Reserved for engcc; not used by Quote.No action.
ASQ04Request incomplete (Quote).Send accountnumber, start_date and seats.
ASQ05No readable answer from the insurer.Wait a moment and ask again. Nothing is charged by a quote.
ASQ06Unknown error (Quote).Ask again. Nothing is charged by a quote.
ASV00Authentication error (Vehicles).Check X-API-USER, X-API-KEY and accountnumber.
ASV01search_term is missing or not 2 to 60 characters.Send the make and model of the vehicle, for example TOYOTA COROLLA.
ASV02seats is missing or not a whole number from 1 to 100.Send the number of seats.
ASV03engcc is missing or not a whole number from 1 to 20000.Send the engine capacity in cc.
ASV04Request incomplete (Vehicles).Send accountnumber, search_term, seats and engcc.
ASV05No readable answer from the insurer.Wait a moment and search again.
ASV06Unknown error (Vehicles).Search again.
ASN00Authentication error (VIN).Check X-API-USER, X-API-KEY and accountnumber.
ASN01vin is missing or not 17 letters and digits (never I, O or Q).Send the VIN as printed on the registration or chassis plate. Spaces and case are ignored.
ASN02seats, when sent, is not a whole number from 1 to 100.Send a valid seats or leave it out.
ASN03Reserved for engcc; not used by VIN.No action.
ASN04Request incomplete (VIN).Send accountnumber and vin.
ASN05No readable answer for the VIN lookup.Wait a moment and ask again, or search the vehicle with Insurance Vehicles. Nothing is charged.
ASN06Unknown error (VIN).Ask again. Nothing is charged.
ASC00Authentication error (Covers).Check X-API-USER, X-API-KEY and accountnumber.
ASC02Insurance covers and policy types.The lists were returned in data.
ASC03Unknown error (Covers).Ask again.
ASS09Policy not issued, the refund is pending.Returned by Sales Status. The policy was not issued and the refund is being processed. Do not buy again until Sales Status shows txstatus 2.
IQ02Not authorised.accountnumber must be your own insurance agent wallet and the request must use your API user and key.
IQ03type must be 1 (quote), 2 (vehicle search) or 3 (VIN lookup).Use the Quote, Vehicles or VIN endpoint.
IQ04This wallet is not registered as an insurance sales agent.Contact Moolre Support to register the wallet.
IQ05start_date is missing or not a valid date.Send start_date as YYYY-MM-DD.
IQ06seats is missing or not a whole number from 1 to 100.Send the number of seats.
IQ07search_term is missing or not 2 to 60 characters.Send the make and model of the vehicle.
IQ08engcc is missing or not a whole number from 1 to 20000.Send the engine capacity in cc.
IQ09The insurer (for a VIN lookup, or the VIN decoder) could not be reached, try again.Ask again after a moment.
IQ10The insurer has no price for these details.Check start_date and seats, or choose another cover.
IQ11vin is missing or not a valid 17-character VIN.Send the VIN as printed on the registration or chassis plate.
IQ12The VIN could not be decoded.NHTSA named no make. data holds the vin, warnings, decoded (null, or only what little was decoded such as the year), decoded_partial and a fallback. Check each character, or ask the person for the make, model and engine size and use Insurance Vehicles.
IQ13The VIN was decoded but the insurer lists no matching model.data holds the decoded vehicle, warnings, candidates (other models of the make at that engine size, when the insurer lists any) and a fallback. Search with Insurance Vehicles using fallback.suggested.
IQ20Insurance quote.Quote returned in data.covers.
IQ21Vehicles.Matching vehicles returned in data.vehicles.
IQ22No vehicles found.Try a shorter or different search_term, or another engcc.
IQ23Vehicle found for the VIN.Read data.best_match, data.candidates, data.confident, data.warnings and, when confident is false, data.fallback.
IQ24The VIN was only partly decoded (status 1).The make is known but not the model, or the make and model but not the engine size. Read data.decoded, data.candidates and data.fallback, then let the person choose with Insurance Vehicles.
IQ30Unknown error (quote or vehicle search).Ask again. Nothing is charged.
IS01Sales are temporarily unavailable, please try again in a few minutes.Nothing was done or charged. Try again shortly with the same externalref.
IS02Not authorised.accountnumber must be your own insurance agent wallet and the request must use your API user and key.
IS03Type must be 1 (new motor policy) or 2 (renewal).Send type 1 or 2.
IS04extid is required (maximum 128 characters).Send a unique externalref of at most 128 characters.
IS05A valid premium is required.Send the premium as an amount above 0.00.
IS06Check the policy details.data names the first field; errors lists every invalid field by its path, for example policy.customer.gender. Nothing is charged.
IS07This wallet is not registered as an insurance sales agent, or is not a GHS wallet.Contact Moolre Support to register a GHS wallet. Nothing is charged.
IS08There is an issue with your agent setup, please contact support.Contact Moolre Support. Nothing is charged.
IS09No price could be got from the insurer for this cover.Ask again later. Nothing is charged.
IS10The premium does not match the current price.The message states the current price. Get a fresh Quote and send that premium. Nothing is charged.
IS11Insurance sales are not available right now, please try again later.Nothing is charged. Try again later.
IS12Your wallet is completing a transaction now, please try again in a moment.Nothing is charged. Try again with the same externalref.
IS13Insufficient balance.Fund the wallet with at least the premium. Nothing is charged.
IS14The insurance wallet is busy, please try again in a moment.Nothing is charged. Try again with the same externalref.
IS15This extid has already been used on this wallet. Send the purchase again with a new extid.The externalref belongs to another sale or transaction. Check it with Sales Status before using a new one. A repeat of your own sale is normally answered with ASL08 before it reaches this check.
IS16The same request is being processed in parallel.Do not send it again. Check Sales Status with the externalref.
IS17The purchase could not be started, nothing was charged.Try again later.
IS18Policy renewals are not available on Moolre at the moment. Nothing was charged.Renewals (type 2) are closed for now. Nothing is charged and the externalref stays free. Do not send the renewal again; new policies (type 1) are not affected.
IS20Policy issued (status 1, txstatus 1).Read data.policy for the policy number and document links.
IS21Policy processing (status 1, txstatus 0).Not issued yet. Check Sales Status with the original externalref. Do not resend.
IS22Policy not issued, the charge was refunded (status 0, txstatus 2).Read refundid. A new purchase is now safe, with a new externalref: the old one stays used (ASL08).
IS23Policy not issued, the refund is pending (status 0, txstatus 0).Moolre is processing the refund. Check Sales Status; a new purchase is safe only once txstatus is 2.
IS30An unknown error occured, TRANSACTION MAY BE SUCCESSFUL, Please Check.The purchase may have been charged. Check Sales Status with the original externalref. Never resubmit with a new one.

Failed payment callbacks (P02)

P02 means Transaction Failed. In a failed payment callback, status is 0 and data.txstatus is 2. This is an application-level outcome code, not an HTTP status code.

Use data.reason to understand the failure and data.externalref to identify the payment attempt. data.transactionid can be null, and amount and value can be zero-valued strings. Do not mark the payment as paid or fulfil an order from a failed callback.