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

# Retrieve a refund

> Returns a refund owned by the authenticated organization.

<Info>Click the base URL in the API playground and select the **Sandbox** host for test data or the **Production** host for live data. Use credentials from the same environment.</Info>


## OpenAPI

````yaml /api-reference/openapi.json get /refunds/{refundId}/
openapi: 3.0.0
info:
  title: kelviq API
  version: 1.0.0
  description: >-
    API for interacting with kelviq services, derived from Python SDK
    documentation.
servers:
  - url: https://sandboxapi.kelviq.com/api/v1
    description: Sandbox — Test payments
  - url: https://api.kelviq.com/api/v1
    description: Production — Live payments
security:
  - bearerAuth: []
tags:
  - name: Products
    description: Catalog products.
  - name: Product Settings
    description: Per-product settings (currency, VPN/Tor/proxy, product URL).
  - name: Product Files
    description: Product images and downloadable assets.
  - name: Features
    description: Catalog features that can be granted as plan entitlements.
  - name: Plans
    description: Catalog plans (CRUD, publish, versions, prices).
  - name: Plan Entitlements
    description: Feature entitlements attached to a plan.
  - name: Plan Files
    description: Files attached to plans, and signed download links.
  - name: Media
    description: Generate presigned S3 upload URLs for product/plan images and files.
  - name: Partner
    description: Partner integration APIs (organization provisioning, lookup).
  - name: Charges
    description: >-
      One-time payments charged immediately against a customer's default payment
      method.
  - name: Refunds
    description: Full and partial refunds for paid orders.
paths:
  /refunds/{refundId}/:
    get:
      tags:
        - Refunds
      summary: Retrieve a refund
      description: Returns a refund owned by the authenticated organization.
      operationId: retrieveRefund
      parameters:
        - name: refundId
          in: path
          required: true
          description: The UUID of the refund.
          schema:
            type: string
            format: uuid
          example: 7c2f3a91-2d4e-4a8b-9b1c-6f0a2e5d9c11
      responses:
        '200':
          description: Refund details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RefundResponse'
        '401':
          description: Unauthorized — missing or invalid API key.
        '404':
          description: Refund not found for the authenticated organization.
components:
  schemas:
    RefundResponse:
      type: object
      description: A refund returned by list, create, and retrieve operations.
      properties:
        id:
          type: string
          format: uuid
          example: 7c2f3a91-2d4e-4a8b-9b1c-6f0a2e5d9c11
        reason:
          type: string
          nullable: true
          enum:
            - DUPLICATE
            - DASHBOARD_INITIATED
            - FRAUDULENT
            - REQUESTED_BY_CUSTOMER
            - OTHER
          example: REQUESTED_BY_CUSTOMER
        amountUnits:
          type: integer
          format: int64
          example: 2500
        amount:
          type: number
          format: decimal
          example: 25
        internalNote:
          type: string
          nullable: true
          example: Customer requested a partial refund.
        failureReason:
          type: string
          nullable: true
          example: null
        status:
          type: string
          enum:
            - PENDING
            - PROCESSING
            - SUCCEEDED
            - FAILED
            - CANCELED
          example: SUCCEEDED
        order:
          type: object
          description: The complete serialized order associated with the refund.
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        The Server API Key obtained from the kelviq application. Pass as a
        Bearer token in the Authorization header. Example: 'Authorization:
        Bearer __YOUR_API_KEY__'

````