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

# Verify payment

> This endpoint verifies the status of a payment.



## OpenAPI

````yaml /archefusion-openapi.yaml post /v1/payments/{paymentId}/verify
openapi: 3.0.0
info:
  title: OpenAPI Spec
  version: 1.0.0
  description: ''
servers:
  - url: https://dev.api-gateway.archefusion.com
security: []
tags:
  - name: Payments
paths:
  /v1/payments/{paymentId}/verify:
    post:
      tags:
        - Payments
      summary: Verify payment
      description: This endpoint verifies the status of a payment.
      parameters:
        - name: paymentId
          in: path
          required: true
          description: >-
            This represents the payment ID. You can retrieve it from the
            paymentId field in the `initiate payment` response, or from the
            redirect URL after the customer completes payment.
          schema:
            type: string
          example: 0b6702ee-6f78-40a6-8216-54c347f0971b
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                transactionId:
                  type: string
                  description: >-
                    This represents the transaction ID. It is an optional field
                    and it is mainly used by gateways that return a provider
                    transaction ID.
                  example: 123456789
      responses:
        '200':
          description: Success
          headers:
            Access-Control-Allow-Origin:
              schema:
                type: string
              example: '*'
            Content-Length:
              schema:
                type: integer
              example: 367
            Date:
              schema:
                type: string
              example: Thu, 18 Jun 2026 10:42:30 GMT
            Etag:
              schema:
                type: string
              example: W/"16f-9vaB8gQpwFrYj1e8pMmX8LApfqQ"
            X-Archefusion-Service:
              schema:
                type: string
              example: api-gateway
            X-Powered-By:
              schema:
                type: string
              example: Express
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    example: true
                  statusCode:
                    type: integer
                    example: 200
                  message:
                    type: string
                    example: Payment already succeeded
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: >-
                          The unique ID of the webhook event generated by this
                          verification.
                        example: 9ead7f67-7392-454c-ba15-e112a318a96c
                      type:
                        type: string
                        description: >-
                          The event type. Returns payment.succeeded for a
                          successful payment.
                        example: payment.succeeded
                      createdAt:
                        type: string
                        format: date-time
                        example: '2026-06-25T09:07:29.318Z'
                      merchantNumber:
                        type: string
                        description: Your Archefusion merchant number.
                        example: ARC-2026-000006
                      data:
                        type: object
                        properties:
                          paymentId:
                            type: string
                            description: The payment ID for this transaction.
                            example: 14b9dfda-c366-4386-988e-8ce3719d27c9
                          merchantOrderId:
                            type: string
                            description: >-
                              The unique order ID you provided when initiating
                              the payment.
                            example: order-1782121386
                          status:
                            type: string
                            description: >-
                              The final payment status. Possible values:
                              SUCCESS, FAILED.
                            example: SUCCESS
                          executionStatus:
                            type: string
                            description: The internal processing status of the payment.
                            example: succeeded
                          currency:
                            type: string
                            example: NGN
                          amount:
                            type: integer
                            description: The payment amount in the main currency unit.
                            example: 1000
                          gatewayReference:
                            type: string
                            description: >-
                              The reference ID assigned to this transaction by
                              the payment gateway.
                            example: 14b9dfda-c366-4386-988e-8ce3719d27c9
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  statusCode:
                    type: integer
                    example: 401
                  message:
                    type: string
                    example: Invalid API key
                  data:
                    nullable: true
                    example: null
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  statusCode:
                    type: integer
                    example: 404
                  message:
                    type: string
                    example: Payment not found
                  data:
                    nullable: true
                    example: null
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````