Verify webhook authenticity using HMAC SHA256 signature validation.
PHP
{"error":"Invalid signature"}
Header Validation
Validate API key and tracking code in webhook headers to ensure authenticity.
Validation Steps:
1. Check X-API-Key matches your API key
2. Verify X-Link-ID matches expected tracking code
3. Validate X-Signature using HMAC SHA256
4. Check X-Timestamp for replay attacks
5. Process webhook if all checks pass
Webhook Response
Your webhook endpoint must return appropriate HTTP status codes for proper delivery tracking.
Response Requirements:
• Return HTTP 200 for successful processing
• Return HTTP 401 for authentication failures
• Return HTTP 500 for processing errors
• Include JSON response body (optional)
• Respond within 30 seconds