# reconciliation.close

Explicitly close an account period after its opening, movement and closing balances reconcile. Finance access required; reopening needs an administrator and the accounting:admin scope (reconciliation.reopen).

`POST /api/v1/accounting/reconciliation.close`

Permissions: `accounting:read`, `accounting:write` · Roles: admin, finance · Idempotency key required

Not available over MCP: Accountants' close periods grant isn't offered over MCP yet: phase 1 is read and comment only.

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `accountId` | string (ID) | Yes | The ID of a bank, card or payment account, from accounts.list. |
| `from` | string | Yes | The first date to include, as YYYY-MM-DD. |
| `to` | string | Yes | The last date to include, as YYYY-MM-DD. |
| `openingMinor` | string | Yes | An amount in cents (the currency's smallest unit), written as a whole-number string such as "1250" for $12.50. Whole number written as a string, may be negative. |
| `closingMinor` | string | Yes | An amount in cents (the currency's smallest unit), written as a whole-number string such as "1250" for $12.50. Whole number written as a string, may be negative. |
| `currency` | string | Yes | Three-letter currency code, such as CAD or USD. |
| `idempotencyKey` | string | Yes | Any unique text you generate once per intended change, so a retried request only happens once. Send it as the Idempotency-Key header instead if you prefer; if you send both they must match. 8–200 characters. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/reconciliation.close \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "accountId": "4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a",
  "from": "2026-09-01",
  "to": "2026-09-30",
  "openingMinor": "1250",
  "closingMinor": "1250",
  "currency": "CAD"
}'
```

Reference page: https://app.getoatmilk.com/docs/api/reconciliation.close
