Webhook
Tolls Webhook URL
When setting up webhooks in our system for toll notifications, you will be asked to specify a URL where you would like to receive the webhook notifications.
Example Payload
Custom Fields are only sent if you have configured them in the webhook settings.
Parking Webhook URL
When setting up webhooks in our system for parking notifications, you will be asked to specify a URL where you would like to receive the webhook notifications.
Example Payload
Response Handling
Your endpoint should handle the incoming POST requests and respond with a 200 OK status code to acknowledge the successful receipt of the webhook.
Example Response
Security and Best Practices
- Ensure your endpoint is secured using HTTPS.
- Ensure you have duplicate logic handling for tickets identificaitons.
- Set up error handling to manage different types of webhook events and potential issues with payload processing.
Headers Information
When receiving webhook notifications, the following headers will be sent along with the payload:
Custom Configured Headers
Any headers specified in the webhook configuration settings.
Fleet-Specific Headers
- Ext-Client-Id: Provided if available from
customer_info
. - Ext-Billing-Id: Provided if available from
customer_info
.
Generic Headers
- Fleet-Id: The fleet ID associated with the webhook.
- X-Timestamp: A UNIX timestamp of when the webhook was sent.
- X-Signature: An HMAC SHA-256 signature generated using a secret key, the payload, and the timestamp for security verification.
Signature in Webhooks
To ensure the security and authenticity of the webhook notifications, a signature is generated and included in the headers of each webhook request. This signature allows the receiving endpoint to verify the integrity of the payload.
How the Signature is Generated
The signature is created using an HMAC SHA-256 hashing process that involves the following components:
- Secret Key: A shared key used to sign the payload.
- Data: The payload of the webhook.
- Timestamp: The UNIX timestamp representing when the webhook was sent.
The signature is generated using the following Python code: