---
title: "Void Transaction"
method: POST
path: "/transactions/{transaction_id}/void"
tags: ["Transactions API"]
---

# Void Transaction

`POST /transactions/{transaction_id}/void`

Voids an entire transaction.

## Path parameters

- `transaction_id` string, required

## Headers

- `Idempotency-Key` string

## Request body

- VoidRequest
  - `reference_id` string — An optional, unique identifier that may be associated with each transaction event and reconciled with the system of record used by the merchant.
  - `amount` integer — The amount to void, used only for merchants that are enabled with split capture. The value is positive and is represented in the smallest currency unit, such as cents instead of dollars.

## Response `200`

HTTP 200 OK

## Other responses

- `400` — HTTP 400 Bad Request
- `401` — HTTP 401 Unauthorized
- `404` — HTTP 404 Not Found
- `409` — HTTP 409 Conflict

---

[API](https://skmtc.net/affirm/apis/merchant-transaction-api.md) · [All operations](https://skmtc.net/affirm/apis/merchant-transaction-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/affirm/merchant-transaction-api/versions/f2f4252c946f/schema)
