Rule Configuration
Create rule config
Create a service-level configuration for successRate or elimination scoring. Controls the time window, minimum data thresholds, and other parameters used in SR computation.
post/rule/create
Request body
Example request
{
"merchant_id": "merchant_demo",
"config": {
"type": "successRate",
"data": {
"defaultBucketSize": 20,
"subLevelInputConfig": [
{
"paymentMethodType": "CARD",
"paymentMethod": "CREDIT",
"bucketSize": 30,
"hedgingPercent": 0.05
}
],
"margin": 0.2
}
}
}Response
Rule config created
Example response
{
"message": "Success Rate Configuration created successfully",
"merchant_id": "merchant_demo",
"config": {
"type": "successRate",
"data": {
"defaultBucketSize": 20,
"subLevelInputConfig": [
{
"paymentMethodType": "CARD",
"paymentMethod": "CREDIT",
"bucketSize": 30,
"hedgingPercent": 0.05
}
],
"margin": 0.2
}
}
}