> ## 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 top-up packages for ICCID

> List add-on data packages for an existing eSIM using its ICCID



## OpenAPI

````yaml GET /api/v1/esim/topup-packages
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/topup-packages:
    get:
      tags:
        - eSIM
      summary: Get top-up packages for ICCID
      description: >-
        Returns add-on data packages compatible with an existing eSIM. Pass the
        eSIM's ICCID from a prior purchase, `GET /api/v1/esim/my-esims`, or `GET
        /api/v1/esim/details/{transactionId}`. Purchase a returned `packageCode`
        via `POST /api/v1/esim/purchase`.
      parameters:
        - name: iccid
          in: query
          required: true
          description: >-
            ICCID of the active eSIM (from purchase response, GET
            /api/v1/esim/my-esims, or GET /api/v1/esim/details/{transactionId}).
          schema:
            type: string
            example: '8960000000000000001'
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                success: true
                message: eSIM topup packages fetched successfully
                data:
                  packages:
                    - packageCode: NG-500MB-7D-TOP
                      name: Nigeria 500MB Top-Up
                      description: Add 500MB valid for 7 days
                      price: 0.62
                      currency: USD
                      volume: 524288000
                      duration: 7
                      type: TOPUP
                      regionCode: NG
                      priceInNaira: 1005
                  exchangeRate: 1620
        '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.