> ## 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 Driver's License

> Verify a driver's license and retrieve the identity details attached to the license number.



## OpenAPI

````yaml POST /api/v1/merchant/documents/drivers-license
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/drivers-license:
    post:
      tags:
        - Identity Verification
      summary: Verify Driver's License
      description: >-
        Verify a driver's license and retrieve the identity details attached to
        the license number.
      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/DriversLicenseVerificationRequest'
            examples:
              default:
                summary: Driver's license verification request
                value:
                  license_number: LAG-DL-4839201
      responses:
        '200':
          description: Driver's license verification response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DriversLicenseVerificationResponse'
              examples:
                successfulVerification:
                  summary: Successful driver's license verification
                  value:
                    success: true
                    message: Driver's license verification completed successfully
                    data:
                      first_name: John
                      middle_name: Adebayo
                      last_name: Doe
                      gender: MALE
                      birth_date: '1992-08-14'
                      photo: /9j/4AAQSkZJRgABAQAAAQABAAD...
                      license_number: LAG-DL-4839201
                      issue_date: '2021-06-01'
                      expiry_date: '2026-05-31'
                    charges:
                      charged: false
                      charged_amount: '0.00'
                documentNotFound:
                  summary: Driver's license not found
                  value:
                    success: false
                    message: Driver's license 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:
    DriversLicenseVerificationRequest:
      type: object
      required:
        - license_number
      properties:
        license_number:
          type: string
          description: Driver's license number
          example: LAG-DL-4839201
    DriversLicenseVerificationResponse:
      type: object
      required:
        - success
        - message
        - data
        - charges
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: Driver's license verification completed successfully
        data:
          oneOf:
            - $ref: '#/components/schemas/DriversLicenseVerificationData'
            - 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.
    DriversLicenseVerificationData:
      type: object
      required:
        - first_name
        - middle_name
        - last_name
        - gender
        - birth_date
        - photo
        - license_number
        - issue_date
        - expiry_date
      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...
        license_number:
          type: string
          example: LAG-DL-4839201
        issue_date:
          type: string
          example: '2021-06-01'
        expiry_date:
          type: string
          example: '2026-05-31'
    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'

````