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

# Validate Smartcard

> Validate a cable TV smartcard or IUC number.



## OpenAPI

````yaml POST /api/v1/cable/validate
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/cable/validate:
    post:
      tags:
        - VAS
      summary: Validate Smartcard
      description: >-
        Validate a cable TV smartcard or IUC number and return the account
        holder name.
      operationId: validateCableSmartcard
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - smartcardNumber
                - cablename
              properties:
                smartcardNumber:
                  type: string
                  example: '1234567890'
                cablename:
                  type: string
                  description: >-
                    Provider from GET /api/v1/products (e.g. DSTV, GOTV).
                    Hyphens and underscores work as spaces.
                  example: DSTV
      responses:
        '200':
          description: Validation successful
          content:
            application/json:
              example:
                success: true
                message: Validation successful
                data:
                  status: success
                  customerName: John Doe
                  customerNumber: '1234567890'
                  smartcardNumber: '1234567890'
                  cablename: DSTV
                  message: Validation successful
        '400':
          description: Bad request
          content:
            application/json:
              example:
                success: false
                message: Smartcard number not found
                statusCode: 400
        '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.