If you are looking to integrate with Smartwaiver, feel free to refer to the best practice recommendations below.
Responding to a webhook
The endpoint should acknowledge the receipt of a webhook by returning a 2xx HTTP status code. Any other information returned in the request headers or request body is logged but will be ignored. All response codes outside this range (3xx, 4xx, 5xx), will indicate that you did not receive the webhook and the webhook will go into retry mode.
Why the HTTP POST Request Does Not Include More Information
To make development easier, we allow both HTTP and HTTPS Webhook URLs. If you use an HTTP URL, the communication to your server is not secure.
Therefore, it isn’t wise to include personal information. All the information can be securely accessed by calling our API (which exclusively uses HTTPS).
Important: API Keys are different than the Webhook Private Key.
Retries
If the HTTP POST Request fails or takes too long to connect (timeout of 5 seconds), Smartwaiver will try again every 5 minutes. If it fails five times that individual webhook will be canceled and a log will be created ([view log]) but future waiver’s webhooks will continue like normal.
If more than 50 webhooks fail in a row, webhooks will be disabled for your account and an email will be sent to the owner of the Smartwaiver account. You will be able to re-enable webhooks by logging in and resetting your Webhook URL.
Specify When Webhooks Fire
Waivers signed at a Smartwaiver Kiosk fire shortly after the waiver is submitted. Waivers signed and submitted remotely can fire either directly after being submitted or after the participant validates their email address. Select which option works best for you at: Webhook Config
Auto-Tagging
While sending auto-tags are an optional Smartwaiver feature, if you would like to send an auto-tag, please refer to the instructions within the API pre-fill documentation below:
Retrieving Data
To retrieve the data off the webhook call this endpoint( using the unique_id from the webhook):
Downloading Waiver Data
If you would like to download data for multiple waivers call this endpoint:
Related Articles:
- What are Webhooks?
- How do I implement up Auto-Tagging? (Advanced)
- How do I use Autofill to pre-populate fields?
See Also: