Register your webhook URLs
Webhooks are currently registered when you call APIs via thecallbackUrl field.
Webhook Structure
All webhooks have the same payload structure.event: the name of the eventdata: event data specific to the event being sent
Webhook Retries
Always acknowledge a webhook instantly by responding with2xx, else it will be considered as failed. Failed webhooks are retried with constant backoff for a maximum of 3 times with a delay of 1 minute.
Webhook Security
To ensure you are receiving webhooks from Tender, you can define custom headers that will be included with every webhook request. These headers allow you to verify that the webhook is originating from Tender and not from a malicious source.Setting Custom Headers
When registering a webhook via the API, you can specify custom headers that Tender will include in all webhook requests:Verifying Custom Headers
On your webhook endpoint, verify the custom headers to ensure the request is from Tender:Best Practices
- Use strong, randomly generated values for your custom headers
- Keep your custom header values secret and secure
- Rotate your webhook secrets periodically
- Always validate the custom headers before processing webhook data
- Consider using multiple headers for additional security layers