# Settle two bank lines as the two ends of one transfer

`POST /accounting/bank/lines/{id}/pair` · Rivier · accounting

Settle two bank lines as the two ends of one transfer.

- Scope: accounting:write
- Sdk: accounting.bank.pair
- Cli: accounting bank pair

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "otherLineId": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "otherLineId"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/accounting/bank/lines/{id}/pair' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "otherLineId": "string"
}'
```
