Rule Configuration
Create rule config
Changed onCreate 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
- Base URLhttp://localhost:8080
- URLhttp://localhost:8080/rule/create
- Auth
- HTTP bearer
- or API key in header x-api-key
Request body
Example request
{
"merchant_id": "merchant_demo",
"config": {
"type": "successRate",
"data": {
"defaultBucketSize": 20,
"subLevelInputConfig": [
{
"paymentMethod": "CARD",
"paymentMethodType": "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": [
{
"paymentMethod": "CARD",
"paymentMethodType": "CREDIT",
"bucketSize": 30,
"hedgingPercent": 0.05
}
],
"margin": 0.2
}
}
}Changes
- breaking
the request property
////////became not nullable - breaking
the request property
////////became required - info
the response property
////////became required for the status
- breaking
- breaking
added the new required request property
/ - breaking
added the new required request property
/ - info
added the optional property
to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- breaking