# Reverse a booked receipt

Undoes a receipt that was already booked — a bounced or clawed-back payment — and recomputes the schedule's totals so the money stops counting as collected. Body: an optional `reason` (or `notes`). Legal from completed or partial only. The amount stays on the row as the historical fact it is. A debit the rail refused in the first place is `post_payments_id_failed`, not this.

Access class: `workspace`.

## Endpoint

`POST /v1/payments/{id}/reverse`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "notes": "string",
    "reason": "string"
  },
  "params": {
    ":id": "string"
  },
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
