# Void a deal cost

Takes a cost out of the books without deleting it, so a net-basis participant's history stays explainable. Body: `reason`, required — voiding a cost changes what people are owed.

Access class: `workspace`.

## Endpoint

`POST /v1/accounting/deal-costs/{id}/void`

## Parameters

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

## Request body

Content type: `application/json`.

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

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "amountMinor": 1,
    "category": "string",
    "createdAt": "string",
    "currency": "string",
    "dealId": 1,
    "description": "string",
    "detail": {},
    "id": 1,
    "paidAt": "string",
    "status": "string",
    "updatedAt": "string",
    "vendor": "string",
    "voidReason": "string",
    "voidedAt": "string"
  }
}
```

### 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"
}
```
