Allpass.ai
HomeWeb SiteTerms of ServicesPrivacy Policy
  • Introduction
  • Get Started
    • Sign Up and Sign In
    • Navigation
    • Test and Live Modes
    • Company Settings
    • Application
    • Work With the Team
      • User Roles and Permissions
      • Send Invites and Assign Roles
    • Notifications Settings
  • Build Verification Flows
    • Flow Builder Overview
    • Verification Steps
      • Intro
      • Document Check
      • Liveness
      • Facematching
      • Selfie With a Document
      • Email Verification
      • Phone verification
      • AML
      • Crypto Transaction and Wallet Check
      • Questionnaire
      • Final Screen
    • UI Customization
    • Duplicate Workflows
    • Workflow Drafts
    • Questionnaire Builder
  • Verify Your Users
    • Run Verification Flows
    • Receiving and Completing Verification
    • Restart the Verification Flow
    • Change the Verification Flow
    • Request Additional Information
    • Manual Compliance Check
    • Manual Crypto Transaction and Wallet Monitoring
  • Review Data
    • Verification Status
    • Review Process
    • Applicant Profile
      • Document Check
      • Liveness
      • Facematch
      • Selfie with the document
      • Email Verification
      • Phone Verification
      • AML check
      • Crypto Transaction and Wallet Check
      • Questionnaire
      • IP and Geo Data
    • Applicant Timeline
    • Deactivating and Activating Verification Results
    • Applicant Profile Deletion
  • Download Reports
  • Analytics Dashboard
  • Integration
    • Overview
    • Get Started
    • How to use
    • Installation
    • Initialize
    • Render
    • Webhooks
      • Applicant Webhooks
      • Webhook Timestamp Validation Requirement
    • Open API
    • Dictionary
      • Enums
      • Entities
      • Term & Abbreviations
      • Supported Countries & Documents
    • Encryption
  • TROUBLESHOOTING
    • IP Address Detected as VPN
    • Incomplete User Verification Flows
Powered by GitBook

© 2024 Allpass.ai by elKYC OU. All rights reserved

On this page
  • Overview
  • Potential Issue
  • Recommended Implementation
  • Conclusion
Export as PDF
  1. Integration
  2. Webhooks

Webhook Timestamp Validation Requirement

Overview

When integrating webhooks, it is mandatory to implement timestamp validation to prevent outdated data from overwriting newer updates. Due to the webhook retry mechanism, which attempts to resend requests in case of failures, there is a possibility that an older webhook event may be delivered after a more recent one.

Potential Issue

If timestamp validation is not implemented, an earlier event may update the system with outdated information, leading to data inconsistency and potential operational issues.

Recommended Implementation

To mitigate this risk, follow these steps when processing webhook events:

  1. Validate the timestamp: When receiving a webhook request:

    • Compare the incoming event's timestamp with the most recent processed event timestamp for the given entity.

    • Reject or ignore the event if its timestamp is older than the last recorded update.

  2. Use an idempotency mechanism: To further prevent duplicate processing, leverage an idempotency key or store processed event IDs to avoid handling the same event multiple times.

Conclusion

Timestamp validation is essential for ensuring that only the latest webhook events are applied to the system. By implementing this check, you can prevent outdated data from being processed and maintain data integrity even in cases where webhook delivery is delayed or retried.

PreviousApplicant WebhooksNextOpen API

Last updated 2 months ago