Bundles API

Environment: Live

List data bundles with an optional network filter, including bundle IDs, prices, quantities, validity, and categories. ASB02 example is a supplied multi-network catalogue, not live pricing.

# Bundles API

List data bundles on sale for a network, using your wallet accountnumber. Optionally filter by network: MTN, TELECEL, or AT. Omit the filter to request bundles without a network filter. Use a returned bundle ID for a Data sale on the matching network.

## Endpoint
- **Method**: POST
- **URL**: https://api.moolre.com/open/sales/bundles

## Headers
| Header | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| Content-Type | string | Yes | Send application/json. |
| X-API-USER | string | Yes | Your Moolre username. |
| X-API-KEY | string | Yes | Your Private API Key for the paying wallet. |

## Request Body
| Parameter | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| accountnumber | string | Yes | Your Moolre wallet account number. Must be linked to your Sell on Our Platform Service. |
| network | string or integer | No | Optional network filter. Leave it out to get the bundles of every network. Send the name (case-insensitive); the numeric ids still work in this same field. Values: `MTN` MTN Mobile Money (deprecated id 1); `TELECEL` Telecel Cash (deprecated id 6); `AT` AT Money (deprecated id 7). |

## Response (200 (Catalogue example) Data bundles (ASB02))
The supplied example shows a multi-network catalogue: MTN and Telecel bundles, with an empty AT list. It is not an MTN-only filtered response. Prices, quantities, validity, and availability are example values; read the current Bundles response before choosing a bundle.

```json
{
  "status": "1",
  "code": "ASB02",
  "message": "Data bundles",
  "data": {
    "mtn": [
      {
        "bundle": "RACT_Data_GHC_0.5_Others",
        "price": "0.50",
        "data": "20.73 MB",
        "data_mb": 20.73,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "RACT_Data_GHC_1_Others",
        "price": "1.00",
        "data": "41.46 MB",
        "data_mb": 41.46,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "RACT_Data_GHC_3_Others",
        "price": "3.00",
        "data": "406.89 MB",
        "data_mb": 406.89,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "RACT_Data_GHC_10_Others",
        "price": "10.00",
        "data": "837.55 MB",
        "data_mb": 837.55,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "RACT_Data_GHC_350_Others",
        "price": "350.00",
        "data": "108.21 GB",
        "data_mb": 110807.04,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "RACT_Data_GHC_399_Others",
        "price": "399.00",
        "data": "217.34 GB",
        "data_mb": 222556.16,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "NACT_Midnight_GHC3_Others",
        "price": "3.00",
        "data": "8.48 GB",
        "data_mb": 8683.52,
        "validity": "No Expiry",
        "category": "Midnight Bundles"
      },
      {
        "bundle": "RACT_Kokrokoo_GHC_1.22_Others",
        "price": "1.22",
        "data": "460.11 MB",
        "data_mb": 460.11,
        "validity": "No Expiry",
        "category": "Kokrokoo Bundles"
      },
      {
        "bundle": "RACT_Social_GHC_1_Others",
        "price": "1.00",
        "data": "82.57 MB",
        "data_mb": 82.57,
        "validity": "No Expiry",
        "category": "Social Media Bundles"
      },
      {
        "bundle": "RACT_Social_GHC_5_Others",
        "price": "5.00",
        "data": "412.85 MB",
        "data_mb": 412.85,
        "validity": "No Expiry",
        "category": "Social Media Bundles"
      },
      {
        "bundle": "RACT_Social_GHC_10_Others",
        "price": "10.00",
        "data": "825.70 MB",
        "data_mb": 825.7,
        "validity": "No Expiry",
        "category": "Social Media Bundles"
      },
      {
        "bundle": "RACT_Video_GHC_1_Others",
        "price": "1.00",
        "data": "158.05 MB",
        "data_mb": 158.05,
        "validity": "No Expiry",
        "category": "Video Bundles"
      },
      {
        "bundle": "RACT_Video_GHC_5_Others",
        "price": "5.00",
        "data": "790.25 MB",
        "data_mb": 790.25,
        "validity": "No Expiry",
        "category": "Video Bundles"
      },
      {
        "bundle": "RACT_Video_GHC_10_Others",
        "price": "10.00",
        "data": "1.54 GB",
        "data_mb": 1576.96,
        "validity": "No Expiry",
        "category": "Video Bundles"
      }
    ],
    "telecel": [
      {
        "bundle": "DATANVSTRDLY",
        "price": "0.50",
        "data": "22.29 MB",
        "data_mb": 22.29,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATANVDR1DLY",
        "price": "1.00",
        "data": "50.14 MB",
        "data_mb": 50.14,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATANVCHTDLY",
        "price": "2.00",
        "data": "111.43 MB",
        "data_mb": 111.43,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATANVDR5WLY",
        "price": "5.00",
        "data": "557.15 MB",
        "data_mb": 557.15,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATANVDBDL1",
        "price": "10.00",
        "data": "891.44 MB",
        "data_mb": 891.44,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATANVDBDL2",
        "price": "20.00",
        "data": "1.67 GB",
        "data_mb": 1711.56,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATANVDBDL3",
        "price": "50.00",
        "data": "4.46 GB",
        "data_mb": 4564.17,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATANVDBDL4",
        "price": "100.00",
        "data": "10.03 GB",
        "data_mb": 10269.39,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATANVDBDL5",
        "price": "200.00",
        "data": "33.43 GB",
        "data_mb": 34231.3,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATANVDBDL6",
        "price": "300.00",
        "data": "100.29 GB",
        "data_mb": 102693.89,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATANVDBDL7",
        "price": "400.00",
        "data": "253.25 GB",
        "data_mb": 259328,
        "validity": "No Expiry",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATABUNDBMXDLNR",
        "price": "3.00",
        "data": "445.72 MB",
        "data_mb": 445.72,
        "validity": "1 day",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATABUNDGAP1_NR",
        "price": "5.00",
        "data": "780.02 MB",
        "data_mb": 780.02,
        "validity": "3 days",
        "category": "Data Bundles"
      },
      {
        "bundle": "BDLBTBOSSUD1_NR",
        "price": "10.00",
        "data": "1.11 GB",
        "data_mb": 1141.04,
        "validity": "5 days",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATABUND2MO_NR1",
        "price": "10.00",
        "data": "1002.87 MB",
        "data_mb": 1002.87,
        "validity": "15 days",
        "category": "Data Bundles"
      },
      {
        "bundle": "BDLBTBOSSUWE_NR",
        "price": "15.00",
        "data": "2.01 GB",
        "data_mb": 2053.88,
        "validity": "5 days",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATABUNDGAP4_NR",
        "price": "20.00",
        "data": "2.56 GB",
        "data_mb": 2624.4,
        "validity": "5 days",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATABUND2MO_NR2",
        "price": "20.00",
        "data": "2.45 GB",
        "data_mb": 2510.3,
        "validity": "30 days",
        "category": "Data Bundles"
      },
      {
        "bundle": "BDLBTBOSSUD2_NR",
        "price": "43.50",
        "data": "5.01 GB",
        "data_mb": 5134.69,
        "validity": "15 days",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATABUND2MO_NR3",
        "price": "50.00",
        "data": "6.13 GB",
        "data_mb": 6275.74,
        "validity": "30 days",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATABUND100NR",
        "price": "100.00",
        "data": "12.81 GB",
        "data_mb": 13122,
        "validity": "30 days",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATABUNDJSTRENR",
        "price": "200.00",
        "data": "39.00 GB",
        "data_mb": 39936.5,
        "validity": "30 days",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATABUNDJMAX_NR",
        "price": "300.00",
        "data": "111.43 GB",
        "data_mb": 114104.3,
        "validity": "30 days",
        "category": "Data Bundles"
      },
      {
        "bundle": "DATABUNDJBOptNR",
        "price": "400.00",
        "data": "263.38 GB",
        "data_mb": 269701.1,
        "validity": "30 days",
        "category": "Data Bundles"
      }
    ],
    "at": []
  },
  "go": null,
  "meta": {
    "requestid": "req_c68f4c66115c26725c796242",
    "notices": []
  }
}
```

## 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).

## Choose a bundle

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.

Response keys map to named sale channels: mtn → MTN, telecel → TELECEL, at → AT.

[Open the Data API](https://docs.moolre.com/api/sales/data).

## Request examples

Filter by named network:

```json
{ "accountnumber": "100000100002", "network": "MTN" }
```

Without a network filter (the multi-network example above illustrates this catalogue shape):

```json
{ "accountnumber": "100000100002" }
```

Legacy numeric values go in network itself: 1=MTN, 6=Telecel, 7=AT.

```json
{ "accountnumber": "100000100002", "network": 1 }
```

## Bundle item fields

| Field | Type | Meaning |
| --- | --- | --- |
| bundle | string | Bundle ID to pass unchanged to the Data sale endpoint for the same network. |
| price | string | Bundle price as a decimal string, in GHS for the Data sale. |
| data | string | Human-readable data quantity, including its unit, such as MB or GB. |
| data_mb | number | Numeric data quantity in MB. |
| validity | string | Validity text supplied for this bundle, for example No Expiry or 30 days. |
| category | string | Bundle category supplied by the catalogue. |

## Example scope

The supplied example shows a multi-network catalogue: MTN and Telecel bundles, with an empty AT list. It is not an MTN-only filtered response. Prices, quantities, validity, and availability are example values; read the current Bundles response before choosing a bundle.

## Fields every response can carry

These fields are additive: existing fields keep their names, order and types.

| Field | Meaning |
| :--- | :--- |
| meta | Always present, last in the object. meta.replayed is true only when the response is the stored answer to a repeated Idempotency-Key (absent otherwise). meta.requestid is the unique id of the request (also the X-Request-Id response header): quote it when you contact support. meta.notices is always an array, empty when there is nothing to report; each notice is { code, message, docs? }, for example that a deprecated way of sending credentials was used. See [Deprecations](https://docs.moolre.com/guides/deprecations). |

There is no outcome field. Decide the result from status, code and, on payment and transfer endpoints, data.txstatus (0 pending, 1 succeeded, 2 failed). These codes mean the result is unknown and may still succeed, so treat them as pending and check the status: PY01, PY02, TR01, TR02, TP11, TP18, APY10, APY16, ASL06, IS30, SYS500. Status 1 with TR08, OBGH01, OTGH01, OBNG01, GHQ03 or OM03 is final success; any other status 1 is an accepted, unfinished request.

Send X-Moolre-Http-Status: strict to receive real HTTP status codes (400, 401, 403, 404, 409, 422, 429, 5xx) instead of HTTP 200. See [Responses and request IDs](https://docs.moolre.com/guides/responses).

Back to the Moolre AI documentation index