Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 752 Bytes

File metadata and controls

32 lines (29 loc) · 752 Bytes
title Create Success Rate Config
description Curl example for creating success-rate scoring config.

Create Success Rate Config

curl --location "$BASE_URL/rule/create" \
  --header "$AUTH_HEADER" \
  --header "Content-Type: application/json" \
  --data '{
    "merchant_id": "merchant_demo",
    "config": {
      "type": "successRate",
      "data": {
        "defaultBucketSize": 20,
        "defaultLatencyThreshold": null,
        "defaultHedgingPercent": null,
        "subLevelInputConfig": {
          "paymentMethodType": {
            "CARD": { "bucketSize": 30, "hedgingPercent": 0.05 }
          }
        }
      }
    }
  }'
{ "merchant_id": "merchant_demo", "config": { "type": "successRate" } }