Rule Configuration
Get rule config
Changed onRetrieve a saved rule configuration by merchant and type. An existing merchant with no saved configuration returns 200 with config: null. An unknown merchant returns 404.
post/rule/get
Request
- Base URLhttp://localhost:8080
- URLhttp://localhost:8080/rule/get
- Auth
- HTTP bearer
- or API key in header x-api-key
Request body
Example request
{
"merchant_id": "test_merchant",
"algorithm": "successRate"
}Response
Saved rule config, or config: null when not configured
Example response
{
"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
added
subschema #2to theresponse propertyoneOflist for the response status - breaking
the
response's property type changed fromobjectto no type for status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - info
added the non-success response with the status
- info
the response property
became required for the status - info
the response property
became required for the status
- breaking
- info
the response property
////////became required for the status
- info