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

# eSIM Data Usage

> Live data usage for one of your eSIMs — how much of the bundle is used and how much remains. Returns 404 if the eSIM is not yours or not yet provisioned.



## OpenAPI

````yaml GET /api/esim/my/{id}/usage
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/my/{id}/usage:
    get:
      tags:
        - eSIM
      summary: eSIM Data Usage
      description: >-
        Live data usage for one of your eSIMs — how much of the bundle is used
        and how much remains. Returns 404 if the eSIM is not yours or not yet
        provisioned.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
          description: The eSIM `id`.
          example: 21
      responses:
        '200':
          description: Usage snapshot.
          content:
            application/json:
              example:
                status: success
                data:
                  initial_data_quantity: 1
                  initial_data_unit: GB
                  rem_data_quantity: 0.62
                  rem_data_unit: GB
                  used_bytes: 408021900
                  total_bytes: 1073741824
                  last_updated_at: '2026-06-25T18:40:00.000000Z'
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.

````