POST
/
contract_routing.ContractScoreCalculator
/
FetchContractScore
{
  "labels_with_score": [
    {
      "score": 0.95,
      "label": "stripe",
      "current_count": 500
    }
  ]
}

Headers

x-tenant-id
string
required
x-profile-id
string
required
x-api-key
string
required

Body

application/json
id
string
required

Entity identifier

Example:

"merchant1"

labels
string[]
required

Labels (processors) to calculate scores for

Example:
["stripe", "adyen"]
config
object
required

Configuration for calculation

params
string

Additional parameters for contract calculation

Example:

"card"

Response

Success rate calculated successfully

labels_with_score
object[]

Contract scores for each label