Update contract information for an entity

Update contract information for an entity in the Contract Routing service.

HTTP

POST /contract_routing.ContractScoreCalculator/UpdateContract

Request example

cURL
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
    }
  ]
}
'

Headers

  • x-tenant-id (string) — required

  • x-profile-id (string) — required

  • x-api-key (string) — required

Body (application/json)

Properties:

  • id (string) — required

    • Entity identifier

    • Example: "merchant1"

  • labels_information (object[]) — required

    • Contract information for processors. Each item example:

  • params (string)

    • Additional parameters

    • Example: "card"

Response

200 application/json — Contract update succeeded

Example:

status (enum) — required

  • Status of the update operation. Available options: CONTRACT_UPDATION_SUCCEEDED, CONTRACT_UPDATION_FAILED.