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

# Verify Payment

> Verify a payment transaction



## OpenAPI

````yaml POST /transactions/payment/{paymentId}/verify
openapi: 3.0.3
info:
  title: OraFi Merchant API
  description: Seamless crypto payments API for merchants
  version: 1.0.0
  contact:
    name: OraFi Support
    email: support@orafi.app
servers:
  - url: https://api.orafi.app/v1
    description: Production server
  - url: http://localhost:3000/v1
    description: Local development server
security: []
tags:
  - name: Paylinks
    description: Paylink management endpoints
  - name: Payments
    description: Payment creation and verification endpoints
  - name: Customers
    description: Customer management endpoints
  - name: Transactions
    description: Transaction retrieval and payout endpoints
  - name: Refunds
    description: Refund management endpoints
  - name: Webhooks
    description: Webhook registration and management
  - name: Profile
    description: Business profile settings
  - name: Settlements
    description: Settlement account management
  - name: Fiat
    description: Fiat-related endpoints
  - name: Business
    description: Business mode and settings
  - name: Notifications
    description: Notification preferences
  - name: Subscriptions
    description: Subscription plans and customer subscriptions
paths:
  /transactions/payment/{paymentId}/verify:
    post:
      tags:
        - Payments
      summary: Verify payment
      description: Verify a payment transaction
      parameters:
        - name: paymentId
          in: path
          description: The payment ID to verify
          required: true
          schema:
            type: string
          example: payment_123
      responses:
        '200':
          description: Payment verified successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Payment verified successfully
                  data:
                    $ref: '#/components/schemas/Payment'
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  schemas:
    Payment:
      type: object
      properties:
        id:
          description: Payment unique identifier
          type: string
          example: payment_abc123
        amount:
          description: Payment amount
          type: number
          example: 100
        amountInUSDC:
          description: Amount converted to USDC
          type: number
          example: 100
        token:
          description: Token/currency used
          type: string
          example: USDC
        depositAddress:
          description: Wallet address for deposits
          type: string
          example: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb'
        txRef:
          description: Transaction reference
          type: string
          example: tx_ref_123
        status:
          description: Payment status
          type: string
          example: CONFIRMED
          enum:
            - INITIALIZED
            - CONFIRMED
            - FAILED
        paymentMethod:
          description: Payment method used
          type: string
          example: HOSTED_CHECKOUT
          enum:
            - PAYMENT_LINK
            - HOSTED_CHECKOUT
            - SUBSCRIPTION
        subscriptionId:
          description: Associated subscription ID if applicable
          type: string
        subscription:
          $ref: '#/components/schemas/Subscription'
        redirectUrl:
          description: URL to redirect after payment
          type: string
          example: https://example.com/success
        paylinkId:
          description: Associated paylink ID if applicable
          type: string
        customerId:
          description: Associated customer ID
          type: string
        transactionId:
          description: Associated transaction ID
          type: string
        createdAt:
          description: Creation timestamp
          type: string
          format: date-time
    Subscription:
      type: object
      properties:
        id:
          description: Subscription unique identifier
          type: string
          example: sub_abc123
        customerId:
          description: Customer associated with subscription
          type: string
        planId:
          description: Plan associated with subscription
          type: string
        network:
          description: Network used for subscription payments
          type: string
          enum:
            - SUI
        status:
          description: Current subscription status
          type: string
          enum:
            - PENDING
            - ABANDONED
            - ACTIVE
            - CANCELLED
            - PAST_DUE
        startsAt:
          description: When the subscription starts
          type: string
          format: date-time
        endsAt:
          description: When the subscription ends
          type: string
          format: date-time
        canceledAt:
          description: When the subscription was canceled
          type: string
          format: date-time
        createdAt:
          description: When the subscription was created
          type: string
          format: date-time
        updatedAt:
          description: When the subscription was last updated
          type: string
          format: date-time
  responses:
    BadRequest:
      description: Bad request - Invalid input or validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              message:
                type: string
                example: Validation error message

````