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

# My eSIMs

> List the eSIMs on your account (latest 50) with activation details and data usage. Pass refresh=true to re-sync live status/usage from the provider (up to 10 active eSIMs per call).

Lists the eSIMs on your account (latest 50) with activation details and live data usage.

## Status fields

* **`status`** — `success`, `processing` or `failed`.
* **`esim_status`** — the provider lifecycle, e.g. `GOT_RESOURCE` (ready to install), `IN_USE`, `USED_UP`, `EXPIRED`.
* **`data_total_gb` / `data_used_gb` / `data_remaining_gb`** — usage in GB (may be `null` until the provider reports it).
* **`expired_at` / `purchased_at`** — ISO 8601 timestamps.

> [!TIP]
>
> Pass **`refresh=true`** to pull fresh status and usage from the provider for your active eSIMs (up to 10 per call). Without it, the stored values are returned instantly.


## OpenAPI

````yaml GET /api/esim/my-esims
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/my-esims:
    get:
      tags:
        - eSIM
      summary: My eSIMs
      description: >-
        List the eSIMs on your account (latest 50) with activation details and
        data usage. Pass refresh=true to re-sync live status/usage from the
        provider (up to 10 active eSIMs per call).
      parameters:
        - name: refresh
          in: query
          required: false
          description: Set true to re-sync live status/usage from the provider
          schema:
            type: boolean
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          description: Your eSIM ID (pass as esim_id to Top up eSIM)
                        package_name:
                          type: string
                          description: Plan name
                        iccid:
                          type: string
                          description: eSIM ICCID
                        ac:
                          type: string
                          description: Activation code / LPA string
                        qr_code:
                          type: string
                          description: QR code image URL
                        amount_paid:
                          type: number
                          description: Amount paid in NGN
                        status:
                          type: string
                          description: success | failed | processing
                        esim_status:
                          type: string
                          description: Provider lifecycle status, e.g. GOT_RESOURCE, IN_USE
                        data_total_gb:
                          type: number
                          description: Total data in GB (null until known)
                        data_used_gb:
                          type: number
                          description: Data used in GB
                        data_remaining_gb:
                          type: number
                          description: Data remaining in GB
                        expired_at:
                          type: string
                          description: Expiry timestamp (ISO 8601)
                        purchased_at:
                          type: string
                          description: Purchase timestamp (ISO 8601)
                        transid:
                          type: string
                          description: Transaction reference
              example:
                status: success
                data:
                  - id: 34
                    package_name: USA 5GB / 30 Days
                    iccid: '8910300000000123456'
                    ac: LPA:1$rsp.truphone.com$QR-G4-XXXX
                    qr_code: https://bilalsadasub.com/storage/esim/qr/ES_1a2b3c.png
                    amount_paid: 7200
                    status: success
                    esim_status: IN_USE
                    data_total_gb: 5
                    data_used_gb: 1.8
                    data_remaining_gb: 3.2
                    expired_at: '2026-11-21T10:00:00+00:00'
                    purchased_at: '2026-10-22T10:00:00+00:00'
                    transid: ES_1a2b3c
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.