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

> Fetch products. Filter by `service` (service name) when needed.



## OpenAPI

````yaml api-reference/openapi.json GET /api/v1/products
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/products:
    get:
      tags:
        - Products & services
      summary: Get products
      description: Filter products by `service` (service name).
      parameters:
        - name: service
          in: query
          description: Service name from GET /api/v1/services (e.g. Airtime, Data).
          example: DATA
          schema:
            type: string
            example: DATA
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                statusCode: 200
                message: SUCCESS
                allProduct:
                  - _id: 69b674f4f2afe9e7484cb814
                    name: Airtel Airtime
                    service: AIRTIME
                    min: 50
                    max: 50000
                    discount: 2
                  - _id: 69b674daf2afe9e7484cb7d2
                    name: Glo Airtime
                    service: AIRTIME
                    min: 50
                    max: 50000
                    discount: 2
                  - _id: 69b674c0f2afe9e7484cb790
                    name: MTN Airtime
                    service: AIRTIME
                    min: 50
                    max: 50000
                    discount: 1.5
                  - _id: 69b67513f2afe9e7484cb858
                    name: T2 Mobile Airtime
                    service: AIRTIME
                    min: 50
                    max: 50000
                    discount: 2
        '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.