# Send an approved payout to the bank

Credits the workspace's own bank account at Finix for one approved payout request. This is the verb that MOVES the money, where payouts/:id/paid only records that somebody else moved it. Reach for it once a payout has been approved; it refuses anything not in approved, and refuses a second attempt while one is still with the rail. The payout becomes paid when the rail reports the credit succeeded.

Access class: `workspace:admin`.

## Endpoint

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

## Parameters

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

## Request body

Content type: `application/json`.

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

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "amountMinor": 1,
    "appliedAt": "string",
    "createdAt": "string",
    "currency": "string",
    "dealId": 1,
    "direction": "string",
    "failureCode": "string",
    "failureMessage": "string",
    "id": 1,
    "idempotencyKey": "string",
    "paymentId": 1,
    "payoutId": 1,
    "resolvedAt": "string",
    "startedBy": 1,
    "state": "string",
    "traceNumber": "string",
    "transferId": "",
    "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"
}
```
