# Buy the bank login package

Opens a Stripe checkout page for the bank login package — the monthly subscription a workspace needs to link banks through Specter's Plaid once its free trial has ended — and answers its `checkoutUrl` for a person to open. The package includes a number of bank logins each period; each one beyond them is added to the next invoice. Refused when the workspace already holds it, and answers not-found on a deployment that sells none. What it costs and how much has been used are read from `GET /v1/integrations/plaid/readiness`. Needs the workspace's owner or admin seat.

Access class: `workspace:admin`.

## Endpoint

`POST /v1/billing/bank-logins/subscribe`

## Request body

Content type: `application/json`.

```json
{}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "checkoutUrl": "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"
}
```
