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

# Get eSIM details

> Fetch QR code, ICCID, and activation status for an eSIM purchase



## OpenAPI

````yaml GET /api/v1/esim/details/{transactionId}
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/details/{transactionId}:
    get:
      tags:
        - eSIM
      summary: Get eSIM details
      description: >-
        Returns QR code, ICCID, activation code, and live status for one eSIM.
        Pass Mongo `_id`, `tranxId`, or `customerRef` from the purchase.
        Response `data` is the eSIM object only.
      parameters:
        - name: transactionId
          in: path
          required: true
          description: >-
            Mongo `_id`, `tranxId`, or `customerRef` from the eSIM purchase
            transaction.
          schema:
            type: string
            example: DNTY8374056F678V
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                success: true
                message: eSIM details fetched successfully
                data:
                  iccid: '8948010010013845234'
                  imsi: '260010183468325'
                  qrCodeUrl: https://p.qrsim.net/4a8cf5af5f1c48e0b44f8eaf3af20220.png
                  activationCode: LPA:1$rsp-eu.simlessly.com$72056D3B588B49B4903120FC95BB96A4
                  status: GOT_RESOURCE
                  totalVolume: 1073741824
                  totalDuration: 7
                  validityRemaining: 7
                  dataUsageRemaining: 1073741824
                  packageDetails:
                    name: Qatar 1GB 7Days
                    code: CKH513
                    volume: 1073741824
                    duration: 7
                    location: QA
                    price: 1.7115
                    currency: USD
                    locationLogo: https://flagcdn.com/w320/qa.png
                    description: Qatar 1GB 7Days
                    speed: 3G/4G/5G
                    coverage:
                      - locationName: Qatar
                        locationLogo: https://flagcdn.com/w320/qa.png
                        locationCode: QA
                        operatorList:
                          - operatorName: ooredoo
                            networkType: 5G
                  createdAt: '2026-05-31T15:13:57.571Z'
                  expiredAt: '2026-11-27T15:13:58.000Z'
        '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.