v1

latestOpenAPI 3.0.02026-07-26168846732.2 KB
Contract Routing

Fetch contract scores for an entity

Calculates contract scores for an entity based on provided parameters and labels

post/contract_routing.ContractScoreCalculator/FetchContractScore

Headers

x-tenant-idstring required
x-profile-idstring required
x-api-keystring required

Request body

idstring required

Entity identifier

paramsstring

Additional parameters for contract calculation

labelsstring[] required

Labels (processors) to calculate scores for

Example request

{
  "id": "merchant1",
  "params": "card",
  "labels": [
    "stripe",
    "adyen"
  ],
  "config": {
    "constants": [
      0.7,
      0.3
    ]
  }
}

Response

Success rate calculated successfully

Example response

{
  "labels_with_score": [
    {
      "score": 0.95,
      "label": "stripe",
      "current_count": 500
    }
  ]
}
All 168 operations