# Accept a bank line as the payment of an invoice or bill

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

Accept a bank line as the payment of an invoice or bill.

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

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "invoice",
        "bill"
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "kind",
    "id"
  ],
  "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}/match' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "kind": "invoice",
  "id": "string"
}'
```
