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

> Fetch the authenticated user’s transactions. Use `page`, `limit`, date range, `status`, `service`, `tranxType`, and other query params to filter. For a single row and up-to-date status, use `GET /api/transactions/{transactionId}`.



## OpenAPI

````yaml GET /api/v1/transactions
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/transactions:
    get:
      tags:
        - Transactions
      summary: Get transactions
      description: >-
        Fetch the authenticated user’s transactions. Use `page`, `limit`, and
        date range to filter. For a single row and up-to-date status, use `GET
        /api/v1/transactions/{transactionId}`.
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            default: 1
        - name: limit
          in: query
          schema:
            type: integer
            default: 10
            maximum: 100
        - name: start_date
          in: query
          schema:
            type: string
            format: date-time
        - name: end_date
          in: query
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                success: true
                message: Transactions retrieved successfully
                data:
                  transactions:
                    - _id: 6a1c3e3de285680cc3b7d2ba
                      tranxId: DNTY8374056F678V
                      service: DATA
                      product: MTN GIFTING
                      tranxType: DEBIT
                      status: FAILED
                      currency: NGN
                      remarks: MTN GIFTING 40MB for 1 Day
                      amount: 50
                      fee: 0
                      amountPaid: 50
                      balanceBefore: 5276
                      balanceAfter: 5226
                      number: '09037346247'
                      customerRef: DATA-REF-001
                      channel: API
                      paymentMedium: MAIN WALLET
                      tranxDate: '2026-05-31T13:57:17.405Z'
                      apiResponse: >-
                        Sorry, you are not allowed to migrate to Betamix Bundle
                        Mini Plan. Thank you! — Oh dear! It seems xxxxxxxxxxx is
                        not eligible for this bundle. Please select a new bundle
                        and try again
                      isReversal: false
                      quantity: 0
                      createdAt: '2026-05-31T13:57:17.407Z'
                  pagination:
                    page: 1
                    limit: 10
                    total: 57
                    totalPages: 6
                    hasPrevious: false
                    hasNext: true
        '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.