v12

latestOpenAPI 3.1.0AGPL-3.0raw.githubusercontent.com2026-08-0464108237.1 KB
Rule Configuration

Update rule config

Update an existing rule configuration.

post/rule/update

Request body

merchant_idstring required

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 updated

messagestring
merchant_idstring

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
    }
  }
}