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

# Get Payment

> Use this API to retrieve detailed information about a specific payment transaction using its unique identifier. This API returns payment status, amounts, method details, and gateway information.




## OpenAPI

````yaml /openapi/payments/flowwise.yaml get /payments/{payment_id}
openapi: 3.0.3
info:
  title: Flowwise Native API
  version: 1.0.0
  description: >
    Manage orders, payments, refunds, and customers using the Flowwise Native
    API.

    [Source](https://cashfree.atlassian.net/wiki/spaces/ORC/pages/1084032020/API+Documentation)
servers:
  - url: https://sandbox.flowwise.com/router
    description: Sandbox
  - url: https://app.flowwise.com/router
    description: Production
security:
  - ApiKeyAuth: []
    ApiSecret: []
paths:
  /payments/{payment_id}:
    get:
      summary: Get Payment
      description: >
        Use this API to retrieve detailed information about a specific payment
        transaction using its unique identifier. This API returns payment
        status, amounts, method details, and gateway information.
      parameters:
        - $ref: '#/components/parameters/PaymentId'
      responses:
        '200':
          description: Success response for payment retrieval.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentDetails'
              example:
                status: SUCCESS
                order_id: order_summer_fashion_001
                payment_id: pay_summer_fashion_001_upi
                capture_status: SUCCESS
                capture_amount: 2299.5
                payment_amount: 2299.5
                payment_currency: INR
                payment_method: upi
                gateway_details:
                  auth_id: AUTH_4345123456789
                  processor_ref: UPI434512345678901234
                  utr: '434512345678'
        '400':
          description: Bad Request - Invalid payment ID format
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: Invalid payment ID format provided
                code: invalid_payment_id
                type: validation_error
        '401':
          description: Unauthorized - Invalid or missing authentication credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: Invalid API credentials provided
                code: unauthorized
                type: authentication_error
        '404':
          description: Not Found - Payment not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: Payment not found with the provided payment ID
                code: payment_not_found
                type: resource_error
        '500':
          description: Internal Server Error - Something went wrong on the server
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: Internal server error occurred while retrieving payment
                code: internal_error
                type: server_error
      security:
        - ApiKeyAuth: []
          ApiSecret: []
components:
  parameters:
    PaymentId:
      name: payment_id
      in: path
      required: true
      description: Unique identifier for the payment transaction.
      schema:
        type: string
        example: pay_summer_fashion_001_upi
  schemas:
    PaymentDetails:
      type: object
      properties:
        status:
          type: string
          description: Current status of the payment transaction.
          example: SUCCESS
        order_id:
          type: string
          description: Unique identifier for the associated order.
          example: order_summer_fashion_001
        payment_id:
          type: string
          description: Unique identifier for the payment transaction.
          example: pay_summer_fashion_001_upi
        capture_status:
          type: string
          description: Status of the payment capture process.
          example: SUCCESS
        capture_amount:
          type: number
          description: Amount that has been captured from the payment.
          example: 2299.5
        payment_amount:
          type: number
          description: Total amount of the payment transaction.
          example: 2299.5
        payment_currency:
          type: string
          description: Currency code for the payment amount.
          example: INR
        payment_method:
          type: string
          description: Payment method used for the transaction.
          example: upi
        gateway_details:
          type: object
          description: Details from the payment gateway.
          properties:
            auth_id:
              type: string
              nullable: true
              description: Authorisation identifier from the payment gateway.
              example: AUTH_4345123456789
            processor_ref:
              type: string
              description: Reference identifier from the payment processor.
              example: UPI434512345678901234
            utr:
              type: string
              description: Unique Transaction Reference number.
              example: '434512345678'
    ErrorResponse:
      type: object
      description: Error response structure returned when an API request fails.
      properties:
        message:
          type: string
          description: Human-readable error message describing what went wrong.
        code:
          type: string
          description: Machine-readable error code for programmatic handling.
        type:
          type: string
          description: Category or type of error that occurred.
      required:
        - message
        - code
        - type
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-client-id
      description: >-
        Client app ID. You can find your app ID in the [Merchant
        Dashboard](https://merchant.cashfree.com/auth/login/pg/developers/api-keys?env=prod).
    ApiSecret:
      type: apiKey
      in: header
      name: x-client-secret
      description: >-
        Client secret key. You can find your secret key in the [Merchant
        Dashboard](https://merchant.cashfree.com/auth/login/pg/developers/api-keys?env=prod).

````