> ## Documentation Index
> Fetch the complete documentation index at: https://docs.payvessel.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify Voter's Card

> Verify a voter's card and retrieve the identity details attached to the voter ID.



## OpenAPI

````yaml POST /api/v1/merchant/documents/voters-card
openapi: 3.1.0
info:
  title: PayVessel API
  description: >-
    PayVessel API for accepting payments, sending money, verifying identities,
    and managing wallets
  version: 1.0.0
servers:
  - url: https://api.payvessel.com
  - url: https://sandbox.payvessel.com
security:
  - {}
paths:
  /api/v1/merchant/documents/voters-card:
    post:
      tags:
        - Identity Verification
      summary: Verify Voter's Card
      description: >-
        Verify a voter's card and retrieve the identity details attached to the
        voter ID.
      parameters:
        - name: api-key
          in: header
          description: Your Payvessel public API key
          required: true
          schema:
            type: string
        - name: api-secret
          in: header
          description: Your Payvessel secret
          required: true
          schema:
            type: string
        - name: Content-Type
          in: header
          description: Request content type
          required: true
          schema:
            type: string
            enum:
              - application/json
          example: application/json
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VotersCardVerificationRequest'
            examples:
              default:
                summary: Voter's card verification request
                value:
                  voters_id: AKD12345678901
      responses:
        '200':
          description: Voter's card verification response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VotersCardVerificationResponse'
              examples:
                successfulVerification:
                  summary: Successful voter's card verification
                  value:
                    success: true
                    message: Voter's card verification completed successfully
                    data:
                      first_name: John
                      middle_name: Adebayo
                      last_name: Doe
                      gender: MALE
                      birth_date: '1992-08-14'
                      photo: /9j/4AAQSkZJRgABAQAAAQABAAD...
                      voters_id: AKD12345678901
                      polling_unit: Ward 4 Unit 12
                      state: Lagos
                      lga: Ikeja
                    charges:
                      charged: false
                      charged_amount: '0.00'
                documentNotFound:
                  summary: Voter's card not found
                  value:
                    success: false
                    message: Voter's card not found
                    data: null
                    charges:
                      charged: true
                      charged_amount: '25.00'
        '402':
          description: >-
            Verification could not be processed because the wallet balance is
            insufficient
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerificationPaymentErrorResponse'
              examples:
                insufficientBalance:
                  summary: Insufficient wallet balance
                  value:
                    success: false
                    message: >-
                      Your wallet balance is insufficient for this request.
                      Required 25.00, available 0. Please fund your wallet and
                      try again.
                    details:
                      - >-
                        Your wallet balance is insufficient for this request.
                        Required 25.00, available 0. Please fund your wallet and
                        try again.
      servers:
        - url: https://api.payvessel.com/kyc
        - url: https://sandbox.payvessel.com/kyc
components:
  schemas:
    VotersCardVerificationRequest:
      type: object
      required:
        - voters_id
      properties:
        voters_id:
          type: string
          description: Voter's identification number
          example: AKD12345678901
    VotersCardVerificationResponse:
      type: object
      required:
        - success
        - message
        - data
        - charges
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: Voter's card verification completed successfully
        data:
          oneOf:
            - $ref: '#/components/schemas/VotersCardVerificationData'
            - type: 'null'
        charges:
          $ref: '#/components/schemas/VerificationCharges'
    VerificationPaymentErrorResponse:
      type: object
      required:
        - success
        - message
        - details
      properties:
        success:
          type: boolean
          description: Whether the request completed successfully
          example: false
        message:
          type: string
          description: Reason the request could not be processed
          example: >-
            Your wallet balance is insufficient for this request. Required
            25.00, available 0. Please fund your wallet and try again.
        details:
          type: array
          description: Detailed error messages returned by the API
          items:
            type: string
          example:
            - >-
              Your wallet balance is insufficient for this request. Required
              25.00, available 0. Please fund your wallet and try again.
    VotersCardVerificationData:
      type: object
      required:
        - first_name
        - middle_name
        - last_name
        - gender
        - birth_date
        - photo
        - voters_id
        - polling_unit
        - state
        - lga
      properties:
        first_name:
          type: string
          example: John
        middle_name:
          type: string
          example: Adebayo
        last_name:
          type: string
          example: Doe
        gender:
          type: string
          example: MALE
        birth_date:
          type: string
          example: '1992-08-14'
        photo:
          type: string
          example: /9j/4AAQSkZJRgABAQAAAQABAAD...
        voters_id:
          type: string
          example: AKD12345678901
        polling_unit:
          type: string
          example: Ward 4 Unit 12
        state:
          type: string
          example: Lagos
        lga:
          type: string
          example: Ikeja
    VerificationCharges:
      type: object
      required:
        - charged
        - charged_amount
      properties:
        charged:
          type: boolean
          description: Whether the verification request was billed
        charged_amount:
          type: string
          description: Amount charged for the verification request
          example: '0.00'

````