POST
/
success_rate.SuccessRateCalculator
/
FetchSuccessRate
{
  "labels_with_score": [
    [
      {
        "score": 100,
        "label": "stripe"
      },
      {
        "score": 98.5,
        "label": "adyen"
      }
    ]
  ],
  "routing_approach": "EXPLOITATION"
}

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"

params
string
required

Parameters on which success rate scores has to be maintained

Example:

"card"

labels
string[]
required

Labels for which to calculate success rates

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

Response

Success rate calculated successfully

labels_with_score
object[][]

List of labels with their calculated success rates

routing_approach
enum<string>

Defines the routing approach based on the success rate calculation.

Available options:
EXPLORATION,
EXPLOITATION
Example:

"EXPLOITATION"