---
title: "Refund a payment made"
method: POST
path: "/v1/transactions/{transaction_id}/void"
tags: ["Transactions"]
---

# Refund a payment made

`POST /v1/transactions/{transaction_id}/void`

Returns the paid amount of a completed payment

## Path parameters

- `transaction_id` string, required

## Request body

- TransactionVoidRequestDto
  - `payment_id` string, required — Payment id

## Response `201`

The object has been successfully created

- TransactionVoidResponse
  - `create_at` string, required — Date/time when the reversal was requested
  - `update_at` string — Date/time when the reversal was been updated
  - `transaction_id` string, required — Transaction id
  - `payment_id` string, required — Payment id
  - `amount` number, required — Gross amount to be paid. Ex: 2010 = 20.10
  - `status` string, required — Operation status

## Other responses

- `400` — Client specified an invalid argument, request body or query param
- `401` — The user is unauthorized
- `403` — Authenticated user is not allowed to access this resource
- `404` — The resource was not found
- `408` — Request timeout
- `422` — Error: Unprocessable Entity
- `429` — Too many requests
- `500` — Internal server error

---

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