> ## Documentation Index
> Fetch the complete documentation index at: https://docs.propaga.mx/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel a transaction

> How works the cancellation of a transaction with Propaga?

# Using Propaga API to cancel a transaction

If you want to cancel an order, you only need to call this endpoint

```jsx theme={null}
curl --request PUT \
  --url https://staging-api.propaga.io/v1/transaction/{transactionId} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "cancel"
}'
```

<Warning>
  To cancel a transaction, it must be in the `on-hold` status exclusively.
</Warning>
