About Formula Evaluation Service

Prev Next

The Formula Evaluation Service evaluates predefined business formulas and returns calculated results in real time. Zilliant configures formulas and encapsulates in them business logic, such as pricing calculations, discounts, surcharges, and other derived values. You call a formula by its ID, provide the required inputs, and receive the computed output as JSON.

Use the Formula Evaluation Service when you need:

  • Consistent, centrally-managed calculations

  • Real-time results for UI flows

  • High-throughput scenarios

  • Optional diagnostic output

Tip

Zilliant team defines the available formulas, their purpose, required parameters, and outputs. Your Zilliant representative can provide the list of formula IDs and their supported inputs and outputs.

What you can do with the Formula Evaluation Service

Evaluate one formula for one set of inputs (single query)

Use GET Evaluate a formula when you have one case to evaluate, such as:

“What’s the discounted price for Product 1234 at 10% off?”

This is a good fit for interactive flows where you can pass a small number of inputs in the URL and want one calculated result back.

Evaluate one or more formulas for many input records (batch query)

Use POST Evaluate formulas in batch when you need to evaluate at scale, for example, to:

  • Calculate a discounted price for many products in one call

  • Evaluate multiple formulas per input record