> ## Documentation Index
> Fetch the complete documentation index at: https://docs.easner.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ledger and security

> Reconcile your books, protect your API keys, and allow Connect on your site.

## Reconcile your ledger

Export the day's entries from Console → Connect → Activity, or from your reconciliation job. Each row is one credit, payout, reversal or release. The file has a running total for that payee and a running total for the program.

Money is in cents in the API and in dollars with cents in the file.

Transactions in Console shows one line per day, "Connect payouts", which opens Activity for that day. The per-payout transaction id lives on the payout in Activity.

`POST /v1/reconciliations` compares what your ledger says each person is owed with Easner's balances. It changes nothing. Send `complete: true` when the list is your whole ledger. A credit you sent and a payout that completed should both be in the day's file, and the payee's available balance should equal the sum of their entries.

Your platform keeps its own ledger, and Easner keeps a balance for each person from the credits you send. If a credit or a reversal never arrives, the two drift apart. `POST /v1/reconciliations` finds that: send what **your** ledger says each person is owed (earned and not yet paid out, including anything on hold or waiting; money already on its way out is not owed), and Easner compares it with its own balances.

```bash theme={null}
curl https://api.easner.com/v1/reconciliations \
  -H "Authorization: Bearer $EASNER_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "complete": true,
    "payees": [
      { "reference": "user_1042", "owed": 41250 },
      { "reference": "user_1043", "owed": 0 }
    ]
  }'
```

Identify each person by your `reference`, or by their `payee` id. Send `"complete": true` when the list is your **whole** ledger: then a person Easner owes money to who is missing from the list is reported too. The answer has `ok` (true only when everything matches), the counts and totals, and the rows that differ: `differences` (largest first, with `platform_owed`, `easner_owed` and `difference`), `unknown` (people you sent that Easner has no payee for, when you owe them something) and `missing` (people Easner owes who you left out of a complete list). Each list is capped at 200 rows; the counts and totals are always complete. A difference is not fixed for you: find the missing credit or reversal in your own records, send it, and run the check again. It changes nothing, and every run is recorded. Run it after each import and once a day.

## Keys

Connect money calls use the same secret API key as the banking API and Checkout. A live payout, credit, reversal, batch, payee change, or link session needs the scope on that key. It does not need a second signature, and it is not limited to a list of server addresses.

Roll or revoke a key in Console → API keys when it is copied or no longer used. A revoked key fails at once.

## Allowed websites

The Connect sheet and the inline panel open inside a page on your site. An Owner adds each origin in Console → Connect → Settings. A new website starts working as soon as it is added, the same way a Checkout website does. Removing one is immediate.

That list is only about those browser frames. Server calls with the secret key are not checked against it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.