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

# Price a refund before confirming it

> Shows how many coins will be sent and why. Valid for 5 minutes. Needs a signed-in dashboard session.



## OpenAPI

````yaml /openapi.json get /charges/{chargeId}/refunds/quote
openapi: 3.0.3
info:
  title: LuminPay API
  version: 1.0.0
  description: >-
    Accept stablecoin and Bitcoin payments and settle in naira. Use a lmp_test_
    key with the Sandbox server and a lmp_live_ key with the Live server.
servers:
  - url: https://sandbox-api.luminpay.co
    description: Sandbox (testnet)
  - url: https://api.luminpay.co
    description: Live
security:
  - apiKey: []
tags:
  - name: Charges
  - name: Webhooks
  - name: Payment links
  - name: Invoices
  - name: Payouts
  - name: Refunds
paths:
  /charges/{chargeId}/refunds/quote:
    parameters:
      - name: chargeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
    get:
      tags:
        - Refunds
      summary: Price a refund before confirming it
      description: >-
        Shows how many coins will be sent and why. Valid for 5 minutes. Needs a
        signed-in dashboard session.
      parameters:
        - name: amount
          in: query
          required: true
          schema:
            type: string
          description: Coins, in the coin's smallest unit.
      responses:
        '200':
          description: The quote.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RefundQuote'
        '400':
          description: Invalid request.
        '401':
          description: Missing, invalid, expired or restricted API key or session.
components:
  schemas:
    RefundQuote:
      type: object
      properties:
        ruleApplied:
          type: boolean
        amount:
          type: string
        sendAmount:
          type: string
        coinsWithheld:
          type: string
        basis:
          type: string
          enum:
            - original
            - current
            - capped
        moveBps:
          type: integer
        rateSale:
          type: number
        rateNow:
          type: number
        rateEstimated:
          type: boolean
        merchantDebitKobo:
          type: string
        expiresAt:
          type: string
          format: date-time
          description: The quote is valid for 5 minutes.
        asset:
          type: string
        scale:
          type: integer
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: lmp_test_... or lmp_live_...
      description: >-
        Your secret API key from Developers → API keys. A key can be limited in
        the dashboard: read only (GET requests only), allowed IP addresses, and
        an expiry date. A request outside a limit is refused with 401 or 403 and
        a message saying which limit.

````

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