---
title: "Cancel"
method: POST
path: "/v3/transactions/{traceId}/cancel"
tags: ["Cancel Transactions"]
---

# Cancel

`POST /v3/transactions/{traceId}/cancel`

This API endpoint allows you to cancel a pending transaction prior to the card being submitted for processing. Once the card has begun processing, the transaction can no longer be cancelled via this API.

## Path parameters

- `traceId` string, uuid, required

## Headers

- `Authorization` string, required
- `X-Idempotency-Key` string, uuid, required

## Request body

- CancelTransactionRequest
  - `tenantId` string, required — The last 12 digits of the merchant identifier (MID).
  - `terminalId` string, required — 10-digit terminal serial number.

## Response `200`

Transaction cancellation successful.

- SuccessResponse
  - `traceId` string, uuid — Correlation identifier matching the initial API response traceId
  - `response` object
    - `status` 'SUCCESS' — Whether the original request was successful.

## Other responses

- `400` — Invalid Request or Transaction cannot be cancelled.

---

[API](https://skmtc.net/payarc/apis/payarc-sandbox.md) · [All operations](https://skmtc.net/payarc/apis/payarc-sandbox/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/payarc/payarc-sandbox/versions/face82bdd778/schema)
