# Mark a payout paid

Records that the money for an approved payout actually left, stamping the moment and, optionally, the bank line it went out on. The admin seat. Body: `bankTransactionId`, optional. This states a fact about money that has already moved — sending it is not this service's job, so there is no disbursement here. There is no failed state on a request either: a settlement that failed leaves the request owed, so cancel it or leave it in the queue.

Access class: `workspace:admin`.

## Endpoint

`POST /v1/accounting/payouts/{id}/paid`

## Parameters

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

## Request body

Content type: `application/json`.

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

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "availableAtRequestMinor": 1,
    "bankTransactionId": 1,
    "createdAt": "string",
    "currency": "string",
    "dealId": 1,
    "decidedAt": "string",
    "decidedBy": "string",
    "decisionReason": "string",
    "detail": {},
    "id": 1,
    "notes": "string",
    "paidAt": "string",
    "requestedAmountMinor": 1,
    "requestedAt": "string",
    "requestedBy": "string",
    "splitId": 1,
    "status": "string",
    "updatedAt": "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"
}
```
