v3

latestOpenAPI 3.1.0raw.githubusercontent.com2026-03-174712.4 KB
Contracts
Schema
Audit

Audit multiple scenarios

Execute a contract computation with multiple input scenarios.

post/api/v1/contracts/{contract_id}/audit/batch

Path parameters

contract_idstring required

Request body

scope_namestring nullable

The scope to execute. If not provided, uses the contract's main scope.

scenariosobject[] required

List of input scenarios to evaluate

Example request

{
  "scenarios": [
    {
      "claim": {
        "ndc11": "12345678901",
        "quantity": 30
      }
    },
    {
      "claim": {
        "ndc11": "12345678902",
        "quantity": 60
      }
    }
  ],
  "scope_name": "RebateCalculation"
}

Response

Successful Response

contract_idstring required

The contract that was audited

scope_executedstring required

The scope that was executed

total_scenariosinteger required

Total number of scenarios submitted

successfulinteger required

Number of scenarios that succeeded

failedinteger required

Number of scenarios that failed

execution_time_msinteger required

Total execution time in milliseconds