Skip to main content
POST
/
contract_routing.ContractScoreCalculator
/
UpdateContract
Update contract information for an entity
curl --request POST \
  --url https://api.example.com/contract_routing.ContractScoreCalculator/UpdateContract \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-profile-id: <x-profile-id>' \
  --header 'x-tenant-id: <x-tenant-id>' \
  --data '
{
  "id": "merchant1",
  "params": "update",
  "labels_information": [
    {
      "label": "stripe",
      "target_count": 1000,
      "target_time": 86400,
      "current_count": 500
    },
    {
      "label": "adyen",
      "target_count": 1500,
      "target_time": 86400,
      "current_count": 750
    }
  ]
}
'
{
  "status": "CONTRACT_UPDATION_SUCCEEDED"
}

Headers

x-tenant-id
string
required
x-profile-id
string
required
x-api-key
string
required

Body

application/json
id
string
required

Entity identifier

Example:

"merchant1"

labels_information
object[]
required

Contract information for processors

Example:
[
{
"label": "stripe",
"target_count": 1000,
"target_time": 86400,
"current_count": 500
},
{
"label": "adyen",
"target_count": 1500,
"target_time": 86400,
"current_count": 750
}
]
params
string

Additional parameters

Example:

"card"

Response

Contract update succeeded

status
enum<string>
required

Status of the update operation

Available options:
CONTRACT_UPDATION_SUCCEEDED,
CONTRACT_UPDATION_FAILED