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

# Fetch eSIMs

> List active eSIMs purchased on the merchant account (paginated)



## OpenAPI

````yaml GET /api/v1/esim/my-esims
openapi: 3.1.0
info:
  title: Dancity API
  description: >-
    Paths below match the server base URL + global prefix `api`. Merchant:
    `Authorization: Bearer dcy_live_...` and `channel: API`. App: JWT. See
    Guides for flows.
  version: 1.0.0
servers:
  - url: https://api.dancity.app
    description: Production
  - url: http://localhost:6565
    description: Local development
security: []
tags:
  - name: VAS
    description: >-
      Merchant API (`/api/v1`): catalog GETs (wallet, services, products, plans)
      and purchase routes; `channel: API` on POST buys; app education & betting
      where listed
  - name: Products & services
    description: 'Catalog GETs: all services; products and plans with optional query filters'
  - name: Wallet
    description: Get wallet by id (JWT)
  - name: Transactions
    description: Fetch your transactions and requery one by id for current status
  - name: Betting
    description: Betting funding
  - name: Education
    description: Education pins
  - name: eSIM
    description: eSIM catalog and purchase
  - name: Webhook
    description: Outbound events Dancity POSTs to your configured HTTPS URL
paths:
  /api/v1/esim/my-esims:
    get:
      tags:
        - eSIM
      summary: Fetch eSIMs
      description: >-
        Returns active eSIMs purchased on the merchant account. Each item
        includes ICCID, package info, status, and activation details. Use
        `iccid` for top-ups via GET /api/v1/esim/topup-packages.
      parameters:
        - name: page
          in: query
          description: Page number (starts at 1).
          schema:
            type: integer
            default: 1
            example: 1
        - name: limit
          in: query
          description: Number of eSIMs per page.
          schema:
            type: integer
            default: 20
            example: 20
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                success: true
                message: User eSIMs fetched successfully
                data:
                  esims:
                    - transactionId: 6a1c50347d0125d168aa32da
                      tranxId: DNTY4364368AOMYD
                      packageCode: CKH513
                      packageName: Qatar 1GB 7Days
                      packageVolume: 1073741824
                      packageDuration: 7
                      regionCode: QA
                      amount: 2835
                      currency: NGN
                      iccid: '8948010010013845234'
                      qrCodeUrl: https://p.qrsim.net/4a8cf5af5f1c48e0b44f8eaf3af20220.png
                      activationCode: >-
                        LPA:1$rsp-eu.simlessly.com$72056D3B588B49B4903120FC95BB96A4
                      imsi: '260010183468325'
                      smdpAddress: null
                      status: GOT_RESOURCE
                      dataUsageRemaining: 1073741824
                      purchasedAt: '2026-05-31T15:13:56.436Z'
                    - transactionId: 6a12d0d366a638d7d9e402a9
                      tranxId: DNTY003519MQ5RPN
                      packageCode: P0Q24KI1C
                      packageName: Nigeria 100MB 7Days
                      packageVolume: 104857600
                      packageDuration: 7
                      regionCode: NG
                      amount: 975
                      currency: NGN
                      iccid: '8948010010014447758'
                      qrCodeUrl: https://p.qrsim.net/6d17f9164c9c4ad3a97ec890eac4f01b.png
                      activationCode: >-
                        LPA:1$rsp-eu.simlessly.com$537A63701D1A4699ADB0A3206EE4CEA6
                      imsi: '260010183528577'
                      smdpAddress: null
                      status: GOT_RESOURCE
                      dataUsageRemaining: 104857600
                      purchasedAt: '2026-05-24T10:20:03.519Z'
                  pagination:
                    page: 1
                    limit: 20
                    total: 2
                    totalPages: 1
                    hasPrevious: false
                    hasNext: false
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                success: false
                message: Invalid API key or IP not allowlisted
                statusCode: 401
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                success: false
                message: Sorry, something went wrong. Please try again later
                statusCode: 500
      security:
        - DancityApiKey: []
components:
  securitySchemes:
    DancityApiKey:
      type: http
      scheme: bearer
      bearerFormat: dcy_live_...
      description: Merchant API key from the Dancity dashboard.

````

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