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

#  Transaaction Check 

> Directly check transaction status with getmipay using both order ID and payment reference



## OpenAPI

````yaml POST /payments/direct-status
openapi: 3.1.0
info:
  title: GetMiPay API
  description: >-
    GetMiPay - Your universal gateway to getmipay. API for processing payments,
    payouts, and virtual cards through GetMiPay gateway.
  contact:
    name: GetMiPay Support
    email: support@getmipay.com
  license:
    name: Proprietary
    url: https://getmipay.com/
  version: 1.1.0
servers:
  - url: https://sandbox.getmipay.com/api
    description: Sandbox server
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: API authentication and token management
  - name: Services
    description: Get available payment services
  - name: Currency
    description: API for converting amounts between different currencies.
  - name: Payments
    description: Collect payments from customers
  - name: Payouts
    description: Send money to customers
  - name: Transactions
    description: Check transaction status
  - name: Balance
    description: Account balance management
  - name: Virtual Cards
    description: Virtual card creation and management
  - name: Webhooks
    description: Webhook endpoints for payment notifications
paths:
  /payments/direct-status:
    post:
      tags:
        - Transactions
      summary: Direct Status Check
      description: >-
        Directly check transaction status with getmipay using both order ID and
        payment reference
      requestBody:
        description: Transaction identifiers for direct status check
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DirectStatusRequest'
        required: true
      responses:
        '200':
          description: Direct status check successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DirectStatusResponse'
        '400':
          description: Bad request - missing or invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized - Missing, invalid, or expired bearer token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    DirectStatusRequest:
      type: object
      required:
        - order_id
        - pay_id
      properties:
        order_id:
          type: string
          description: Your unique order ID
          example: MPAYIN_ABC123DEF456
        pay_id:
          type: string
          description: getmipay payment reference (received from Pay-In API)
          example: MLS690d472dd7ee7B
        operation:
          type: string
          description: Optional operation header
          example: '2'
        service:
          type: string
          description: Optional service header
          example: '1'
    DirectStatusResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          type: object
          properties:
            order_id:
              type: string
              example: MPAYIN_ABC123DEF456
            pay_id:
              type: string
              example: MLS690d472dd7ee7B
            status:
              type: string
              enum:
                - pending
                - success
                - failed
                - processing
              example: success
            amount:
              type: number
              example: 1000
            currency:
              type: string
              example: XAF
            created_at:
              type: string
              format: date-time
              example: '2024-12-16T10:05:01Z'
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
          example: Invalid KEY
        error_code:
          type: string
          example: INVALID_PUBLIC_KEY
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT bearer token returned by POST /action/auth. Send protected requests
        with: Authorization: Bearer <jwt>. Tokens expire after 24 hours.

````