Exact Ledger Reconciler avatar

Exact Ledger Reconciler

Pricing

$1,880.00 / 1,000 exact ledger reconciler runs

Go to Apify Store
Exact Ledger Reconciler

Exact Ledger Reconciler

Explains settlements and payouts from ledger lines with an exact solver, not a model: subset-sum over integer minor units (meet-in-the-middle, DP, branch-and-bound) across candidate fee schedules (percentage + fixed, tiers, caps), withholding, FX rates and rounding conventions…

Pricing

$1,880.00 / 1,000 exact ledger reconciler runs

Rating

0.0

(0)

Developer

WritersLogic

WritersLogic

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

18 hours ago

Last modified

Features

Limited permissions

Share

Explains which charges, refunds and fees make up a Stripe, PayPal or bank payout, with an exact solver instead of a model: subset-sum over integer minor units (meet-in-the-middle, DP, branch-and-bound) across candidate fee schedules (percentage + fixed, tiers, caps), withholding, FX rates and rounding conventions (half-up, half-even, truncate; per line or on the total). Paste a Stripe balance or payout-reconciliation CSV, a PayPal activity CSV or structured rows. verdict.action is RECONCILED, MATCHED_WITH_UNSETTLED_ITEMS (every payout explained, some items belong to a later payout), AMBIGUOUS (with the exact count), UNMATCHED_SETTLEMENTS (missing items, phantom payouts and the closest near-miss) or SEARCH_INCOMPLETE. Reports which rounding convention reconciles and a hash-chained audit trail. Structured input, CSV and plain one-amount-per-line statements make zero LLM calls; other free text is normalized by a fast-tier LLM whose rows must quote the source verbatim. Not accounting or tax advice.

Every result is a signed, verifiable answer:

  • a W3C Verifiable Credential 2.0, signed with eddsa-jcs-2022 by did:web:agents.writerslogic.com;
  • a C2PA-style manifest that lists every source the agent read, each with its SHA-256;
  • an EIP-191 co-signature over the same digest.

Change one byte and verification fails, so you can pass the result to a client, an auditor or another agent and they can check it without trusting you or us.

How to use Exact Ledger Reconciler

  1. Fill in the input form. Required fields are marked; the form opens with a working example.
  2. Start the run.
  3. Read the result in the Output tab, or download the dataset as JSON. The full signed envelope is also saved as the OUTPUT record in the key-value store.

Input

FieldRequiredDescription
itemsnoLedger lines. Amounts are signed (refunds and disputes negative) strings in major units, e.g. "1234.56".
settlementsnoPayouts or bank settlement totals to explain.
feeSchedulesnoCandidate fee schedules; the solver reports which one reconciles each settlement. Omit for no fees.
withholdingsno
fxRatesnoDirect rates only (1 from = rate to). The latest rate dated on or before the reference date applies; an undated rate is the fallback.
textnoMessy source text for collections not given structurally. A CSV with a header (Stripe balance or payout-reconciliation export, PayPal activity export, bank statement) is parsed by code with no model, and so are headerless lines with one amount each (date, id, amount, currency, and wording that names one kind, such as Payment or Refund); anything else goes to a fast-tier LLM that must quote every row verbatim.
defaultCurrencynoCurrency for text rows that state none.
crossChecknoRun two independent LLM translations and keep only rows both produced (default true).
conventionsnoRestrict the conventions searched (default: all rounding modes x both scopes x both FX date policies).
toleranceMinornoAccepted |residual| per settlement in minor units (default 0 = exact).
nearMissToleranceMinornoLargest residual searched when reporting the closest near-miss for an unmatched settlement.
maxLagDaysnoAn item may settle at most this many days after its date.
limitsno

Example input:

{
"text": {
"items": "id,Type,Amount,Currency,Created (UTC)\nch_1,charge,100.00,usd,2026-10-01 09:12:44\nch_2,charge,250.00,usd,2026-10-01 14:03:10\nch_3,charge,40.00,usd,2026-10-02 08:45:31\nre_1,refund,25.00,usd,2026-10-02 16:20:05",
"settlements": "id,Amount,Currency,Arrival Date\npo_1,314.25,usd,2026-10-05"
},
"feeSchedules": [
{
"id": "stripe_us_card",
"rules": [
{
"percent": "2.9",
"fixed": "0.30"
}
]
}
]
}

Output

{
"agent": "reconcile-ledger",
"priceUsd": 1.88,
"data": { "...": "the agent's answer" },
"_provenance": { "credential": {}, "manifest": {}, "ethSignature": "0x..." }
}

To check a result for free, POST { "data": ..., "_provenance": ... } to https://agents.writerslogic.com/api/v1/verify-provenance, or verify it offline against the public key in the DID document.

Pricing

$1.88 per successful run, charged once and only after the agent returns its answer. If the input is rejected or the agent fails, you are not charged for the call.

Use it from code or an AI assistant

  • Apify API and integrations: call this Actor from Make, Zapier, n8n, LangChain or the Apify API like any other Actor.
  • MCP: npx -y @writerslogic/ai-agents-mcp exposes this agent and the rest of the hub as tools.
  • x402: the same agent is available at POST https://agents.writerslogic.com/api/v1/reconcile-ledger, paid per call in USDC on Base.

More verifiable agents

FAQ

Who runs this? WritersLogic. The agent runs on the WritersLogic Verifiable AI Agent Hub; this Actor sends your input there and returns the signed result.

Is my input stored? The Actor stores your result in your own Apify storage. Ask before sending confidential documents; the hub is a third-party service from your point of view.