Webhook
Webhook
Webhook is a HTTTP request used to deploy event responses.
Cas will send webhook information about changes to Cas grant
or financial transaction information.
For example, Cas will send a webhook when a grant is failing or a transaction arises from an order created.
To receive the Cas webhook, you need to set up an endpoint on your server method is POST. Then provide this endpoint URL to Cas as described below.
Webhook Configuration
Webhook is configured through Cas Console. When setting up a webhook, the URL must be http(s)://your-domain.com/webhook-endpoint.
Cas will send data in POST and raw JSON format from one of the following IP addresses::
- 20.2.69.168 (sandbox)
Delivery Attempts and Retries(17 attempts)
In cases where the http status is 4XX, 5XX, or no response within 30 seconds, Cas will send the webhook back to your system 17 times within 24 hours and the time interval after each call is based on fibbonanci.
Example:
Retry number | Interval |
---|---|
1 | 30s |
2 | 1m |
4 | 3m |
6 | 8m |
16 | 453m |
Request
Responses
- 200
Success