Sales

Environment: Live

Set up your service for selling airtime and data through Moolre.

# Sales

Set up your service for selling airtime and data through Moolre.

The Sales endpoints let you sell airtime and mobile data bundles on MTN, Telecel, and AT, paid from your Moolre wallet. Add top-ups to your app, reseller platform, or customer service tools.

## Before you begin

Before using the Airtime or Data Sales APIs, you must create a Sell on Our Platform Service in the Moolre App.

**Use a linked wallet:** The accountnumber you send in every Sales request must be a Moolre wallet linked to your Sell on Our Platform Service. Requests using a wallet that is not linked to a sales service will not work.

[Open the Moolre App](https://app.moolre.com/).

## Special payment pricing

Special payment pricing is available for businesses that want to sell airtime and data. Contact Moolre Support to request this pricing.

[Contact Moolre Support](mailto:hello@moolre.com?subject=Airtime%20and%20Data%20Sales%20pricing).

## Sales workflow

1. Create a Sell on Our Platform Service in the Moolre App and link the wallet you will send as accountnumber.
2. For Data, look up a bundle ID and price with Bundles.
3. Sell airtime or the chosen data bundle from your wallet.
4. Confirm the final outcome with Sales Status.

## API reference

- [Airtime](https://docs.moolre.com/api/sales/airtime): Send airtime on MTN, Telecel, or AT, paid from a Moolre wallet. Minimum GHS 1.00.
- [Data](https://docs.moolre.com/api/sales/data): Send a network-specific data bundle, paid from a Moolre wallet. Its bundle price determines the charge; do not send amount.
- [Bundles](https://docs.moolre.com/api/sales/bundles): Look up bundle IDs, prices, quantities, validity, and categories, with an optional network filter. Choose a bundle from the matching network before making a Data sale.

- [Status](https://docs.moolre.com/api/sales/status): Check Airtime, Data and Insurance sales within the paying wallet by original external reference, transaction ID, or returned sale reference. Read pending, sent, failed/refunded, and not-found outcomes, and the policy details of an insurance sale.
- [Insurance covers](https://docs.moolre.com/api/sales/insurance/covers), [Insurance vehicles](https://docs.moolre.com/api/sales/insurance/vehicles), [Insurance VIN lookup](https://docs.moolre.com/api/sales/insurance/vin), [Insurance quote](https://docs.moolre.com/api/sales/insurance/quote) and [Sell insurance](https://docs.moolre.com/api/sales/insurance): sell new motor policies and renewals from an insurance agent wallet.

## Handle pending sales

ASL11 means a sale is in progress, not that the airtime or data has been delivered. ASL06 is an uncertain outcome: the sale may still have gone through. Treat both as unfinished until Sales Status returns a final result.

Check the sale with Sales Status before retrying. Look it up with idtype 1 and the original externalref (or extid), using the same paying wallet accountnumber. Never generate a new external reference to resubmit a pending or uncertain sale.

Try It requests in Live mode make a real purchase from the selected wallet. Other replies from the sales server are returned unchanged; do not assume delivery for any code not documented on the endpoint page.

## Sell motor insurance

Insurance agents can also sell motor insurance through the Sales APIs: new motor policies, paid from the agent wallet in GHS. Renewals are not available at the moment.

Insurance is sold from a wallet that Moolre has registered as an insurance sales agent. Register it in the Moolre App (create a Sell on Our Platform service, choose the Insurance product and link your GHS wallet) or contact Moolre Support; the accountnumber you send must be your own GHS wallet.

List the covers, find the vehicle (from its VIN, or by make and model), quote the cover for the start date and seats, then sell the policy with the quoted premium and a unique externalref. Confirm the result with Sales Status. The motor insurance guide walks through the whole flow with code.

The wallet is charged the full premium. If the premium is not the current price the sale is refused with IS10 and nothing is charged: quote again. Renewals (type 2) are not available at the moment: they are refused with IS18 and nothing is charged.

You earn a 10% commission on an issued policy. It is paid to the same wallet as a separate credit after the policy is issued; if it cannot be paid straight away it stays pending and is paid later.

A policy can take up to a minute to confirm. IS21 and ASL11 mean it is still being confirmed, not that it failed. After a timeout, ASL06 or IS30 the sale may still have gone through. Never resend with a new externalref: check Sales Status with idtype 1 and the original externalref. Only txstatus 2 means the policy was not issued and the charge was refunded, so a new purchase is safe.

## Choose a data bundle

Data sales need a bundle ID instead of an amount. Call Bundles for the recipient's network, then pass the returned bundle value unchanged to the Data API with the matching network as channel. The bundle price determines what the wallet is charged, so do not send amount.

Bundles response keys map to sale channels: mtn → MTN, telecel → TELECEL, at → AT. Legacy numeric values are also accepted (1 = MTN, 6 = Telecel, 7 = AT); send them in network for Bundles and in channel for sales. An empty network array means no bundles are currently listed for that network.

## Sale outcomes

Sales Status returns data.txstatus with one of these values:

| txstatus | Outcome | Meaning |
| --- | --- | --- |
| 0 | Pending | The sale is not yet final. Check its status again before deciding what to do next. |
| 1 | Sent | The airtime or data sale was sent. |
| 2 | Failed and refunded | refundid identifies the refund transaction. |
| 3 | Not found | No sale was found for this lookup in the selected wallet. Check the wallet, identifier type, and identifier. |

Back to the Moolre AI documentation index