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

# Confirm a verification with the code the customer received

> Returns VERIFIED with the verification timestamp, or FAILED with the confirm attempts remaining. Codes are single-use.



## OpenAPI

````yaml /openapi/customer-20260203.json post /accounts/customers/{customerId}/verifications/{verificationId}/confirm
openapi: 3.1.0
info:
  title: CUSTOMER
  termsOfService: urn:tos
  license:
    name: Apache 2.0
    url: https://springdoc.org
  version: '2026-02-03'
  description: ''
servers:
  - url: https://api-sb.meld.io
    description: Meld API sandbox
  - url: https://api.meld.io
    description: Meld API production
security: []
tags:
  - name: Virtual Account
    description: ''
  - name: Customers
paths:
  /accounts/customers/{customerId}/verifications/{verificationId}/confirm:
    post:
      tags:
        - Customers
      summary: Confirm a verification with the code the customer received
      description: >-
        Returns VERIFIED with the verification timestamp, or FAILED with the
        confirm attempts remaining. Codes are single-use.
      operationId: accounts-customers-verifications-confirm
      parameters:
        - name: Meld-Version
          in: header
          description: Dated API version to use for this request, e.g. `2026-02-03`.
          required: false
          schema:
            type: string
            example: '2026-02-03'
        - name: customerId
          in: path
          description: Customer id
          required: true
          schema:
            type: string
        - name: verificationId
          in: path
          description: Verification id
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfirmVerificationRequest'
            example:
              code: <string>
        required: true
      responses:
        '200':
          description: Confirm outcome is returned
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ConfirmVerificationResponse'
        '400':
          description: 'Bad Request : check request values and format'
        '401':
          description: Invalid credentials
        '403':
          description: Unauthenticated or authenticated with insufficient access
        '404':
          description: Verification cannot be found
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Too many confirm attempts for this contact
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: >-
            Server Error. This applies to all 5xx errors, including but not
            limited to 500, 501, 502, 503, and 504 errors. You should treat all
            of these errors the same.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ConfirmVerificationRequest:
      type: object
      description: Request to confirm a verification with the code the customer received
      properties:
        code:
          type: string
          description: The one-time code the customer received
          minLength: 1
      required:
        - code
    ConfirmVerificationResponse:
      type: object
      description: Outcome of a verification confirm attempt
      properties:
        attemptsRemaining:
          type: integer
          format: int32
          description: >-
            Confirm attempts remaining before the contact is locked out; only
            for FAILED
        lineType:
          type: string
          description: Phone line type when known (e.g. mobile); only for VERIFIED
        status:
          type: string
          description: Outcome status
          enum:
            - VERIFIED
            - FAILED
        verificationId:
          type: string
          description: Verification id
        verifiedAt:
          type: string
          description: When the contact was verified (ISO-8601); only for VERIFIED
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
          description: Stable identifier for the failure.
        errors:
          type: array
          items:
            type: string
          description: What was rejected, one entry per field or rule.
        message:
          type: string
          description: A description of what went wrong.
        requestId:
          type: string
          description: Quote this when asking Meld about a specific failure.
        serviceProviderDetails:
          type: object
          properties:
            code:
              type: string
              description: The provider's own error code, when it sent one.
            message:
              type: string
              description: The provider's own message.
          example:
            code: '5034'
            message: >-
              Digital currency and blockchain combination is restricted for
              customer's country
          description: >-
            The provider's own error detail, when the failure came from a
            service provider. Usually `code` and `message`; a few providers pass
            their own body through, so other keys can appear.
          additionalProperties: {}
        timestamp:
          type: string
          format: date-time
          description: >-
            When the failure occurred. ISO 8601, UTC
            (`YYYY-MM-DDThh:mm:ss.sss+00:00`).
          example: '2026-08-14T09:41:22.482+00:00'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      x-default: BASIC <Meld API Key>

````