# Mark a deal cost paid

Marks a cost paid and stamps the moment. No body. Every `net`-basis stake on that deal moves with it, because a cost reduces net revenue and the availability view reads costs live. To take a cost out of the books instead of settling it, `post_accounting_deal-costs_id_void`.

Access class: `workspace`.

## Endpoint

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

## Parameters

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

## Request body

Content type: `application/json`.

```json
{
  "body": {},
  "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"
}
```
