01 · Exact match
MATCH- Gross sales
- $10,750.00
- Refunds
- $250.00
- Processing fees
- $127.50
- Chargebacks
- $30.00
- Actual deposit
- $10,342.50
- Expected net
- $10,342.50
- Signed variance
- $0.00
- Absolute variance
- $0.00
SumWise · Synthetic sample deliverable
Payment Settlement Reconciliation
Synthetic example — no client or production data
One financially important rule. Explicit assumptions. A defined failure boundary. Expected outputs your workflow owner can check before trusting the rule in production.
This representative sample shows the structure of SumWise's one-time $99 Workflow Calculation Review for one supported calculation rule. It is separate from paid Compute API access unless access is explicitly arranged.
Have one calculation you want to harden? Send the rule or formula first. Avery will confirm whether it fits SumWise before you purchase the $99 review.
A payment processor deposits a net settlement after refunds, processing fees and chargebacks. Flag the settlement for review when the actual bank deposit differs from the expected net by more than $0.05.
absolute_variance_cents <= 5Specification & integration
Convert all money to integer cents before calculation. This avoids unnecessary decimal/binary floating-point behavior in the reconciliation rule. All values in one calculation must represent the same currency.
| Input | Meaning | Required contract |
|---|---|---|
gross_sales_cents | Gross captured sales | Integer; 0 to 100,000,000,000 |
refunds_cents | Refunded amount | Integer; 0 to gross sales |
processing_fees_cents | Processor fees | Integer >= 0 |
chargebacks_cents | Disputes / chargebacks | Integer >= 0 |
actual_deposit_cents | Bank deposit received | Integer >= 0 |
tolerance_cents | Allowed absolute variance | Integer >= 0; sample value 5 |
expected_net_cents = gross_sales_cents - refunds_cents
- processing_fees_cents - chargebacks_cents
variance_cents = actual_deposit_cents - expected_net_cents
absolute_variance_cents = abs(variance_cents)
MATCH when absolute_variance_cents <= tolerance_cents
NEEDS REVIEW when absolute_variance_cents > tolerance_cents
The current public API is Evaluate-only: POST /v1/evaluate. Build a fixed expression from validated integers. Braces below are documentation placeholders, not SumWise expression syntax.
abs({actual_deposit_cents} - ({gross_sales_cents}
- {refunds_cents} - {processing_fees_cents} - {chargebacks_cents}))
Concrete first synthetic request:
{"expression":"abs(1034250 - (1075000 - 25000 - 12750 - 3000))"}
Expected numerical result: 0. With validated integer inputs:
result.type = integer
result.exactness = exact
result.value = "0"
Compute returns the exact absolute numerical variance. The customer's workflow IF/branch step decides absolute_variance_cents <= tolerance_cents; the API does not perform that business branch. Validate and interpret the returned string as an integer before comparison; do not compare numeric strings lexicographically or lose integer precision.
See the current API documentation for authentication, response shape and limits.
Expected outputs · cases 01–06
All ten cases use tolerance_cents = 5. Amounts below are dollar-formatted for reading; calculations use integer cents. Signed variance is actual minus expected. The decision uses absolute variance.
Expected outputs · cases 07–10
The tolerance remains 5 cents, including the zero-activity case. All money inputs in that case are zero. Full inputs are shown for every test.
Failure boundary & workflow handoff
abs() operation.<= 5 is intentional. Replacing it with < 5 changes the rule.POST /v1/evaluateabsolute_variance_cents <= tolerance_centsA failure at validation or the service step takes the error/review path, never the MATCH branch. Store the issued API key in your integration's credential facility. Never put a key in expression text, workflow logs, screenshots or browser/client-side code.
Review scope & fit
< versus <= boundary mistakesFor this absolute-variance decision, reversing the sign alone does not change MATCH versus NEEDS REVIEW. Recording signed variance still exposes the reversal and keeps reporting and later rules consistent.
A numerical rule matters enough that its behavior should be explicit, tested and reusable across workflows or systems.
The rule is trivial, exists in one low-risk location, and your current workflow already handles it clearly and reliably.
This is a synthetic sample deliverable, not a paid-client case study, testimonial or evidence of an engagement. A real review is scoped to your supported rule after a no-data fit check. It is not a security/compliance certification or a guarantee of ROI or production suitability.
The $99 Workflow Calculation Review is a one-time service. Hosted Compute private-alpha/API access is separate unless included under separate agreed terms. Currency conversion, production system access and broader custom engineering are outside this sample's scope.
Send the rule or formula first. Avery will confirm whether it fits SumWise before you purchase the $99 review. The fit decision happens before payment.
Use synthetic inputs. Do not send passwords, API keys, bank credentials or private production records for the initial fit check.
Request a fit checkavery@sumwisecalc.com · sumwisecalc.com/compute/