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

# Get a refund



## OpenAPI

````yaml /openapi.json get /v1/refunds/{id}
openapi: 3.0.0
info:
  title: Spendin Merchant API
  description: Cross-border remittance and financial services API
  version: '1.0'
  contact: {}
servers:
  - url: https://api.spendin.app
    description: Production
security:
  - api-key: []
tags: []
paths:
  /v1/refunds/{id}:
    get:
      tags:
        - refunds
      summary: Get a refund
      operationId: RefundsController_getRefund
      parameters:
        - name: id
          required: true
          in: path
          schema:
            format: uuid
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RefundResponseDto'
        '404':
          description: Refund not found
      security:
        - api-key: []
components:
  schemas:
    RefundResponseDto:
      type: object
      properties:
        id:
          type: string
        payout_id:
          type: string
          description: The failed payout this refund returns
        inflow_id:
          type: object
          nullable: true
          description: The inflow whose money is being sent back
        status:
          type: string
          enum:
            - PENDING
            - PROCESSING
            - SUCCESSFUL
            - FAILED
        received_amount:
          type: number
          example: 42.32
          description: What the merchant originally sent us
        received_currency:
          type: string
          example: USDT
        network_fee_amount:
          type: number
          example: 1
          description: Cost of sending the refund back out
        network_fee_currency:
          type: string
          example: USDT
        refund_amount:
          type: number
          example: 41.32
          description: received_amount minus network_fee_amount
        refund_currency:
          type: string
          example: USDT
        destination_type:
          type: string
          enum:
            - BANK_ACCOUNT
            - CRYPTO_ADDRESS
        destination_provider_name:
          type: string
          example: USDT (TRC-20)
        destination_masked:
          type: string
          example: TXyz...abcd
          description: Masked account number or address
        destination_network:
          type: string
          enum:
            - TRON
            - BSC
          nullable: true
        processor_reference:
          type: object
          nullable: true
        failure_reason:
          type: object
          nullable: true
        attempt_number:
          type: number
          example: 1
        dispatched_at:
          type: object
          nullable: true
        settled_at:
          type: object
          nullable: true
        created_at:
          type: string
      required:
        - id
        - payout_id
        - inflow_id
        - status
        - received_amount
        - received_currency
        - network_fee_amount
        - network_fee_currency
        - refund_amount
        - refund_currency
        - destination_type
        - destination_provider_name
        - destination_masked
        - destination_network
        - processor_reference
        - failure_reason
        - attempt_number
        - dispatched_at
        - settled_at
        - created_at
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: X-API-Key

````