# Confirm an instruction is in progress, then cancel it.

Confirm an instruction is in progress, then cancel it.

1. OPTIONAL — confirm the instruction is still `inProgress` before canceling, via GET /refund-instructions/{refundInstructionId}. Cancel is only allowed while the status is `inProgress`.
 [getRefundInstruction](/api/get-refund-instruction)
2. Cancel the refund instruction via DELETE /refund-instructions/{refundInstructionId}. Allowed only while the instruction's `status` is `inProgress`; returns HTTP 204.
 [deleteRefundInstruction](/api/delete-refund-instruction)

## Workflow diagram

```mermaid
flowchart TD
  step0["1. instruction status check · API"]
  step1["2. instruction cancellation · API"]
  step0 --> step1
```
