Skip to content

REST API

One API call. One clear answer.

A decision API for every system you run. Send the record, get the answer back as JSON in milliseconds, and leave the rules to the people who own them.

Incoming request

evaluating

Can account 40117 take this order on credit?

  1. Look up the account's credit limit and current balance.
  2. If the balance plus the order is over the limit, decline on credit.
  3. If the delivery country is on the restricted countries list, refer for review.
  4. Otherwise, approve.

Answer, with the reason

The answer comes back as JSON saying approved, with the remaining credit of 1,800 GBP as an output value. The account has a 10,000 GBP limit and 5,000 GBP outstanding, so the order fits, and the United Kingdom is not on the restricted list. The call, its inputs and its trace are saved in run history under the web shop's key.

Sound familiar?

Every application ends up with its own copy of the rules

The web shop has a credit check. So does the ERP. So does the sales app. They were all written from the same policy, at different times, by different people.

01

The same rule, written three times

Each system has its own version of the logic. When policy changes, three teams have to change three codebases, and one of them always lags.

02

Developers maintaining policy

Your developers should be building product. Instead they are fielding tickets to move a threshold from 5,000 to 7,500.

03

Answers you cannot trace

When the app says no, the log says 'declined'. It does not say which rule, which value or which version of the policy made that call.

The quiet cost

What duplicated rules quietly cost

  • Customers get different answers depending on which channel they use.
  • Policy changes take as long as the slowest release train.
  • Support cannot explain a decision without asking a developer.

Before and after

From rules in every app to rules as a service

Today

  • Each application carries its own copy of the business rules.
  • A rule change means code changes and releases in several places.
  • Logs show the result, not the reasoning.
  • Developers own policy by accident.

With Condexa

  • Every application calls one published decision.
  • The rule changes once, in Condexa, and every caller gets it.
  • Every call is recorded with its inputs, outputs and trace.
  • The business owns the policy; developers own the integration.

How you get there

How the Condexa decision API works

  1. 1

    Issue a key to each application

    Create an API key for each named application, such as the web shop or the ERP. You always know which system asked, and you can manage each key separately.

  2. 2

    Send JSON, get JSON

    Post the record or the input values to the decision. Condexa runs the Active version and returns the output values as JSON, in milliseconds for compiled and cached decisions.

  3. 3

    Look back at any call

    Run history records every call with what was sent, what came back and the full trace. When someone asks why, you open the run and see.

condexa / runs
Every decision your systems asked for

A worked example

Worked example: one request, one answer

The web shop sends Condexa a request: customer account 40117, order total 3,200 GBP, delivery country United Kingdom. It uses the web shop's API key and calls the 'Order credit check' decision.

The rules, in plain English

  1. R1Look up the account's credit limit and current balance.
  2. R2If the balance plus the order is over the limit, decline on credit.
  3. R3If the delivery country is on the restricted countries list, refer for review.
  4. R4Otherwise, approve.

Condexa answers

The answer comes back as JSON saying approved, with the remaining credit of 1,800 GBP as an output value. The account has a 10,000 GBP limit and 5,000 GBP outstanding, so the order fits, and the United Kingdom is not on the restricted list. The call, its inputs and its trace are saved in run history under the web shop's key.

FAQ

Questions people ask

What is a decision API?

A decision API lets an application send the facts of a case and get back a business decision, such as approve, decline or who must sign off. The rules live behind the API instead of inside each application, so they can change without a code release in every system that uses them.

What does 'rules as a service' mean?

Rules as a service means your business rules run as a shared service that any system can call, rather than being copied into each application. Condexa provides this: publish a decision, and every system calls the same Active version over REST.

How do applications authenticate with the Condexa API?

Each calling application gets its own API key, issued to a named application. The key is sent with each request, so every call in run history is tied to the system that made it.

Which version of a decision does the API run?

The Active version. Drafts can be tested in Condexa without affecting callers, and when you publish a new version it becomes the one the API runs. A decision can also be switched off entirely.

Which languages and platforms can call it?

Anything that can make an HTTPS request and handle JSON: C#, Java, Python, JavaScript and others, plus Power Automate, Power Apps, Dynamics 365 plug-ins, ERP and CRM systems.

How fast is the Condexa API?

Decisions are compiled, and cached decisions answer in milliseconds, so they can sit inside a live order or quote flow without slowing it down.

Make your first call to a decision you wrote yourself

Bring a decision your team makes every week. We will build it with you, live, test it against your own examples and show your systems calling it.

No slides. Your decision, built live. No obligation.