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

# List eSIM Packages



## OpenAPI

````yaml GET /api/esim/catalog/by-country/{id}
openapi: 3.1.0
info:
  title: mySubwallet API
  version: 1.0.0
  description: >-
    Buy data, airtime, cable, electricity, exam pins, bulk SMS, betting, eSIM,
    flights, recharge/data cards and more, funded from your wallet. Test
    everything safely with your sandbox (sk_test_) key — no wallet charge.
servers:
  - url: https://api.mysubwallet.ng
    description: Production (live — charges your wallet)
  - url: https://sandbox.mysubwallet.ng
    description: Sandbox (test — simulated, no wallet charge)
security:
  - TokenAuth: []
tags:
  - name: Purchases
  - name: Verification
  - name: Betting
  - name: eSIM
  - name: Flights
  - name: Wallet
  - name: Catalogs
  - name: Account
paths:
  /api/esim/catalog/by-country/{id}:
    get:
      tags:
        - eSIM
      summary: List eSIM Packages
      description: >-
        Lists buyable eSIM packages for a country, priced in NGN (`price_ngn`).
        Paginated — pass `page` to fetch more. Use a package's `id` as
        `package_id` when calling Buy eSIM.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
          description: Country ID from List eSIM Countries.
          example: 724
        - name: package_type
          in: query
          required: false
          schema:
            type: string
            enum:
              - DATA-ONLY
              - DATA-VOICE-SMS
          description: Filter by package type.
          example: DATA-ONLY
        - name: page
          in: query
          required: false
          schema:
            type: integer
          description: Page number (default 1).
          example: 1
      responses:
        '200':
          description: Packages for the country.
          content:
            application/json:
              example:
                status: success
                meta:
                  total: 12
                  perPage: 12
                  currentPage: 1
                  lastPage: 2
                data:
                  - id: esim_abc
                    name: Spain 1GB - 7 Days
                    data_quantity: 1
                    data_unit: GB
                    package_validity: 7
                    package_validity_unit: Day
                    price_ngn: 2500
                    package_type: DATA-ONLY
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.

````