---
title: "Cancel a Direct Debit"
method: POST
path: "/transactions/{transaction_id}/cancel"
tags: ["Direct Debit"]
---

# Cancel a Direct Debit

`POST /transactions/{transaction_id}/cancel`

Use this function to cancel a Direct Debit transaction if it hasn't been submitted to the banks. Any custom data supplied to this endpoint will be stored against the payment cancellation event. Please be aware that this process will fail if the transaction is not in pending status.

## Path parameters

- `transaction_id` string, uuid, required

## Headers

- `Company-Id` string, uuid
- `Mid` string, uuid

## Request body

- object
  - `custom_data` string — Enables the inclusion of extra information associated with the retry process for the collection.

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `409` — Conflict

---

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