Bot discovery · free beta
Reconciliation recipes
Four worked paths on the live Unira API. Each page states the break that shows up in practice, the two datasets Unira compares, the exceptions you get back, a sample JSON body, a curl script, and the reconcile_files MCP call.
- Bank deposits to Stripe payoutsuse_case payout_settlement. Net payout id on the bank line versus the Stripe payout row.
- Bank statement to the cash general ledgeruse_case bank_vs_ledger. Includes POST /api/v1/examples/bank-books.
- Marketplace settlement lines to the order ledgeruse_case payout_settlement. Order reference and net amount, not a rolled-up payout of hundreds of orders.
- Open invoices to customer paymentsuse_case invoice_vs_payment. Exact reference after punctuation normalization. Short-pays stay exceptions.
What every recipe returns
Jobs are asynchronous. POST /api/v1/reconciliations answers HTTP 202. Poll GET /api/v1/reconciliations/{id} until status is completed. The summary counts rows, not money:
matched_groupsandmatched_recordsare confirmed matches.tolerance_matchesis the subset inside an amount or date window.missing_booksis dataset A with no counterpart (unmatched_a).missing_bankis dataset B with no counterpart (unmatched_b). Those field names do not change withuse_case.review_records,suggested_groups, andinvalid_recordsneed a person. Suggested splits are excluded frommatched_records.GET /api/v1/reconciliations/{id}/exceptionspages everything except confirmed matches.GET /api/v1/reconciliations/{id}/export?format=csvdownloads a completed job.
Shared REST shape
Authenticate with Authorization: Bearer $UNIRA_API_KEY and send Content-Type: application/json on writes. idempotency_key is a JSON field, not a header. Dataset ids in a job must be distinct and owned by the key's organization.
Sample dataset body
{
"name": "Bank deposits — Stripe payouts",
"id_field": "bank_id",
"idempotency_key": "stripe-payouts-bank-v1",
"records": [
{"bank_id": "BANK-100", "date": "2026-10-08", "amount": "1842.15", "reference": "po_1842", "currency": "USD", "description": "STRIPE PAYOUT"}
]
}
curl
curl --fail-with-body -sS https://unira.dev/api/v1/datasets \
-H "Authorization: Bearer $UNIRA_API_KEY" \
-H "Content-Type: application/json" \
--data '{"name":"Bank deposits — Stripe payouts","id_field":"bank_id","idempotency_key":"stripe-payouts-bank-v1","records":[{"bank_id":"BANK-100","date":"2026-10-08","amount":"1842.15","reference":"po_1842","currency":"USD","description":"STRIPE PAYOUT"}]}'
curl --fail-with-body -sS https://unira.dev/api/v1/rulesets \
-H "Authorization: Bearer $UNIRA_API_KEY" \
-H "Content-Type: application/json" \
--data '{"name":"Stripe payout id to bank deposit","rules":[{"id":"payout-exact","name":"Same payout reference and currency","priority":1,"conditions":[{"field_a":"currency","field_b":"currency","operator":"exact"},{"field_a":"reference","field_b":"reference","operator":"exact","trim":true,"ignore_case":true},{"field_a":"amount","field_b":"amount","operator":"amount","tolerance":"0"},{"field_a":"date","field_b":"posting_date","operator":"date","tolerance":"3"}]}]}'
curl --fail-with-body -sS https://unira.dev/api/v1/reconciliations \
-H "Authorization: Bearer $UNIRA_API_KEY" \
-H "Content-Type: application/json" \
--data '{"name":"October Stripe payouts","use_case":"payout_settlement","dataset_a_id":"ds_bank","dataset_b_id":"ds_stripe","ruleset_id":"rules_example","ruleset_version":1,"idempotency_key":"stripe-payouts-2026-10"}'
curl --fail-with-body -sS "https://unira.dev/api/v1/reconciliations/$JOB/exceptions" \
-H "Authorization: Bearer $UNIRA_API_KEY"
curl --fail-with-body -sS "https://unira.dev/api/v1/reconciliations/$JOB/export?format=csv" \
-H "Authorization: Bearer $UNIRA_API_KEY" --output payouts.csv
MCP: reconcile_files
The registered tool is reconcile_files at https://unira.dev/api/mcp. Required arguments are side_a_csv and side_b_csv. Optional arguments are side_a_name, side_b_name, preset (only bank-books), ruleset_id, use_case, and idempotency_key. Send preset or ruleset_id, not both. The Accept header is required by the Streamable HTTP transport.
curl --fail-with-body -sS https://unira.dev/api/mcp \
-H "Authorization: Bearer $UNIRA_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
--data '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"reconcile_files","arguments":{"side_a_csv":"bank_id,date,description,amount,reference,currency\nBANK-100,2026-10-08,STRIPE PAYOUT,1842.15,po_1842,USD\n","side_b_csv":"payout_id,posting_date,amount,reference,currency\npo_1842,2026-10-08,1842.15,po_1842,USD\n","side_a_name":"Bank deposits","side_b_name":"Stripe payouts","preset":"bank-books","use_case":"payout_settlement","idempotency_key":"stripe-payouts-mcp-v1"}}}'