overdue_at, End Close opens an exception for the data stream and writes a note for each open line itself. Findings you send take the place of those notes. Lines already matched, by your rules or by your engine through POST /reconciliation_matches, are done and need no finding. Write findings for the lines that are left.
Prerequisites
- An API key for the environment.
- The reconciliation’s id and the id of the data stream whose lines you are reviewing (
GET /reconciliations).
Write findings
1
Build one finding per open record
Identify the record by
record_id, or by the external_id you gave it when you created it. Every finding needs a note. Add a suggestion when there is something to apply, and evidence when a document backs the note.2
Send the findings
PUT them to the data stream’s findings endpoint. It opens the exception for the data stream if End Close hasn’t yet, and reuses the open one otherwise.cURL
Response
3
Check the errors
Each finding is checked on its own. A bad record id, an empty note or an unknown record in
suggestion.record_ids rejects that finding only. The rest are written, and the response lists the rejected ones by position:Partial success
PUT /reconciliation_exceptions/{id}/findings takes the same body and returns upserted and errors.
Finding fields
suggestion.record_ids lists every other record of the proposed match, on either side of the reconciliation. A rollup names its sibling lines along with the invoice line. End Close recomputes the difference from the records’ amounts, and a match that doesn’t balance is refused when the reviewer approves it, so use adjust with a reason when you expect a gap.Link evidence to documents
Anevidence quote can carry a url to the document it came from, such as a contract uploaded to Files, using the file’s url. End the URL with #page=N and the review opens the PDF at that page, beside the note, from the quote’s Open in PDF link.
When the url is a PDF in Files, End Close checks the quote against it after the finding is written. Each quote comes back with a check saying whether the document contains it word for word, and on which page. Quote the document exactly. Case, line breaks, curly quotes and dash forms don’t matter, and … can stand for text you leave out. You can’t send a check yourself.
Read the review back
cURL
status and difference_cents, the gap between the line and what the finding found on the other side. status is done once the record is matched, looks_right when the finding says so, and to_look_at otherwise.
Lines that carry a count (metadata.quantity, qty, count, event_qty or units on the record) also get quantity, other_quantity (the suggested records’ counts, summed into finding.other_side.count) and quantity_difference. A billing review can then see 27,468 against 27,467 without reading the note.
The response also includes:
status defaults to to_look_at. category (repeatable) and q narrow the page, and sort with dir orders it by any column. GET /reconciliation_exceptions/{id} adds reasons, the adjustment reasons already used on the reconciliation.
The full request and response shapes are under Reconciliation Exceptions in the API reference.
FAQ
Do I need to wait for End Close to open the exception?
Do I need to wait for End Close to open the exception?
No. The data stream endpoint opens the exception if none is open and returns its
exception_id.What happens if End Close already wrote a note for a line?
What happens if End Close already wrote a note for a line?
Findings are keyed on the record, so the finding you send replaces the note for that line.
Should I send findings for lines my engine already matched?
Should I send findings for lines my engine already matched?
No. Matched lines are done. Create the match with
POST /reconciliation_matches and send findings only for the lines left open.Can I retry a request safely?
Can I retry a request safely?
Yes. Re-sending a finding replaces it, and both findings endpoints accept an
Idempotency-Key header. See Idempotency.Related
Review exceptions
What your reviewers see and do with each finding.
Exceptions
When exceptions open, escalate and resolve.
Authentication
Create and use API keys.
Idempotency
Retry writes without creating duplicates.