# Pull a deal's linked banks

Fetches new, changed and removed transactions for every bank linked to this deal and rewrites the monthly statement periods and positions computed from them. Idempotent - a second run over the same month recomputes the same figures. Answers how many lines arrived and how many months now stand; hasMore true means press it again.

Access class: `def:read`.

## Endpoint

`POST /v1/definitions/{key}/rows/{rowId}/plaid/sync`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |
| rowId | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {},
  "params": {
    ":key": "string",
    ":rowId": ""
  },
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "added": 1,
    "hasMore": true,
    "modified": 1,
    "months": 1,
    "removed": 1
  }
}
```

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