v1

latestOpenAPI 3.0.02026-07-26168846732.2 KB
Contract Routing

Update contract information for an entity

Updates the contract information for processors based on provided parameters

post/contract_routing.ContractScoreCalculator/UpdateContract

Headers

x-tenant-idstring required
x-profile-idstring required
x-api-keystring required

Request body

idstring required

Entity identifier

paramsstring

Additional parameters

Example request

{
  "id": "merchant1",
  "params": "card",
  "labels_information": [
    {
      "label": "stripe",
      "target_count": 1000,
      "target_time": 86400,
      "current_count": 500
    },
    {
      "label": "adyen",
      "target_count": 1500,
      "target_time": 86400,
      "current_count": 750
    }
  ]
}

Response

Contract update succeeded

status'CONTRACT_UPDATION_SUCCEEDED' | 'CONTRACT_UPDATION_FAILED' required

Status of the update operation