Errors and status codes
Environment: Live
Read Moolre response envelopes, distinguish transport errors from API errors, and surface actionable failures to users.
# 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.
| Code | Response | Condition |
| --- | --- | --- |
| AIN00 | Authentication Error | Bulk Payout when authentication information is missing. |
| AIN01 | Authentication Error | When the API keys or username are incorrect. |
| AIN02 | Authentication Error, accountnumber is required. | Endpoints that act on a wallet when accountnumber is missing from the request. |
| AIN03 | Authentication Error, wallet not found. | When checking account status and the API keys or wallet cannot be found. |
| AIN04 | Authentication 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. |
| AIN05 | Authentication Error | The API user and key (or public key) were rejected for the wallet in accountnumber. Check the credentials and the environment. |
| AIN06 | Request 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. |
| AIN09 | Authentication Error | Create Account or Update Account when the API user and key were rejected. |
| AIN11 | Authentication Error | SMS and WhatsApp endpoints when the X-API-VASKEY is missing or rejected. |
| AIN12 | A 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. |
| IN01 | Authentication Error | When validating a name with incorrect API keys. |
| IN02 | Authentication Error | Payout service rejected the credentials. Check the API user and private key. |
| IN03 | Authentication Error | Payout service rejected the credentials. Check the API user and private key. |
| IN04 | Authentication Error | Payout service rejected the credentials. Check the API user and private key. |
| IN05 | Authentication Error | Payout service rejected the credentials. Check the API user and private key. |
| IN06 | Authentication Error | Payout service rejected the credentials. Check the API user and private key. |
| IN08 | Authentication Error | Payout service rejected the credentials. Check the API user and private key. |
| AC01 | Payment ID / Bank Account Found | For a bank account status lookup that finds the account. |
| AC03 | Payment ID / Bank Account Not Found | For a bank account status lookup when the reference or account number is incorrect. |
| AD14 | Payment ID Creation Successful | When creating a Payment ID. The Sandbox message reads "Terminal Creation Successful". |
| AD16 | See the endpoint page for the response message. | Returned by Create Payment ID, Bank Collections. |
| AD19 | Account No. Creation Successful | For bank collections. |
| APG01 | Currency Invalid | Returned by Create Payment ID, Bank Collections. |
| APG02 | This wallet is inactive. | Returned by Create Payment ID, Bank Collections. |
| APG03 | Account number not found or currency invalid. | Returned by Create Payment ID, Bank Collections. |
| APG05 | name is required | Returned by Create Payment ID, Bank Collections. |
| APG06 | accountnumber is required | Returned by Create Payment ID, Bank Collections. |
| APG07 | Request Parameters Incomplete, Please check and try again. | Returned by Create Payment ID, Bank Collections. |
| APG08 | This currency does not support API. | Returned by Create Payment ID, Bank Collections. |
| APG09 | This wallet does not support GhQR Features. | Returned by Create Account, Bank Collections, Update Account. |
| APG10 | An unknown error occured, Please refresh and try again. | Returned by Create Account, Create Payment ID, Bank Collections. |
| APG11 | Authentication Error | Create Account when the request is not authenticated. |
| APG12 | externalref is required. | Returned by Create Payment ID. |
| APG13 | External Reference is required and must be unique. | Returned by Create Payment ID. |
| APGW01 | Currency Invalid | Returned by Create Account, Update Account. |
| APGW02 | accountname 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. |
| APGW03 | currency is required | Returned by Create Account, Update Account. |
| APGW04 | accountnumber is required | Returned by Create Account, Update Account. |
| APGW05 | Request Parameters Incomplete, Please check and try again. | Returned by Create Account, Update Account. |
| APGW06 | This currency does not support API. | Not specified in the source catalogue. |
| APGW07 | callback is required | Returned by Create Account, Update Account. |
| APGW08 | settlement is required | Returned by Create Account, Update Account. |
| APGW09 | Settlement Information Incomplete | Returned by Create Account, Update Account. |
| APGW10 | Phone number must start with zero (0) | Returned by Create Account, Update Account. |
| APGW11 | Callback is required when api is true | Returned by Update Account. |
| APGW12 | Authentication Error, wallet not found. | When the wallet being updated is not found in your wallets. |
| APGW13 | callback must be an absolute https URL on port 443 | Returned 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. |
| APGW14 | webhook must be 0 or 1 | Returned by Update Account. |
| APGW15 | webhook_url must be an absolute https URL on port 443 | Returned 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. |
| APGW16 | webhook_url is required when webhook is 1 | Returned by Update Account when webhooks are switched on for a wallet that has no webhook_url. |
| APGW17 | email must be 0 or 1 | Returned by Update Account. |
| PG01 | Invalid starting_after, send the next_cursor of the previous page. | List endpoints when starting_after is not a cursor returned by an earlier response. |
| PG02 | Invalid limit, use a number from 1 to | Returned by Payment ID / Bank Account Status, Payment ID and Bank Account Transactions. |
| PG03 | Invalid from, use YYYY-MM-DD or an ISO 8601 date after 2023-12-30. | Returned by List Account Transactions. |
| ST01 | Invalid startdate | Returned by List Account Transactions. |
| ST02 | Invalid enddate | Returned by List Account Transactions. |
| ST04 | Invalid startid | Returned by List Account Transactions. |
| ST05 | Invalid startid | Returned by List Account Transactions. |
| ST06 | Invalid limit | Returned by List Account Transactions. |
| ST07 | Invalid status | Returned by List Account Transactions. |
| ST08 | Transactions Found | Not specified in the source catalogue. |
| ST09 | Transactions not Found | Not specified in the source catalogue. |
| SW01 | Wallet Found | Not specified in the source catalogue. |
| SW02 | An unknown error occured, Please refresh and try again. | Returned by Account Status. |
| SW03 | Request type invalid. | Returned by Account Status. |
| SW04 | Request Parameters Incomplete, Please check and try again. | Returned by Account Status. |
| SW05 | Authentication Error, authentication information is required | Returned by Account Status. |
| SW06 | Wallet not found. | Returned by Account Status. |
| WC02 | Wallet created successfully. Your wallet will be reloaded shortly, or click close to refresh now. | When a wallet is created successfully. |
| WCU01 | Wallet update failed: invalid account number. | Not specified in the source catalogue. |
| WCU02 | Account updated successfully. | Not specified in the source catalogue. |
| APY00 | An unknown error occured, Please refresh and try again. | Payout or internal transfer when an unexpected error occurs. Check the status by externalref before retrying. |
| APY01 | Amount is required | Returned by Internal Transfer, Initiate Transfer. |
| APY04 | Phone no. is required | Returned by Initiate Transfer. |
| APY05 | Account no. is required | Returned by Initiate Transfer. |
| APY06 | Recipient Details are required | Returned by Internal Transfer, Initiate Transfer. |
| APY07 | Request Parameters Incomplete, Please check and try again. | Returned by Internal Transfer, Initiate Transfer. |
| APY08 | This channel does not support API payout. | Returned by Initiate Transfer. |
| APY09 | Request type invalid. | Returned by Internal Transfer, Initiate Transfer. |
| APY10 | An unknown error occured, Please refresh and try again. | Payout or internal transfer when an unexpected error occurs. Check the status by externalref before retrying. |
| APY11 | Receiver account number is invalid. It must me a Moolre Account Number. | Returned by Internal Transfer. |
| APY12 | Currency Invalid | Returned by Internal Transfer, Initiate Transfer. |
| APY13 | This wallet is inactive. | Returned by Internal Transfer, Initiate Transfer. |
| APY14 | Account number not found or currency invalid. | Returned by Internal Transfer, Initiate Transfer. |
| APY15 | This wallet is currency does not support this channel currency. | Returned by Internal Transfer, Initiate Transfer. |
| APY16 | Pay out in Progress | Transfer 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. |
| APY18 | External 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). |
| APY19 | Currency Invalid | Returned by Initiate Transfer. |
| APY20 | sublistid is required | Returned by Initiate Transfer. |
| APY21 | Insufficient wallet balance. | When making a payout with insufficient wallet balance. |
| APY22 | sendername must be 2 to 30 characters: letters, spaces and . ' - only. | Initiate Transfer when the optional sendername is invalid. |
| AVD00 | Authentication Error, authentication information is required | Returned by Validate Name. |
| AVD01 | Successful | When validating the name for a Ghanaian number. |
| AVD02 | Request type invalid. | Returned by Validate Name. |
| AVD03 | Failed | Returned by Validate Name. |
| AVD04 | Request Parameters Incomplete, Please check and try again. | Returned by Validate Name. |
| AVD05 | Recipient Details are required | Returned by Validate Name. |
| AVD06 | Account no. is required | Returned by Validate Name. |
| AVD07 | Phone no. is required | Returned by Validate Name. |
| AVD10 | Currency Invalid | Returned by Validate Name. |
| AVD11 | Currency Invalid | Returned by Validate Name. |
| AVD12 | This system is not recognized. | Returned by Validate Name. |
| AVD13 | {field} is required | Validate Name when the receiver is missing. |
| GHQ03 | Pay out Successful | GhQR payout completed. Status 1 with this code is final success. |
| OBGH01 | Pay out Successful | When making a payout. |
| OBNG01 | Pay out Successful | Naira bank payout completed. Status 1 with this code is final success. |
| OM03 | Pay out Successful | When an internal transfer is completed successfully. |
| OM12 | Network unavailable | Payout not started and not charged because the network is unavailable. It is safe to retry. Bulk payouts retry such items automatically. |
| OM16 | Could not be started, not charged | Payout could not be started and the wallet was not charged. It is safe to retry. Bulk payouts retry such items automatically. |
| OTGH01 | Pay out Successful | Telecel or AT payout completed. Status 1 with this code is final success. |
| OTGH02 | Pay out in Progress | When an unsupported channel is selected. |
| PY01 | Request could not be completed | Generic 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. |
| PY02 | Payment service did not answer | The 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. |
| PY04 | Duplicate extid, this is the original pay out | A 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. |
| PY05 | externalref already used | The 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. |
| SS00 | Authentication Error, authentication information is required | Returned by Transfer Status, Transfer and Payment Status. |
| SS01 | Transaction Successful | When checking a transfer transaction status. |
| SS02 | Transaction Failed | Returned by Transaction status, Transfer and Payment Status. |
| SS03 | Request Parameters Incomplete, Please check and try again. | Returned by Transfer Status, Transfer and Payment Status, Payment ID / Bank Account Status. |
| SS04 | Request type invalid. | Returned by Transfer Status, Transfer and Payment Status. |
| SS06 | idtype invalid, options are [1,2] | Returned by Transfer Status, Transfer and Payment Status. |
| SS07 | Transaction not found | Returned by Transfer Status, Transfer and Payment Status. |
| SS08 | Transaction Pending | Returned by Transaction status. |
| TR01 | Generic payment service error | Payout 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. |
| TR02 | Generic payment service error | Same as TR01: the outcome is unknown. Never resend; check the status by externalref. |
| TR08 | Pay out Successful | Payout completed. Status 1 with this code is final success. |
| TR09 | It looks like you have insufficient balance to make this payment | When the wallet used for an internal transfer has insufficient funds. |
| TR099 | Internal transfer initiated successfully | When making an internal transfer. |
| TR099 | null | Mobile money collection: when the Mobile Money USSD prompt is triggered successfully. |
| P02 | Transaction Failed | Payment callback: a failed payment attempt with status 0 and data.txstatus 2. Read data.reason for the failure reason. Also the payment.failed webhook. |
| P11 | Payouts successful | Webhook payout.succeeded: payouts in data.hooks were paid. |
| P12 | Payouts failed | Webhook payout.failed: payouts in data.hooks failed and the money is back in the wallet. |
| P13 | Payouts reversed | Webhook payout.reversed: payouts already reported as paid were reversed. |
| P21 | Settlements successful | Webhook settlement.succeeded: settlements in data.hooks were paid. |
| P22 | Settlements failed | Webhook settlement.failed: settlements in data.hooks failed and the money is back in the wallet. |
| P23 | Settlements reversed | Webhook settlement.reversed: settlements already reported as paid were reversed. |
| POS09 | POS payment link successfully generated. | Not specified in the source catalogue. |
| TP00 | Authentication Error, authentication information is required | Returned by Mobile Money Collection. |
| TP01 | Currency Invalid | Mobile money collection: when an unsupported currency is supplied. |
| TP02 | Invalid wallet for top up | Returned by Mobile Money Collection. |
| TP03 | This wallet is inactive. | Returned by Mobile Money Collection. |
| TP04 | Account number not found or currency invalid. | Returned by Mobile Money Collection. |
| TP05 | Amount is required and must be greater than 0.01 | Returned by Mobile Money Collection. |
| TP06 | Payer Details are required | Returned by Mobile Money Collection. |
| TP07 | External Reference is required and must be unique. | Returned by Mobile Money Collection. |
| TP08 | Request Parameters Incomplete, Please check and try again. | Returned by Mobile Money Collection. |
| TP09 | This channel does not support API topup. | For a payment link using an unsupported channel. |
| TP10 | Request type invalid. | Returned by Mobile Money Collection. |
| TP11 | An unknown error occured, Please refresh and try again. | Returned by Shared response helpers, Get Banks, Mobile Money Collection. |
| TP13 | External reference is required and must be unique. | When receiving mobile money with a missing or non-unique external reference. |
| TP14 | Please complete the verification process sent to you via SMS and try again. | Mobile money collection: when verifying an OTP. |
| TP15 | Invalid 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. |
| TP16 | Unknown Error Occured. Please try again or request a new code. | Mobile Money Collection when the verification step failed for an unexpected reason. |
| TP17 | Phone number verification successful. | Mobile money collection: when OTP verification is successful. |
| TP18 | Network 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. |
| TP19 | Please 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. |
| ASMQ00 | Request data invalid, Please check your request parameters and try again. | Returned by SMS Status. |
| ASMQ01 | Sender ID Status | For approved, pending, or rejected Sender ID statuses. |
| ASMQ03 | Account Status | For the SMS service balance. |
| ASMQ04 | senderid is required. | Returned by SMS Status. |
| ASMQ06 | senderid is required. | Not specified in the source catalogue. |
| ASMQ07 | Sender IDs updated successfully. | When approving Sender IDs. |
| ASMQ08 | Sender ID: '[sender ID]' is longer than 11 characters. | Not specified in the source catalogue. |
| ASMQ08 | List of Your Sender IDs | When listing Sender IDs; the same status code can also be returned when creating one. |
| ASMQ09 | You do not have permission to update Sender IDs. Contact Customer Support. | Not specified in the source catalogue. |
| ASMQ10 | SMS Status | When checking the status of an SMS. |
| ASMQ11 | senderid contains characters that are not allowed. | Returned by SMS Status. |
| ASMQ12 | Sender IDs Created Successfully. | Not specified in the source catalogue. |
| ASMS01 | Request data invalid, Please check your request parameters and try again. | Returned by Send SMS. |
| ASMS02 | senderid is required. | Returned by Send SMS. |
| ASMS03 | Number for message at ( | Returned by Send SMS. |
| ASMS04 | message for message at ( | Returned by Send SMS. |
| ASMS05 | ref at ( | Returned by Send SMS. |
| ASMS06 | SMS Bundle Balance Insufficient, Please login on app.moolre.com to top up your balance. | Returned by Send SMS. |
| ASMS07 | Sender 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. |
| ASMS08 | Request data invalid, Please check your request parameters and try again. | Returned by Send SMS. |
| ASMS09 | Request Unknown. | For an unknown Sender ID request. |
| ASMS10 | The SMS gateway did not respond, please try again. | Returned by Send SMS. |
| SMS01 | Success | When an SMS is sent successfully. |
| WAS200 | Templates retrieved successfully or success | When listing templates, sending a message successfully, or checking message status. |
| WAS400 | Template name is required | Returned by Send WhatsApp Message, WhatsApp Message Status. |
| WAS401 | Your whatsapp business account is not fully setup | Returned by Send WhatsApp Message, WhatsApp Message Status, WhatsApp Templates. |
| WAS403 | Authentication Error, authentication information is required | Returned by WhatsApp Message Status, WhatsApp Templates. |
| WAS404 | WhatsApp Service not found, please create one at https://app.moolre.com | Returned by Send WhatsApp Message, WhatsApp Message Status, WhatsApp Templates. |
| WAS500 | An unknown error occured, Please refresh and try again. | Returned by WhatsApp Message Status, WhatsApp Templates. |
| BLK00 | Authentication Error, authentication information is required | Returned by Bulk Payout, List Bulk Payouts, Bulk Payout Status. |
| BLK01 | Batch accepted | Bulk Payout accepted: items were validated and queued. |
| BLK02 | Batch already received. | Bulk Payout repeated with the same batchref and the same items: the original batch is returned, nothing is queued twice. |
| BLK03 | Request type invalid. | Returned by Bulk Payout. |
| BLK04 | accountnumber is required. | Returned by Bulk Payout. |
| BLK05 | items must be a non-empty list. | Returned by Bulk Payout. |
| BLK06 | A batch holds at most | Returned by Bulk Payout. |
| BLK07 | atomic was set and some items were rejected. Nothing was queued. | Returned by Bulk Payout. |
| BLK08 | No valid items in this batch. | Returned by Bulk Payout. |
| BLK09 | batchref 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. |
| BLK10 | Currency Invalid | Returned by Bulk Payout. |
| BLK11 | Account number not found or currency invalid. | Returned by Bulk Payout. |
| BLK12 | This wallet is inactive. | Returned by Bulk Payout. |
| BLK13 | This wallet currency does not match the batch currency. | Returned by Bulk Payout. |
| BLK14 | callback must be an https URL of at most 512 characters. | Returned by Bulk Payout. |
| BLK15 | Too many batches are still processing on this wallet. Wait for some to complete. | Returned by Bulk Payout. |
| BLK17 | Bulk payouts are not available right now. | Returned by Bulk Payout. |
| BLK18 | This endpoint needs your private API key. | Returned by Bulk Payout. |
| BLK20 | Credentials for this batch are not available. | Returned by Bulk Payout. |
| BLK21 | Batch found. | Returned by Bulk Payout Status. |
| BLK22 | Batch not found. | Returned by Bulk Payout Status. |
| BLK23 | accountnumber and batchid or batchref are required. | Returned by Bulk Payout Status. |
| BLK24 | status filter must be one of queued, submitted, pending, succeeded, failed. | Returned by Bulk Payout Status. |
| BLK25 | page must be a whole number from 1. | Returned by Bulk Payout Status. |
| BLK30 | Outcome 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. |
| BLK31 | Batches found. | Returned by Bulk Payout, List Bulk Payouts. |
| BLK32 | Paid. | Returned by Bulk Payout. |
| BLK33 | Batch row | Bulk Payout Status item detail. |
| BLK34 | accountnumber is required. | Returned by List Bulk Payouts. |
| BLK35 | status filter must be queued, processing or completed. | Returned by List Bulk Payouts. |
| BLK37 | page must be a whole number from 1. | Returned by List Bulk Payouts. |
| BLK40 | Bulk payout completed | Webhook bulk_payout.completed: every payout of a batch is final. |
| BLK50 | An unknown error occured, Please refresh and try again. | Returned by Bulk Payout, List Bulk Payouts, Bulk Payout Status. |
| BLKR01 | externalref is required. | Returned by Bulk Payout. |
| BLKR02 | externalref must be at most 128 printable characters. | Returned by Bulk Payout. |
| BLKR03 | Duplicate externalref in this batch (first used at index | Returned by Bulk Payout. |
| BLKR04 | externalref has already been used on this wallet. | Returned by Bulk Payout. |
| BLKR05 | receiver is required. | Returned by Bulk Payout. |
| BLKR06 | channel must be one of MTN, TELECEL, AT, BANK, GHQR. | Returned by Bulk Payout. |
| BLKR07 | amount must have at most 2 decimal places. Send it as a string. | Returned by Bulk Payout. |
| BLKR08 | The most you can pay out in one transaction is GHS | Returned by Bulk Payout. |
| BLKR09 | sublistid is required for the BANK channel. | Returned by Bulk Payout. |
| BLKR10 | sendername must be 1-40 characters: letters, digits, space . ' - | Returned by Bulk Payout. |
| BLKR11 | reference must be at most 64 printable characters. | Returned by Bulk Payout. |
| BLKR12 | Each item must be an object. | Returned by Bulk Payout. |
| BLKR13 | Only the BANK channel is available for NGN. | Returned by Bulk Payout. |
| INV00 | Authentication Error, authentication information is required | Returned by Cancel Invoice, Create Invoice, List Invoices. |
| INV01 | Invoice created | Create Invoice succeeded. |
| INV02 | Invoice already exists | Create Invoice repeated with the same reference and the same content: the existing invoice is returned. |
| INV03 | invoiceid is required. | Returned by Invoices, Cancel Invoice, List Invoices. |
| INV04 | customer is required: {"name": "...", "phone": "...", "email": "..."}. | Returned by Invoices. |
| INV05 | Send either amount or items, not both and not neither. | Returned by Invoices. |
| INV06 | due_date is required (YYYY-MM-DD or YYYY-MM-DD HH:MM:SS, UTC). | Returned by Invoices. |
| INV07 | reference was already used on this wallet for a different invoice. | Returned by Invoices, Create Invoice. |
| INV08 | Invoices are available on GHS and NGN wallets. | Returned by Create Invoice. |
| INV09 | This wallet has no collection service to invoice from. Create one in the dashboard first. | Returned by Create Invoice. |
| INV10 | Account number not found. | Returned by Invoices. |
| INV11 | This wallet is inactive. | Returned by Invoices. |
| INV12 | Invoice not found. | Returned by Cancel Invoice, Invoice Status. |
| INV13 | This endpoint needs your private API key. | Returned by Cancel Invoice, Create Invoice. |
| INV14 | Invoices found. | Returned by List Invoices. |
| INV15 | Invoice found. | Returned by Invoice Status. |
| INV16 | starting_after is not a valid invoiceid. | Returned by List Invoices. |
| INV17 | Invoice cancelled. | Returned by Cancel Invoice. |
| INV18 | Invoice cannot be cancelled | Cancel Invoice when the invoice is already paid, expired or cancelled. |
| INV50 | An unknown error occured, Please refresh and try again. | Returned by Cancel Invoice, Create Invoice, List Invoices. |
| WHD01 | Webhook deliveries | Returned by Webhook Deliveries. |
| WHD02 | Webhook deliveries | Webhook Deliveries returned a page of delivery attempts. |
| WHD03 | An unknown error occured, Please refresh and try again. | Returned by Webhook Deliveries. |
| WHD05 | Authentication Error, a private API key is required. | Returned by Webhook Deliveries. |
| WHR01 | Webhook event queued for delivery. | Returned by Resend Webhook. |
| WHR02 | Webhook event not found. | Returned by Resend Webhook. |
| WHR03 | event_id is required (evt_ followed by 24 characters). | Returned by Resend Webhook. |
| WHR04 | An unknown error occured, Please refresh and try again. | Returned by Resend Webhook. |
| WHR05 | Authentication Error, a private API key is required. | Returned by Resend Webhook. |
| WHT00 | Webhook test | Returned by Send Test Webhook. |
| WHT01 | Test webhook sent | Send Test Webhook delivered the webhook.test event to the webhook_url or callback URL. |
| WHT02 | No webhook_url or callback URL is set on this wallet. | Returned by Send Test Webhook. |
| WHT03 | An unknown error occured, Please refresh and try again. | Returned by Send Test Webhook. |
| WHT04 | The callback URL (or webhook_url) on this wallet cannot be used: | Returned by Send Test Webhook. |
| WHT05 | Authentication Error, a private API key is required. | Returned by Send Test Webhook. |
| WHT06 | Test 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. |
| WHT07 | Too 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. |
| DA01 | sublistid for Ghana Bank Transfer | When retrieving banks. |
| DA02 | Unknown data request | Returned by Get Banks. |
| IDEM01 | Idempotency-Key reused with a different request | The 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. |
| IDEM02 | A 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. |
| IDEM03 | Idempotency-Key must be 1 to 128 printable characters. | The Idempotency-Key header is empty, too long or contains control characters. |
| OTP429 | Too 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. |
| ASB02 | Data bundles | Sales Bundles: a successful bundle catalogue response, grouped by network in the supplied example. |
| ASB00 | Authentication Error, authentication information is required | Returned by Bundles. |
| ASB01 | network must be MTN, TELECEL or AT. | Returned by Bundles. |
| ASB03 | An unknown error occured, Please refresh and try again. | Returned by Bundles. |
| ASL00 | Authentication Error, authentication information is required | Returned by Airtime and Data. |
| ASL01 | Amount is required and must be at least 1.00 | Returned by Airtime and Data. |
| ASL02 | Phone no. is required | Returned by Airtime and Data. |
| ASL03 | Request Parameters Incomplete, Please check and try again. | Returned by Airtime and Data. |
| ASL04 | This channel does not support airtime and data sales. | Returned by Airtime and Data. |
| ASL05 | Request type invalid. | Returned by Airtime and Data. |
| ASL06 | An 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. |
| ASL07 | Use open/sales/airtime or open/sales/data. | A sale was sent to the combined sale endpoint. Use the Airtime or Data endpoint. |
| ASL08 | extid/externalref is required and must be unique. | Returned by Airtime and Data. |
| ASL09 | Currency Invalid, airtime is sold in GHS only. | Returned by Airtime and Data. |
| ASL10 | This wallet is currency does not support this channel currency. | Returned by Airtime and Data. |
| ASL11 | See the endpoint page for the response message. | Returned by Airtime and Data. |
| ASL12 | This wallet is inactive. | Returned by Airtime and Data. |
| ASL13 | Account number not found or currency invalid. | Returned by Airtime and Data. |
| ASL14 | bundle is required for data. | Returned by Airtime and Data. |
| ASL15 | Invalid bundle for this network, see open/sales/bundles for the bundles on sale. | Returned by Airtime and Data. |
| ASS00 | Authentication Error, authentication information is required | Returned by Sales Status. |
| ASS01 | Sale Successful | Returned by Sales Status. |
| ASS02 | Sale Failed, the charge was refunded | Returned by Sales Status. |
| ASS03 | Sale Pending | Returned by Sales Status. |
| ASS04 | Sale not found | Returned by Sales Status. |
| ASS05 | idtype invalid, options are 1 (externalref), 2 (transactionid) or 3 (reference). | Returned by Sales Status. |
| ASS06 | Request Parameters Incomplete, accountnumber, idtype and id are required. | Returned by Sales Status. |
| ASS07 | Request type invalid. | Returned by Sales Status. |
| ASS08 | An 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.
- [Responses, request IDs and notices](https://docs.moolre.com/guides/responses)
## 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.
| Code | Meaning | What to do |
| --- | --- | --- |
| TP18 | Network 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. |
| PY02 | The payment service did not answer in time. | Check Transfer Status by externalref before any other action. |
| APY16, PY01 | The payout may have started. | Check Transfer Status by externalref. Never resubmit. |
| ASL06 | An airtime or data sale with an unknown result. | Check Sales Status with the original reference. |
| IS30 | An 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, SYS500 | A 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.
| Prefix | Area | Notes |
| --- | --- | --- |
| AIN, IN | Authentication codes | Returned 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, PG | Account, wallet and Payment ID codes | Create Account, Update Account, Account Status, List Transactions, Payment ID and Bank Collections. |
| APY, AVD, OBGH, OTGH, OBNG, TR, OM, GHQ, PY, SS | Transfer and payout codes | Validate 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, POS | Collection (payment) codes | Mobile 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, SMS | SMS codes | Send SMS, SMS Status, Sender IDs and SMS account status. |
| WAS | WhatsApp codes | Templates, Send Message and Message Status. |
| BLK, BLKR | Bulk payout codes | Create, status and list for bulk payout batches. BLKR codes describe why one item in a batch was rejected. |
| INV | Invoice codes | Create, status, list and cancel for invoices. |
| WHD, WHR, WHT | Webhook delivery codes | Webhook Deliveries, Resend Webhook and Send Test Webhook. |
| IDEM, OTP, DA, MSG | General codes | Idempotency, 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.
| Code | Meaning | Next step |
| --- | --- | --- |
| ASL11 | Sale in progress; no final reply yet. | Check the sale status before treating the top-up as complete or submitting again. |
| ASL00 | Authentication error. | Check the API user and private API key for the wallet. |
| ASL01 | Amount missing or below GHS 1.00. | Provide an amount of at least GHS 1.00. |
| ASL02 | Receiver missing. | Provide the recipient phone number. |
| ASL03 | Incomplete request. | Check all required request fields. |
| ASL04 | Channel not supported. | Use MTN, TELECEL, or AT, or the corresponding legacy value 1, 6, or 7. |
| ASL05 | Type invalid. | Send type 1. |
| ASL06 | Unknown 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. |
| ASL08 | External reference missing or already used. | Use a unique reference per wallet for a new sale. Check the original sale before attempting a duplicate. |
| ASL09 | Currency is not GHS. | Send currency GHS. |
| ASL10 | Wallet currency not supported. | Use a wallet with a supported currency for this GHS sale. |
| ASL12 | Wallet inactive. | Check the wallet activation state. |
| ASL13 | Account number not found. | Check the paying wallet account number. |
- [View the Airtime API](https://docs.moolre.com/api/sales/airtime)
## 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.
| Code | Meaning | Next step |
| --- | --- | --- |
| ASL14 | Bundle missing. | Provide a bundle ID returned by Bundles for the selected network. |
| ASL15 | Bundle not sold on this network. | Use a bundle ID that Bundles lists for the selected channel network. |
- [View the Data API](https://docs.moolre.com/api/sales/data)
## 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.
- [View the Bundles API](https://docs.moolre.com/api/sales/bundles)
## 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.
| Code | Meaning | Next step |
| --- | --- | --- |
| ASS01 | Sent. | The sale was sent; read data.txstatus and the recorded sale details. |
| ASS02 | Failed and refunded. | Read refundid for the refund transaction. |
| ASS03 | Pending. | Check the status again before treating the sale as complete or retrying a purchase. |
| ASS04 | Not found. | Check accountnumber, idtype, and id; only sales belonging to that wallet are searched. |
| ASS05 | Identifier type invalid. | Use idtype 1, 2, or 3 with the corresponding identifier. |
| ASS06 | Parameters incomplete. | Supply type, accountnumber, idtype, and id. |
| ASS07 | Type invalid. | Send type 1. |
| ASS08 | Unknown error. | The lookup did not establish a final outcome. Do not assume the purchase failed or automatically resubmit it. |
| ASS00 | Authentication error. | Check X-API-USER and X-API-KEY for the selected wallet and environment. |
- [View the Sales Status API](https://docs.moolre.com/api/sales/status)
## 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.
| Code | Meaning | Next step |
| --- | --- | --- |
| ASL00 | Authentication error. | Check X-API-USER and X-API-KEY. |
| ASL03 | Request incomplete. | Send type, accountnumber, externalref, premium and policy. |
| ASL05 | type invalid. | Send type 1 (new motor policy) or 2 (renewal). |
| ASL06 | Unknown error; the sale may still have been charged. | Check Sales Status with idtype 1 and the original externalref. Never resend with a new externalref. |
| ASL08 | externalref (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. |
| ASL09 | Currency invalid: insurance is sold in GHS only. | Send currency GHS or leave it out. |
| ASL10 | The wallet is not a GHS wallet. | Sell from your GHS insurance agent wallet. |
| ASL11 | Insurance 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. |
| ASL12 | The wallet is inactive. | Check the wallet with Moolre Support. |
| ASL13 | Account number not found or currency invalid. | Check accountnumber. |
| ASL16 | premium is required and must be an amount above 0.00. | Send the premium as a decimal amount in GHS with at most 2 decimals. |
| ASL17 | policy is required and must be an object. | Send policy as a JSON object with the fields for the type. |
| ASQ00 | Authentication error (Quote). | Check X-API-USER, X-API-KEY and accountnumber. |
| ASQ01 | start_date is missing or not a valid date. | Send start_date as YYYY-MM-DD. |
| ASQ02 | seats is missing or not a whole number from 1 to 100. | Send the number of seats. |
| ASQ03 | Reserved for engcc; not used by Quote. | No action. |
| ASQ04 | Request incomplete (Quote). | Send accountnumber, start_date and seats. |
| ASQ05 | No readable answer from the insurer. | Wait a moment and ask again. Nothing is charged by a quote. |
| ASQ06 | Unknown error (Quote). | Ask again. Nothing is charged by a quote. |
| ASV00 | Authentication error (Vehicles). | Check X-API-USER, X-API-KEY and accountnumber. |
| ASV01 | search_term is missing or not 2 to 60 characters. | Send the make and model of the vehicle, for example TOYOTA COROLLA. |
| ASV02 | seats is missing or not a whole number from 1 to 100. | Send the number of seats. |
| ASV03 | engcc is missing or not a whole number from 1 to 20000. | Send the engine capacity in cc. |
| ASV04 | Request incomplete (Vehicles). | Send accountnumber, search_term, seats and engcc. |
| ASV05 | No readable answer from the insurer. | Wait a moment and search again. |
| ASV06 | Unknown error (Vehicles). | Search again. |
| ASN00 | Authentication error (VIN). | Check X-API-USER, X-API-KEY and accountnumber. |
| ASN01 | vin 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. |
| ASN02 | seats, when sent, is not a whole number from 1 to 100. | Send a valid seats or leave it out. |
| ASN03 | Reserved for engcc; not used by VIN. | No action. |
| ASN04 | Request incomplete (VIN). | Send accountnumber and vin. |
| ASN05 | No readable answer for the VIN lookup. | Wait a moment and ask again, or search the vehicle with Insurance Vehicles. Nothing is charged. |
| ASN06 | Unknown error (VIN). | Ask again. Nothing is charged. |
| ASC00 | Authentication error (Covers). | Check X-API-USER, X-API-KEY and accountnumber. |
| ASC02 | Insurance covers and policy types. | The lists were returned in data. |
| ASC03 | Unknown error (Covers). | Ask again. |
| ASS09 | Policy 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. |
| IQ02 | Not authorised. | accountnumber must be your own insurance agent wallet and the request must use your API user and key. |
| IQ03 | type must be 1 (quote), 2 (vehicle search) or 3 (VIN lookup). | Use the Quote, Vehicles or VIN endpoint. |
| IQ04 | This wallet is not registered as an insurance sales agent. | Contact Moolre Support to register the wallet. |
| IQ05 | start_date is missing or not a valid date. | Send start_date as YYYY-MM-DD. |
| IQ06 | seats is missing or not a whole number from 1 to 100. | Send the number of seats. |
| IQ07 | search_term is missing or not 2 to 60 characters. | Send the make and model of the vehicle. |
| IQ08 | engcc is missing or not a whole number from 1 to 20000. | Send the engine capacity in cc. |
| IQ09 | The insurer (for a VIN lookup, or the VIN decoder) could not be reached, try again. | Ask again after a moment. |
| IQ10 | The insurer has no price for these details. | Check start_date and seats, or choose another cover. |
| IQ11 | vin is missing or not a valid 17-character VIN. | Send the VIN as printed on the registration or chassis plate. |
| IQ12 | The 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. |
| IQ13 | The 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. |
| IQ20 | Insurance quote. | Quote returned in data.covers. |
| IQ21 | Vehicles. | Matching vehicles returned in data.vehicles. |
| IQ22 | No vehicles found. | Try a shorter or different search_term, or another engcc. |
| IQ23 | Vehicle found for the VIN. | Read data.best_match, data.candidates, data.confident, data.warnings and, when confident is false, data.fallback. |
| IQ24 | The 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. |
| IQ30 | Unknown error (quote or vehicle search). | Ask again. Nothing is charged. |
| IS01 | Sales are temporarily unavailable, please try again in a few minutes. | Nothing was done or charged. Try again shortly with the same externalref. |
| IS02 | Not authorised. | accountnumber must be your own insurance agent wallet and the request must use your API user and key. |
| IS03 | Type must be 1 (new motor policy) or 2 (renewal). | Send type 1 or 2. |
| IS04 | extid is required (maximum 128 characters). | Send a unique externalref of at most 128 characters. |
| IS05 | A valid premium is required. | Send the premium as an amount above 0.00. |
| IS06 | Check the policy details. | data names the first field; errors lists every invalid field by its path, for example policy.customer.gender. Nothing is charged. |
| IS07 | This 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. |
| IS08 | There is an issue with your agent setup, please contact support. | Contact Moolre Support. Nothing is charged. |
| IS09 | No price could be got from the insurer for this cover. | Ask again later. Nothing is charged. |
| IS10 | The premium does not match the current price. | The message states the current price. Get a fresh Quote and send that premium. Nothing is charged. |
| IS11 | Insurance sales are not available right now, please try again later. | Nothing is charged. Try again later. |
| IS12 | Your wallet is completing a transaction now, please try again in a moment. | Nothing is charged. Try again with the same externalref. |
| IS13 | Insufficient balance. | Fund the wallet with at least the premium. Nothing is charged. |
| IS14 | The insurance wallet is busy, please try again in a moment. | Nothing is charged. Try again with the same externalref. |
| IS15 | This 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. |
| IS16 | The same request is being processed in parallel. | Do not send it again. Check Sales Status with the externalref. |
| IS17 | The purchase could not be started, nothing was charged. | Try again later. |
| IS18 | Policy 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. |
| IS20 | Policy issued (status 1, txstatus 1). | Read data.policy for the policy number and document links. |
| IS21 | Policy processing (status 1, txstatus 0). | Not issued yet. Check Sales Status with the original externalref. Do not resend. |
| IS22 | Policy 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). |
| IS23 | Policy 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. |
| IS30 | An 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. |
- [View the Sell Insurance API](https://docs.moolre.com/api/sales/insurance)
- [View the Quote API](https://docs.moolre.com/api/sales/insurance/quote)
## 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.
- [View the failed payment callback example](https://docs.moolre.com/api/payments/webhook#failed-callback)