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

# Trigger Invoice Refund

> Initiates a partial or full refund for a completed invoice.



## OpenAPI

````yaml /api-reference/openapi/api-store.json post /api/api-store/v1/refunds
openapi: 3.0.3
info:
  title: PapelShip API Gateway
  description: >-
    Official API reference for PapelShip API Store integrations, hosted payment
    links, direct crypto deposit invoices, real-time blockchain status checks,
    and HMAC webhooks.
  version: 1.0.0
  contact:
    name: PapelShip Support
    url: https://app.papelship.com
    email: support@papelship.com
servers:
  - url: https://app.papelship.com
    description: Production API Server
security:
  - BearerAuth: []
  - ApiKeyAuth: []
tags:
  - name: Payment Links
    description: Hosted payment link generation supporting Credit Card, Papara, and Crypto
  - name: Crypto Invoice
    description: Direct cryptocurrency deposit invoice generation with HD wallet derivation
  - name: Payment Status
    description: Real-time payment status and blockchain confirmation check API
  - name: Orders
    description: V1 store order creation API
  - name: Refunds
    description: Invoice refund processing API
paths:
  /api/api-store/v1/refunds:
    post:
      tags:
        - Refunds
      summary: Trigger Invoice Refund
      description: Initiates a partial or full refund for a completed invoice.
      operationId: createRefund
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - invoice_id
              properties:
                invoice_id:
                  type: string
                  example: aB9xK12Lp9012345678901234
                amount_cents:
                  type: integer
                  description: Optional partial refund amount in cents
                  example: 1000
                reason:
                  type: string
                  example: Customer requested cancellation
      responses:
        '200':
          description: Refund processed successfully
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API-Key
      description: 'Pass your secret API key formatted as: `Authorization: Bearer psa_...`'
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Alternative header format: `X-API-Key: psa_...`'

````