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

# List eSIM Plans

> Catalogue of travel eSIM data plans, grouped by location. Requires your API key. Each plan id is the plan_id for Buy eSIM; price_ngn is what your wallet is charged.

Returns the full travel-eSIM catalogue, **grouped by location**. Each group has a `location_code`, `location_name` and `location_logo`, and a `plans[]` array.

* Use a plan's **`id`** as the `plan_id` when calling [Buy eSIM](https://docs.bilalsadasub.com/reference/esim-buy.md).
* **`price_ngn`** is what your wallet is charged (`price_usd` is the raw provider price).
* **`topup_supported`** tells you whether the eSIM can later be extended with [Top up eSIM](https://docs.bilalsadasub.com/reference/esim-topup.md).
* Narrow results with `location` (e.g. `US`, `GB`) or a free-text `search`.

Requires your API key (`Authorization: Token …`).


## OpenAPI

````yaml GET /api/esim/plans
openapi: 3.1.0
info:
  title: Bilalsadasub API
  version: 1.0.0
  description: >-
    Bilalsadasub developer API — buy data, airtime, cable, electricity, bulk
    SMS, exam pins, airtime-to-cash and flights, funded from your wallet.
servers:
  - url: https://bilalsadasub.com
    description: Production (live — charges your wallet)
security:
  - TokenAuth: []
tags:
  - name: Purchases
  - name: Verification
  - name: Betting
  - name: eSIM
  - name: Flights
  - name: Wallet
  - name: Catalogs
  - name: Account
paths:
  /api/esim/plans:
    get:
      tags:
        - eSIM
      summary: List eSIM Plans
      description: >-
        Catalogue of travel eSIM data plans, grouped by location. Requires your
        API key. Each plan id is the plan_id for Buy eSIM; price_ngn is what
        your wallet is charged.
      parameters:
        - name: location
          in: query
          required: false
          description: Filter by location/country code, e.g. US, GB, or a region code
          schema:
            type: string
        - name: search
          in: query
          required: false
          description: Free-text search over plan name, location code and location name
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        location_code:
                          type: string
                          description: ISO location/country code (e.g. US, GB) or region
                        location_name:
                          type: string
                          description: Location display name
                        location_logo:
                          type: string
                          description: Flag/logo URL
                        plans:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                description: eSIM plan ID — pass as plan_id to Buy eSIM
                              package_code:
                                type: string
                                description: Provider package code
                              name:
                                type: string
                                description: Plan name
                              description:
                                type: string
                                description: Human-readable plan description
                              data_gb:
                                type: string
                                description: Data allowance in GB (display)
                              volume_bytes:
                                type: integer
                                description: Data allowance in bytes
                              duration:
                                type: integer
                                description: Validity length
                              duration_unit:
                                type: string
                                description: Unit of duration, e.g. DAY
                              speed:
                                type: string
                                description: Network speed, e.g. 4G/5G
                              price_usd:
                                type: number
                                description: Provider price in USD
                              price_ngn:
                                type: number
                                description: >-
                                  Your selling price in NGN (what the wallet is
                                  charged)
                              sms_supported:
                                type: boolean
                                description: Whether the plan supports SMS
                              topup_supported:
                                type: boolean
                                description: Whether this eSIM can be topped up later
                              unused_valid_days:
                                type: integer
                                description: Days the plan stays valid while unused
              example:
                status: success
                data:
                  - location_code: US
                    location_name: United States
                    location_logo: https://bilalsadasub.com/storage/esim/us.png
                    plans:
                      - id: 12
                        package_code: US_5GB_30D
                        name: USA 5GB / 30 Days
                        description: 5GB valid for 30 days in the United States
                        data_gb: '5'
                        volume_bytes: 5368709120
                        duration: 30
                        duration_unit: DAY
                        speed: 4G/5G
                        price_usd: 4.5
                        price_ngn: 7200
                        sms_supported: false
                        topup_supported: true
                        unused_valid_days: 180
components:
  securitySchemes:
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your API key as `Token <your_api_key>`.


        Use your **live key** for real transactions, or your **sandbox key**
        (`sk_test_…`) to test — sandbox calls return a realistic simulated
        result and never touch your wallet. Add `"sandbox_status": "fail"` to
        any sandbox request to simulate a failure.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.