Data
Send a data bundle to a recipient on MTN, Telecel, or AT, paid from the wallet identified by accountnumber. Choose a bundle that Bundles lists for the selected network. Its price is the amount charged; do not send amount. Use a unique external reference per wallet for each new sale.
ASL11 means in progress, not delivered. Check Sales Status before retrying. Read the Sales guide for setup, pricing, and handling pending sales.
Request History
Your request history will appear here.
Headers
Your Moolre username.
Your Private API Key for the paying wallet.
Body Params
Data sale function. Must be 1.
Recipient network. Send the channel name (case-insensitive). The numeric ids still work but are deprecated and return a notice.
MTNMTN Mobile Money (deprecated id 1).TELECELTelecel Cash (deprecated id 6).ATAT Money (deprecated id 7).
Phone number receiving the data bundle.
Bundle ID returned by Bundles for the selected channel network. The bundle price determines the charge. Look up bundle IDs.
Sale currency. Must be GHS.
Moolre wallet account number that pays for the data bundle. Must be linked to your Sell on Our Platform Service.
Unique reference per wallet for this sale. The API also accepts extid as an alternative field name; send only one. Examples and this form use externalref.
Optional narration for the sale.
Responses
The sale is in progress. This example is not confirmation of data bundle delivery.
Data application codes
Application codes, not HTTP status codes. Do not assume delivery for any code not listed here.
| 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. | Data requests do not send amount. Check bundle selection and contact support if this shared Sales code persists. |
| 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. |
| 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 Errors and status codes for the shared response envelope.
