> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dojah.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Plans

> Fetch the list of available data bundles, each with its amount, description, and plan code to buy with.

<div className="dj-endpoint">
  <span className={`dj-method dj-method-get`}>GET</span>
  <code>/api/v1/purchase/data/plans</code>
</div>

List every data bundle you can buy — each with its amount, a human-readable description, and the plan code to pass to Buy Data.

## Headers

| Header          | Required | Description                                         |
| --------------- | -------- | --------------------------------------------------- |
| `Authorization` | Yes      | Your app's secret key, sent as-is — *not* `Bearer`. |
| `AppId`         | Yes      | The App ID from your dashboard.                     |

## Query parameters

None — this endpoint takes no query parameters. Authenticate with your `AppId` and secret key.

## Response

Returns an `entity` array. Each item is a bundle with its `amount` (in NGN), a `description`, and the `plan` code you pass to [Buy Data](/api-reference/airtime-data/buy-data).

## Errors

| Code  | Meaning                                                         |
| ----- | --------------------------------------------------------------- |
| `400` | Bad request — a required field is missing or malformed.         |
| `401` | Unauthorized — check your key and `AppId` (no `Bearer` prefix). |
| `429` | Too many requests — back off and retry.                         |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    "https://api.dojah.io/api/v1/purchase/data/plans" \
    -H "Authorization: {{secret_key}}" \
    -H "AppId: {{app_id}}"
  ```

  ```js Node.js theme={null}
  const res = await fetch("https://api.dojah.io/api/v1/purchase/data/plans", {
    headers: {
      Authorization: process.env.DOJAH_SECRET_KEY,
      AppId: process.env.DOJAH_APP_ID,
    },
  });
  const data = await res.json();
  ```

  ```python Python theme={null}
  import os, requests

  res = requests.get(
      "https://api.dojah.io/api/v1/purchase/data/plans",
      headers={
          "Authorization": os.environ["DOJAH_SECRET_KEY"],
          "AppId": os.environ["DOJAH_APP_ID"],
      },
  )
  data = res.json()
  ```
</RequestExample>

<ResponseExample>
  ```json GET /api/v1/purchase/data/plans theme={null}
  {
    "entity": [
      {
        "amount": 1000,
        "description": "9MOBILE 1.5GB data bundle",
        "plan": "9MOBILE_1.5GB"
      },
      {
        "amount": 2000,
        "description": "9MOBILE 4.5GB data bundle",
        "plan": "9MOBILE_4.5GB"
      }
    ]
  }
  ```
</ResponseExample>
