---
title: "Create a refund"
method: POST
path: "/api/payment/{paymentId}/refund"
tags: ["Payment"]
---

# Create a refund

`POST /api/payment/{paymentId}/refund`

Creates a new refund for a payment

## Path parameters

- `paymentId` string, required

## Request body

- RefundPaymentDto
  - `reason` string — The refund reason
  - `amountInCents` number — Amount to refund in cents (HT, tax-exclusive — same basis as payment.amount). The PSP is refunded the gross amount (HT + applicable tax). When omitted, refunds the full remaining refundable amount. Multiple partial refunds are supported as long as their sum does not exceed the original captured base amount.

## Response `201`

Create a refund successful

- object

## Other responses

- `400` — Invalid input data
- `401` — Unauthorized - Invalid API key

---

[API](https://skmtc.dev/inflowpay/apis/inflow-api.md) · [All operations](https://skmtc.dev/inflowpay/apis/inflow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/inflowpay/inflow-api/revisions/3012dd3dd14a/schema)
