Transactions

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:readaccounting:write

Who can call it

admin, finance

Retries

Idempotency key required

MCP

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

Fields

  • accountIdstring (ID)Required

    The ID of a bank, card or payment account, from accounts.list.

  • fromstringRequired

    The first date to include, as YYYY-MM-DD.

  • tostringRequired

    The last date to include, as YYYY-MM-DD.

  • openingMinorstringRequired

    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

  • closingMinorstringRequired

    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

  • currencystringRequired

    Three-letter currency code, such as CAD or USD.

  • idempotencyKeystringRequired

    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

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"
}'
Response
{
  "data": { … }
}

Try it

Try it

Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.

POST/api/v1/accounting/reconciliation.close
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"
}'

More in Transactions.