New

New in Pro: per-country and per-state age rules for WooCommerce checkout. See how it works

Pro Developer

Webhooks: connect Zapier, Make, n8n and Slack

Send signed events to automation tools when visitors pass, fail, upload an ID or trigger an order hold.

Updated · 2 min read

On this page

Add a webhook

Go to Age Verification → Integrations & Access. You can add up to 5 webhooks; https:// URLs are recommended.

  1. Create a catch URL in your tool:
    • Zapier: Webhooks by Zapier → Catch Hook
    • Make: Custom webhook
    • n8n: Webhook node
  2. Click + Add webhook, paste the URL and choose the events.
  3. Save, then click Send test event.
  4. Check the result under Recent deliveries.

Deliveries are sent after the visitor’s page has loaded, so they never slow it down.

Events

Event Fires when
verification.passed A visitor passes (high volume).
verification.failed A visitor is under age or enters an invalid age
idcheck.passed / idcheck.failed A provider returns a result (Stripe, Veriff, AgeChecker.Net, EU wallet / OpenID Connect)
identity.submitted An ID document is uploaded
identity.approved / identity.rejected An admin reviews a document
order.age_hold A WooCommerce order is held for age review
lockout A visitor is locked out after a failed check

Payload

Every delivery includes id, event, created_at (ISO 8601), site.name, site.url and a data object. Visitor events also carry country and ip_masked.

{
  "event": "order.age_hold",
  "data": {
    "order_id": 1042,
    "order_number": "1042",
    "age": 19,
    "required_age": 21,
    "edit_url": "https://example.com/wp-admin/..."
  }
}

Headers and signature

Each request carries X-AVP-Event, X-AVP-Delivery and X-AVP-Signature. The signature is sha256= followed by an HMAC-SHA256 of the raw request body using your signing secret. Compare it in constant time:

$expected = 'sha256=' . hash_hmac( 'sha256', file_get_contents( 'php://input' ), $secret );
if ( ! hash_equals( $expected, $_SERVER['HTTP_X_AVP_SIGNATURE'] ?? '' ) ) {
    http_response_code( 401 );
    exit;
}

Note: Always verify against the raw body, not re-encoded JSON — any change in spacing breaks the signature.

If deliveries fail, see Troubleshooting.