---
title: "Create payment refund"
method: POST
path: "/v3/payments/{id}/refunds"
tags: ["Payments"]
---

# Create payment refund

`POST /v3/payments/{id}/refunds`

## Request

- Base URL: `https://api.truelayer-sandbox.com`
- URL: `https://api.truelayer-sandbox.com/v3/payments/{id}/refunds`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://auth.truelayer.com/connect/token` scopes: `payments`
  - OAuth 2
    - Client credentials
    - Token URL: `https://auth.truelayer.com/connect/token` scopes: `payments:refund`

Refund a merchant account payment.

## Path parameters

- `id` string, required: Unique ID for the Payment

## Headers

- `Idempotency-Key` string, required
- `Tl-Signature` string, required

## Request body

- CreatePaymentRefund
  - `amount_in_minor` integer: A 'cent' value representing the amount, e.g. 100 == 1GBP.
  - `reference` string, required: A reference for the refund.
  - `metadata` Metadata: Optional field for adding custom key-value data to a resource. This object can contain a maximum of 10 key-value pairs, each with a key with a maximum length of 40 characters and a non-null value with a maximum length of 500 characters.

## Response `202`

Refund

- PaymentRefundCreated
  - `id` string, required: Unique ID for the refund

## Other responses

- `400`: Invalid Parameters
- `401`: Unauthenticated
- `403`: Forbidden
- `404`: Payment ID Not Found
- `409`: Idempotency-Key Concurrency Conflict
- `422`: Idempotency-Key Reuse

---

[API](https://skmtc.dev/truelayer/apis/payments-api-v3.md) - [All operations](https://skmtc.dev/truelayer/apis/payments-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/truelayer/apis/payments-api-v3/revisions/a7c585fc9b84?raw)
