Error Handling and Retries¶
A webhook is considered successful when:
- The return HTTP status code is 2xx and;
- The returned body matches the expected webhook response JSON format (only for
cta_get_fields
events).
All other scenarios will be considered unsuccessful.
Asynchronous Webhooks¶
The webhooks triggered by the following events will be executed asynchronously:
- CTA Deleted
- CTA Updated
- CTA Submitted (if your Hub Option ‘Validate CTA response’ is unchecked, otherwise it will be executed synchronously)
The response will be ignored, however should the webhook receive a 5xx HTTP status code in response to the POST HTTP request, the webhook will be retried:
- up to 5 times and;
- intervaled by 10 seconds.
In the following scenarios the webhook will be considered unsuccessful but not retried:
- DNS not resolved
- HTTP request timeout
- HTTP response status code 4xx