Skip to main content
A record is a single financial transaction or entry in a data stream, such as a bank deposit, a Stripe charge or a ledger line. Records are what End Close matches: a reconciliation pairs records from one side with records from the other.

How records relate to other concepts

  • Every record belongs to one data stream, named by data_stream_key.
  • A record takes part in every reconciliation that includes its stream, and its match status is tracked separately in each one.
  • Rules or a person group records into a match.
  • An unmatched record that passes its overdue_at becomes a line in an exception.

Record fields

Record
amount is in cents. Send 25000 for $250.00. A decimal such as `250.00` is truncated to `250`, which is $2.50.
Responses also include decimal_places (2 for USD) so you can format the amount. A record on a bank_feed data stream also carries bank_account, the account it sits in: id, name, mask and display_name (for example Partner Bank Incoming (7710)). It is null on any other kind of stream.

Currency

currency is optional. If you leave it out, End Close stores the record as USD. Input is case-insensitive and stored uppercase, so "usd" and "USD" are the same. Responses always include currency. An invalid code returns 422.

Metadata and custom fields

metadata holds anything your matching needs beyond the standard fields: an invoice number, a payout ID, a merchant reference. Rules refer to these fields with dot notation, for example metadata.invoice_number. To give a field a name and type, add a property definition on the stream.

Create records

Send one record with POST /records, or up to 1,000 at a time with POST /records/bulk, which is processed asynchronously.
cURL
If you send your own id, a retry with the same id returns the original record with 201 instead of creating a duplicate. See Idempotency.

Match status

A record’s status belongs to its entry in a reconciliation, not to the record itself, because the same record can be matched in one reconciliation and open in another. Each entry has: To list records by status, call GET /records with a reconciliation_id and status=matched or status=unmatched. To see the records in a match, pass reconciliation_match_id. When a record arrives, a continuous reconciliation runs it against its rules straight away. A batch reconciliation matches it on its next run. See Reconciliations. You can subscribe to webhook events such as record.reconciled and record.reconciliation_overdue to react to status changes.

Update and delete records

You can update or delete a record created with POST /records, and only while it’s unmatched in every reconciliation. Both calls return 409 once the record is matched anywhere, or when the record came in through POST /records/bulk or a file import.
To clear a record that will never match, don’t delete it. Write it off with a reason so the decision stays on file. See Write off a record.

Data streams

The sources records belong to.

Rules and matches

How records are grouped into matches.

Exceptions

What happens to records that stay unmatched.

API reference

Record endpoints, bulk creates and file imports.