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

# List a payment's refunds

> Lists a payment's refunds with `refundable` (what is left to refund).



## OpenAPI

````yaml /api-reference/openapi.yaml get /v1/payments/{reference}/refunds
openapi: 3.1.0
info:
  title: PrimePay API
  version: '1.0'
  description: >-
    Collect mobile money payments, send transfers and make payouts with the
    PrimePay API.
servers:
  - url: https://api.primepay.mw
    description: Live API (live keys, `sk_live_…`)
  - url: https://sandbox-api.primepay.mw
    description: Sandbox API (test keys, `sk_test_…`)
security:
  - bearerAuth: []
tags:
  - name: Operators
  - name: Payments
  - name: Refunds
  - name: Transfers
  - name: Payouts
  - name: Payment links
  - name: Checkout sessions
paths:
  /v1/payments/{reference}/refunds:
    get:
      tags:
        - Refunds
      summary: List a payment's refunds
      description: Lists a payment's refunds with `refundable` (what is left to refund).
      operationId: listRefunds
      parameters:
        - name: reference
          in: path
          required: true
          schema:
            type: string
          description: The payment's `reference`.
      responses:
        '200':
          description: The payment's refunds.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Refund'
                  refundable:
                    type: number
                    description: What is left to refund, in MWK.
        '404':
          $ref: '#/components/responses/Error'
components:
  schemas:
    Refund:
      type: object
      properties:
        reference:
          type: string
          example: RFD-6b1f3c0e9d2a4e7f8c5b1a2d3e4f6a7b
        payment:
          type: string
          description: The refunded payment.
        status:
          type: string
          enum:
            - processing
            - success
            - failed
        amount:
          type: number
          example: 5000
        currency:
          type: string
          example: MWK
        reason:
          type: string
          example: Order cancelled
        providerReference:
          type:
            - string
            - 'null'
        failureCode:
          type:
            - string
            - 'null'
        createdAt:
          type: string
          format: date-time
        completedAt:
          type:
            - string
            - 'null'
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: insufficient_funds
            message:
              type: string
              example: Not enough available balance for MWK 25,000.00.
            field:
              type: string
              description: >-
                Payment links only. The field that is missing or wrong, for
                example `items[1].unitAmount`.
  responses:
    Error:
      description: An error. Use `code` in your code; show `message` to people.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        Your API key: `sk_live_…` / `sk_test_…` (secret), `pk_live_…` /
        `pk_test_…` (publishable, read-only reference data) or `rk_live_…` /
        `rk_test_…` (payments only).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.