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

# Get Refund

> Get Refund



## OpenAPI

````yaml openapi/v1-en.yaml GET /api/v1/trades/{trade_id}/refunds/{refund_id}
openapi: 3.0.3
info:
  title: Subotiz API
  description: Subotiz OpenAPI
  version: 1.0.0
servers:
  - url: https://{api}.subotiz.com
    variables:
      api:
        default: api
security:
  - sec0: []
tags:
  - name: Subscription
    description: Subscription
  - name: Price
    description: Price
  - name: Trade
    description: Trade
  - name: Payment
    description: Payment
  - name: Checkout Session
    description: Checkout Session
  - name: Customer
    description: Customer
  - name: Customer Portal
    description: Customer Portal
paths:
  /api/v1/trades/{trade_id}/refunds/{refund_id}:
    get:
      tags:
        - Refund
      summary: Get Refund
      description: Get Refund
      operationId: v1-refund-get-refund
      parameters:
        - name: trade_id
          in: path
          description: Trade ID
          required: true
          schema:
            type: string
        - name: refund_id
          in: path
          description: Refund ID
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/HeaderRequestID'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryRefundResponse'
components:
  parameters:
    HeaderRequestID:
      name: Request-Id
      in: header
      description: The unique identifier of the request
      required: true
      schema:
        type: string
        default: 008e3967-a1b5-48bb-be14-d5bff5092e61
  schemas:
    QueryRefundResponse:
      type: object
      properties:
        code:
          type: string
          description: error code
        message:
          type: string
          description: error message
        data:
          $ref: '#/components/schemas/QueryRefundResponse_Data'
    QueryRefundResponse_Data:
      type: object
      properties:
        refund_id:
          type: string
          description: Refund ID
        trade_id:
          type: string
          description: Trade ID
        currency:
          type: string
          description: >-
            Transaction currency corresponding to the amount, encoded according
            to ISO4217
        callback_url:
          type: string
          description: Webhook notification callback URL
        reason:
          type: string
          description: Refund reason
        refund_amount:
          type: string
          description: Refund amount
        refund_status:
          type: string
          description: |-
            Refund status
            - pending: Processing
            - failed: Refund failed
            - succeeded: Refund successful
        metadata:
          type: object
          additionalProperties:
            type: string
          description: >-
            A set of key-value pairs that can be attached to an object, allowing
            you to store additional information in a structured format.
        failure_reason:
          allOf:
            - $ref: '#/components/schemas/FailureReason'
          description: Refund failure reason
        ref_arn:
          type: string
          description: Refund credential returned by the issuing bank
        finished_at:
          type: string
          description: Refund completion time
        item_refund_amount:
          type: string
          description: Item-side refund amount (numeric string)
        tax_refund_amount:
          type: string
          description: >-
            Tax-side refund amount (numeric string); for non-taxable refunds use
            "0"
    FailureReason:
      type: object
      properties:
        code:
          type: string
          description: System returned transaction return code
        message:
          type: string
          description: System returned transaction return description
  securitySchemes:
    sec0:
      type: http
      description: >-
        Bearer API Key authentication. Format: Authorization: Bearer
        {your_api_key}
      scheme: bearer

````