> This page is optimized for agents. Use the linked Markdown pages and llms.txt indexes for related API content.

# Cancel Transaction entity.

- Product: Transactions
- Section: Transaction
- Snapshot: Current
- Method: `POST`
- Path: `/api/transactions/{id}/cancel`

## Path parameters

### `id`

Type: `string`  
Required: yes  

## Execute with TypeScript

Package: `@recranet/sdk`  

```ts
import { RecranetApiClient } from "@recranet/sdk";

const client = new RecranetApiClient({ apiKey: process.env.RECRANET_API_KEY! });

const result = await client.transactions.cancel({
  id: "<id>",
});
```

## Execute with curl

```bash
curl -X POST "https://app.recranet.com/api/transactions/$ID/cancel" \
    -H "X-Api-Key: $RECRANET_API_KEY"
```

## Responses

### Response `default`

Category: default  

## Related representations

- [Human documentation](/transactions/methods/cancel/)
- [TypeScript Markdown](/transactions/methods/cancel.md?lang=typescript)
- [curl Markdown](/transactions/methods/cancel.md?lang=curl)
- [site llms.txt](/llms.txt)
- [product llms.txt](/transactions/llms.txt)
- [snapshot llms.txt](/transactions/llms.txt)
