Prerequisites
- An End Close account. Every request is scoped to one environment, so use a test environment if you have one.
- An API key for that environment from Settings in the End Close dashboard. See Authentication.
curlandjq, or any HTTP client.
Set your key
Steps
1
Create two data streams
A data stream holds the records from one system. Create one for Stripe payouts and one for your bank account. The Each response includes the stream’s
key is yours to choose and can’t be changed later.cURL
id. Keep both: the reconciliation refers to streams by id.2
Create a reconciliation
A reconciliation says which streams should agree. Put payouts on Side A and the bank on Side B. A
batch reconciliation matches when you run it; a continuous one matches each record as it arrives.cURL
3
Add a matching rule
A rule decides when two records match. This one pairs records with the same amount and currency whose dates are at most two days apart.
cURL
A one-to-one rule needs an
amount condition and at least two exact eq conditions (a condition with a tolerance doesn’t count). End Close skips rules that are looser than that, because they would match records too broadly.4
Push one record into each stream
A record is a single transaction. Send the payout and the bank deposit it became.Amounts are integers in the currency’s minor unit, so
cURL
125000 is $1,250.00. Both records start unmatched.5
Run the reconciliation
Start a batch run. It works in the background and returns Poll
202 straight away.cURL
GET /reconciliations/{id}: current_run is the run while it is pending or running, and last_run holds it once it has finished.6
Check the match
Once the run completes, list the reconciliation’s matched records. Both records appear.
cURL
What to do next
How End Close works
Ingest, match, flag and resolve: the four steps behind every reconciliation.
Write matching rules
Tolerances, transforms, priorities and many-to-one rules.
Connect an integration
Sync Stripe, your banks, your ledger or your warehouse instead of pushing records.
API reference
Every endpoint, with request and response examples.