Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleCopy paste sample 👇
Code Block
{
    "retry_intervals": [
   
    30,
        3060,
        30120,
        30240,
        30480,
        30840
    ],
 
  "retries_until_failure": 3,
    "on_failure": {
        "contact_emails": [
     
      "contact@onestock-retailemail@company.com"
   
    ],
   
    "contact_mobiles": [
            "+33600000000"
        ],
   
    "sms_notification_name": "webhook_failure",

       "email_notification_name": "webhook_failure"
    },
 
  "on_deactivation": {
   
    "contact_emails": [
      "email@company.com"
     "contact@onestock-retail.com"
        ],
  ],
      "contact_mobiles": [
            "+33600000000"
        ],
 
      "sms_notification_name": "webhook_failure_recovered",
        "email_notification_name": "webhook_failure_recovereddeactivation"
    },
    "on_failure_recovered": {
        "contact_emails": [
            "contact@onestock-retail"email@company.com"

       ],
 
      "contact_mobiles": [
            "+33600000000"
        ],

       "sms_notification_name": "webhook_failure_recovered",
 
      "email_notification_name": "webhook_failure_recovered"
 
  }
}

...

The default retry delay values are set as shown above in seconds. In this instance the webhook would make the first call and if no response or confirmation is received then it will retry 6 times, first after 30 seconds, then 60, then 2 minutes, 4 minutes, 8 minutes and finally 16 minutes. However, after the 3rd failed attempt, i.e. one with no response, it will send a notification of failure to the contact details in the configuration.

...