Skip to main content
POST
/
success_rate.SuccessRateCalculator
/
UpdateSuccessRateWindow
Update success rate window
curl --request POST \
  --url https://api.example.com/success_rate.SuccessRateCalculator/UpdateSuccessRateWindow \
  --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": "card",
  "labels_with_status": [
    {
      "status": false,
      "label": "stripe"
    },
    {
      "status": true,
      "label": "adyen"
    }
  ],
  "global_labels_with_status": [
    {
      "status": false,
      "label": "stripe"
    },
    {
      "status": true,
      "label": "adyen"
    }
  ]
}
'
{
  "status": "WINDOW_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"

params
string
required

Additional parameters for window update

Example:

"card"

labels_with_status
object[][]
required

Entity-specific labels with their success/failure status

Example:
[
{ "status": false, "label": "stripe" },
{ "status": true, "label": "adyen" }
]
Example:
[
{ "status": false, "label": "stripe" },
{ "status": true, "label": "adyen" }
]
global_labels_with_status
object[][]

Global labels with their success/failure status

Example:
[
{ "status": false, "label": "stripe" },
{ "status": true, "label": "adyen" }
]
Example:
[
{ "status": false, "label": "stripe" },
{ "status": true, "label": "adyen" }
]

Response

Window updated successfully

status
enum<string>
required

Status of the window update operation

Available options:
WINDOW_UPDATION_SUCCEEDED,
WINDOW_UPDATION_FAILED