Skip to content

Commercial operations and calculations

Validate an installment plan

Reconciles installment amounts against a total and prior payments at configured precision.

Available recipeIncludes configuration, sample data and tests

Make it your own

Review the setup and limits below, then open an editable copy in Turbyn.

Use this recipe

Your selection stays with you through signup.

What it does

Returns valid reconciliation or precise mismatch details.

What to customize

Set decimal precision and cent tolerance, and pass installment JSON.

Run the included tests with your configuration and mappings. Review success, missing-input and failure results before publishing.

Expected outcome

This included example runs in dry-run mode with synthetic data. Integration tests separately cover provider responses using test doubles. It is not a live customer result.

Sample input

sample-input.json

{
  "inputFields": {
    "field1": "100.00",
    "field2": "20.00",
    "field3": "[{\"amount\":40},{\"amount\":40}]"
  }
}
Sample output

sample-output.json

{
  "outputFields": {
    "output1": "valid",
    "output2": "RECONCILED",
    "output3": "{\"expected\":\"80.00\",\"scheduled\":\"80.00\",\"difference\":\"0.00\",\"precision\":2}"
  }
}

Returned fields

output1
valid or invalid
output2
reconciliation reason
output3
expected, scheduled, difference

What changes when it runs

Reads amounts and performs local arithmetic only.

Ready to try it with your rules?

Map your inputs, test a sample and publish the version you’ve checked.

Use this recipe