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

# Create refund

> Start a refund of a successful pay-in.



## OpenAPI

````yaml /openapi.json post /v1/refunds
openapi: 3.0.0
info:
  title: Payve API
  version: v1
  description: >-
    Send, collect and convert money across African corridors. Amounts are
    integers in minor units.
servers:
  - url: https://sandbox.api.payvehq.com
    description: Sandbox
  - url: https://api.payvehq.com
    description: Live
security:
  - api-key: []
tags:
  - name: quotes
    description: Lock an exchange rate and fee before you move money.
    x-group: Quotes
  - name: payouts
    description: Send money to bank accounts and mobile money wallets.
    x-group: Payouts
  - name: payins
    description: Collect money from a payer.
    x-group: Pay-ins
  - name: payment-links
    description: Hosted checkout pages you can share.
    x-group: Payment links
  - name: conversions
    description: Move a balance from one of your wallets to another currency.
    x-group: Conversions
  - name: wallets
    description: Balances and virtual accounts.
    x-group: Wallets
  - name: beneficiaries
    description: Saved payout recipients.
    x-group: Beneficiaries
  - name: refunds
    description: Return a pay-in to the payer.
    x-group: Refunds
  - name: statements
    description: Statement files for your wallets.
    x-group: Statements
  - name: webhooks
    description: Read your endpoints and delivery history.
    x-group: Webhooks
  - name: reference-data
    description: Currencies, indicative rates, banks and operators. No key needed.
    x-group: Reference data
paths:
  /v1/refunds:
    post:
      tags:
        - refunds
      summary: Create refund
      description: Start a refund of a successful pay-in.
      operationId: RefundsController_create
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - payinPublicId
              properties:
                payinPublicId:
                  type: string
                  example: pin_3f9a2c1d8e7b6a50
                  description: The `publicId` of the successful pay-in to refund.
      responses:
        '201':
          description: ''
      security:
        - api-key: []
components:
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: Your secret key. It starts with sk_test_ or sk_live_.

````