# View Card Details

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/partner/enKashCard/viewCard:
    post:
      summary: View Card Details
      deprecated: false
      description: >

        :::highlight purple 📌

        This API retrieves detailed information about a specific card, including
        the cardholder’s name, card expiry and card number will be available to
        PCCI certified partner

        :::
      operationId: viewCard
      tags:
        - Prepaid Cards/APIs - Prepaid Card/Reloadable Prepaid Cards
      parameters:
        - name: authorization
          in: header
          description: >-
            Provide your bearer token in the Authorization header when making
            requests to protected resources.
          required: true
          example: Bearer 2f68dbbf-519d-4f01-9636-e2421b68f379
          schema:
            type: string
        - name: partnerId
          in: header
          description: PartnerID shared during sign-up
          required: true
          example: CRXXXXXXX
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              x-apidog-refs:
                01JJBTC7EXN7A7MJY67DPRWQS7:
                  $ref: '#/components/schemas/EnkashCardGetRequest'
                  x-apidog-overrides:
                    mfaCode: null
                    otpMedium: null
              properties:
                enKashCardId:
                  type: string
                  description: Unique identifier for the EnKash card.
                otpRequestId:
                  type: string
                  description: Unique identifier for the OTP request.
                cardAccountId:
                  type: string
                  description: Unique identifier for the account under company.
                otp:
                  type: string
                  description: One-Time Password for verification if otpMedium is MOBILE.
              x-apidog-orders:
                - 01JJBTC7EXN7A7MJY67DPRWQS7
              required:
                - enKashCardId
              x-apidog-ignore-properties:
                - enKashCardId
                - otpRequestId
                - cardAccountId
                - otp
            example:
              enKashCardId: EKC94AEX89
              cardAccountId: CAA8W45
              otpRequestId: EC123456
              otp: '123456'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  response_code:
                    type: integer
                  response_message:
                    type: string
                  payload:
                    type: object
                    properties:
                      cardNumber:
                        type: string
                        description: Card Number of Enkash Card
                      expiry:
                        type: string
                        description: Expiry date of card
                      cardHolderName:
                        type: string
                        description: Card Holder Name
                    required:
                      - cardNumber
                      - expiry
                      - cardHolderName
                    x-apidog-orders:
                      - cardNumber
                      - expiry
                      - cardHolderName
                    x-apidog-ignore-properties: []
                required:
                  - response_code
                  - response_message
                  - payload
                x-apidog-orders:
                  - response_code
                  - response_message
                  - payload
                x-apidog-ignore-properties: []
              example:
                response_code: 0
                response_message: Success
                payload:
                  cardNumber: '1154360149104155'
                  expiry: 04/2026
                  cardHolderName: anay test
          headers: {}
          x-apidog-name: OK
      security: []
      x-apidog-folder: Prepaid Cards/APIs - Prepaid Card/Reloadable Prepaid Cards
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-12877370-run
components:
  schemas:
    EnkashCardGetRequest:
      required:
        - enKashCardId
      type: object
      properties:
        enKashCardId:
          type: string
          description: Unique identifier for the EnKash card.
        otpRequestId:
          type: string
          description: Unique identifier for the OTP request.
        cardAccountId:
          type: string
          description: Unique identifier for the account under company.
        otp:
          type: string
          description: One-Time Password for verification if otpMedium is MOBILE.
      x-apidog-orders:
        - enKashCardId
        - otpRequestId
        - cardAccountId
        - otp
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
