Skip to main content
PATCH
/
account
/
{account_id}
/
business_profile
/
{profile_id}
/
dynamic_routing
/
success_based
/
config
/
{algorithm_id}
Routing - Update success based dynamic routing config for profile
curl --request PATCH \
  --url https://api.paymnt.cloud/account/{account_id}/business_profile/{profile_id}/dynamic_routing/success_based/config/{algorithm_id} \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "decision_engine_configs": {
    "defaultLatencyThreshold": 123,
    "defaultBucketSize": 123,
    "defaultHedgingPercent": 123,
    "defaultLowerResetFactor": 123,
    "defaultUpperResetFactor": 123,
    "defaultGatewayExtraScore": [
      {
        "gatewayName": "<string>",
        "gatewaySigmaFactor": 123
      }
    ],
    "subLevelInputConfig": [
      {
        "paymentMethodType": "<string>",
        "paymentMethod": "<string>",
        "latencyThreshold": 123,
        "bucketSize": 123,
        "hedgingPercent": 123,
        "lowerResetFactor": 123,
        "upperResetFactor": 123,
        "gatewayExtraScore": [
          {
            "gatewayName": "<string>",
            "gatewaySigmaFactor": 123
          }
        ]
      }
    ]
  }
}
'
{
  "id": "<string>",
  "profile_id": "<string>",
  "name": "<string>",
  "kind": "single",
  "description": "<string>",
  "created_at": 123,
  "modified_at": 123,
  "algorithm_for": "payment",
  "decision_engine_routing_id": "<string>"
}

Authorizations

api-key
string
header
required

Use the API key created under your merchant account from the PaymntCloud dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.

Path Parameters

account_id
string
required

Merchant id

profile_id
string
required

Profile id under which Dynamic routing needs to be toggled

algorithm_id
string
required

Success based routing algorithm id which was last activated to update the config

Body

application/json
decision_engine_configs
object
required
params
enum<string>[] | null
Available options:
PaymentMethod,
PaymentMethodType,
AuthenticationType,
Currency,
Country,
CardNetwork,
CardBin
config
object

Response

Routing Algorithm updated

id
string
required
profile_id
string
required
name
string
required
kind
enum<string>
required
Available options:
single,
priority,
volume_split,
advanced,
dynamic,
three_ds_decision_rule
description
string
required
created_at
integer<int64>
required
modified_at
integer<int64>
required
algorithm_for
enum<string>
Available options:
payment,
payout,
three_ds_authentication
decision_engine_routing_id
string | null