Skip to main content

UK Age Gating for Vape and Tobacco Retailers: Compliance and Tech

A UK vape or tobacco retailer needs an 18+ gate at checkout. Didit Age Estimation checks a selfie for $0.10, with ID Verification at $0.15 in a workflow, or a full ID check at $0.33 when you need biometrics and device data, for.

UK Age Gating for Vape and Tobacco Retailers: Compliance and Tech

Contents

In this guide

Jump to the part you need.

This guide is for UK online retailers selling vapes, e-liquids, tobacco or nicotine products who need an 18+ gate. The method we recommend is selfie age estimation at $0.10 per check, with a document fallback: ID Verification at $0.15 in a workflow, or the full ID check at $0.33 when you also need face match and device data. The caveat: a model estimate is a risk signal, not legal proof of age, so borderline shoppers still need a document.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

What each stage of a UK vape and tobacco age gate costs
StageDidit moduleList price (USD)What you act on
1. Selfie age gateAge Estimation, inside the Liveness step or the standalone API$0.10 per checkEstimated age in years, passive liveness score, warning codes
2. Document fallbackID Verification with a minimum age of 18$0.15 in a workflow, $0.20 through the standalone APIDate of birth from the document, MIN_AGE_NOT_REACHED warning
3. Face to document matchFace Match 1:1$0.05 per checkWhether the selfie and the document portrait are the same person
4. Device and networkDevice and IP Analysis$0.03 per checkIP risk attached to the session
5. One bundle for bothFull ID check (KYC)$0.33 per completed checkDocument plus biometrics plus device and IP in one result

Start free in the sandbox at https://business.didit.me/, no sales call. Developers who work from an AI assistant can connect Didit through the MCP server at https://didit.me/developers/mcp/. The age estimation method and its full field list sit at docs.didit.me/core-technology/age-estimation/overview. The document fallback is documented at docs.didit.me/core-technology/id-verification/overview, and every public price is on the Didit pricing page.

The outcome, and the method we recommend

You end with one gate on the checkout page that returns one of three answers per order: pass, fail, or send the shopper to a document check. The decision is stored, the warnings are recorded, and your order system receives the result.

The method: a Didit workflow built around a Liveness step with age estimation enabled. It asks for a selfie and returns an estimated age plus a passive liveness score. For shoppers who need a document, use the documented ID Verification route. In hosted Didit flows, age estimation is embedded inside the Liveness step. There is no separate age estimation workflow feature to add.

Conditional routing is implemented by your application unless documented workflow branching is available for your case. The hosted workflow docs do not describe an automatic branch based on the age estimate. Your checkout reads the age result, applies your policy, and creates a second session with the ID Verification workflow when the shopper needs the document fallback. If your policy requires every shopper to complete both steps, put Liveness and ID Verification in one workflow instead, and accept that both steps run for everyone.

We recommend this order because of how the errors line up. The age estimation model has a mean absolute error of 1.1 years for 16 and 17 year olds and 1.9 years for 18 to 20 year olds, and it classifies 96% of selfies correctly as under 18 or 18 and over. The published performance supports using age estimation as an initial gate with a document fallback. It is not legal proof, so a shopper close to the line still goes to a document.

Age verification for tobacco and vapes: what UK law asks

Age limits and duties vary by product and UK nation. Check current GOV.UK guidance and the applicable legislation before relying on an age-gating policy. This is a summary, not legal advice.

Local trading standards services enforce age restricted sales. Current trading-standards guidance frames the operational question after an underage sale as what you did to prevent it: what check ran, what it returned, when it ran, and what your staff did with a failed result. A date of birth field and an 'I am over 18' checkbox are self declaration. The shopper types the answer you want, and you have no evidence to show afterwards.

Three things follow for an online shop:

  • Set the check timing in your compliance policy after confirming current guidance for each UK nation, and document when the check runs relative to payment and dispatch.
  • Keep the decision, not just the outcome. A screenshot of an approved badge proves less than a stored session with its warning codes and timestamp.
  • Write down the rule for the borderline shopper. If your policy is 'document check when the estimate is near 18', that policy is part of your due diligence and should be visible to staff.

The same logic applies to vape hardware, e-liquid, pouches and rolling tobacco. If the product cannot be sold to a person under 18 in a shop, the online sale needs a gate.

Prerequisites

  • A Didit account. The Free plan gives $10 of credit a month to eligible organizations that sign up with a work email, and the sandbox is free and unlimited on every plan. Unused monthly credit does not roll over.
  • An API key from the Business Console.
  • A workflow with a Liveness step that has age estimation enabled, and your 18 threshold set through age_estimation_decline_threshold.
  • A second workflow with ID Verification and its minimum age set to 18, for the document fallback. If your policy requires one combined workflow, put both steps in the same workflow instead.
  • An HTTPS callback URL on one of your application's allowed domains, so Didit can return the shopper to your checkout.
  • A server endpoint that can receive a webhook and verify an HMAC-SHA256 signature.

Step by step: put an age gate in front of checkout

  1. Build the age workflow. Add the LIVENESS feature, enable age estimation on it, and set age_estimation_decline_threshold to 18. The default is already 18, so change it only if you sell a product with a different limit.
  2. Build the document workflow. Create a second workflow with ID Verification and set its minimum age to 18. The document check returns the warning MIN_AGE_NOT_REACHED and declines when the document date of birth is under the limit. This is the documented route for a document fallback.
  3. Collect the values. Copy each workflow_id (a stable UUID) and your API key from the console. Keep the key on your server, never in the browser.
  4. Create a session per order. Call POST https://verification.didit.me/v3/session/ with the age workflow's workflow_id, vendor_data set to your order reference, and callback set to your return URL. The response gives you session_id and session_url. The docs for this endpoint are at docs.didit.me/sessions-api/create-session.
  5. Send the shopper to the check. Redirect to session_url, or mount the Web or Mobile SDK if you want the flow inside your own page. The shopper sees a selfie prompt and, if your application routes them there, a document scan.
  6. Read the decision. Call the decision endpoint from your server when the shopper returns, and branch on session_kind first. Age results sit at liveness_checks[].age_estimation, one entry per Liveness step, not in a top level age array.
  7. Route in your application. If the result is Approved and the estimate clears your policy band, release the order. If it is Declined with AGE_BELOW_MINIMUM, block the sale. If the estimate sits in your borderline band, create a second session with the ID Verification workflow. This routing is application logic. The Didit workflow docs do not describe an automatic conditional branch based on the age estimate.
  8. Subscribe to the webhook. Register a destination for status.updated. Verify X-Signature-V2 with HMAC-SHA256 over the canonical JSON, check that X-Timestamp is within 300 seconds, and return a 2xx fast. Re-fetch the decision if you need the full payload.
  9. Act on three outcomes. Approved: release the order. Declined: block the sale and show a neutral message. In Review: hold the order for a person on your team, never auto-approve it.
The first screen of the selfie check, explaining the face capture to the shopper
The shopper's first screen in the selfie age gate. One photo, no document, in the common case.

Runnable example: a single selfie check from the command line

If your checkout already holds the selfie, for example a capture from a native app, you can skip the session and call the standalone endpoint. This is the exact call from the Didit docs.

curl -X POST 'https://verification.didit.me/v3/age-estimation/' \
-H 'x-api-key: YOUR_API_KEY' \
-F 'user_image=@./selfie.jpg' \
-F 'age_estimation_decline_threshold=18' \
-F 'save_api_request=true' \
-F 'vendor_data=user-1234'

The image must be jpg, jpeg, png, tiff or webp, up to 5 MB. PDFs are not accepted. When more than one face is in the frame, the largest face drives the result, which is another reason to ask for a solo photo.

The face capture screen while the selfie is being analysed
Capture and analysis in one step. Passive liveness runs in the same call as the age estimate.

Expected output

A successful call returns HTTP 200 with a request_id and an age_estimation object. That object carries a status, a method of PASSIVE, the predicted age_estimation as a float in years, a liveness score from 0 to 100, and a warnings array.

The decision logic is strict in a useful way: status is Approved only when the warnings array is empty. Any warning declines. Three conditions produce a decline on their own: a liveness score at or below face_liveness_score_decline_threshold (default 30), a predicted age below age_estimation_decline_threshold, or no face found. A detected presentation attack declines too.

In the sandbox, API keys skip processing and billing. After request validation, the endpoint returns a static Approved payload with an age estimate of 30 and no warnings, and no session is stored. That lets you test the integration and the decline branches in your own code before you touch a live key.

The Didit Business Console showing the liveness result of a session
The same decision in the Business Console, where a reviewer can read the liveness result and its score.

Failure cases and how to recover

What each failure means and what your checkout should do next
What you seeWhyWhat to do
HTTP 400Missing or oversized user_image, a PDF, or an unsupported extensionCheck the file type and size before upload, then ask for a new selfie
HTTP 403, not enough creditsThe organization balance cannot cover the callTop up. The refusal happens before any image processing, so no shopper data is used
HTTP 429More than 300 write requests a minute on that API keyStay within the documented shared write budget of 300 requests a minute per API key. If you exceed it, handle the 429 before retrying
Declined with AGE_BELOW_MINIMUMThe estimate is below your thresholdBlock the sale. Do not offer a retry loop, since a retry only searches for a different answer
Declined with LOW_LIVENESS_SCORELiveness score at or below the threshold, often a dim or blurry photoOffer one retake with guidance, then send the shopper to the document route
Declined with LIVENESS_FACE_ATTACKA presentation attack was detected, such as a photo of a photo or a screen replayTreat it as fraud, not as a camera problem
Declined with AGE_NOT_DETECTEDThe model could not extract an age, usually image qualityAsk for a retake
Declined with NO_FACE_DETECTEDNo face in the frameAsk for a retake with the face centred
Declined with MULTIPLE_FACES_DETECTEDMore than one person in the photoAsk for a solo photo
In ReviewThe workflow or a document warning routed the session to manual reviewA person on your side decides. Do not approve automatically

Record the warning code next to the order. The docs do not promise fraud scoring beyond the returned warnings; the value is in having a timestamped record for review and for your due diligence file.

Inputs and outputs

Fields you send and fields you act on for the selfie age gate
DirectionFieldTypeNotes
Senduser_imagefileRequired. jpg, jpeg, png, tiff or webp, max 5 MB, no PDF
Sendage_estimation_decline_thresholdnumberDefault 18. Set this to your UK age of sale
Sendface_liveness_score_decline_thresholdnumberDefault 30. Raise it to be stricter on photo quality
Sendsave_api_requestbooleanDefault true. Set false and request_id is a one-off UUID you cannot look up later
Sendvendor_datastringYour order or customer reference, echoed back in the result and the webhook
Sendrotate_imagebooleanSet true when captures may arrive sideways or upside down
ReceivestatusenumNot Started, In Progress, Approved, In Review, Declined, Abandoned, Kyc Expired
Receiveage_estimation.age_estimationfloatPredicted age in years, null when no age could be estimated
Receiveage_estimation.scorenumberPassive liveness score, 0 to 100
Receiveage_estimation.warningsarrayRisk codes such as AGE_BELOW_MINIMUM or LIVENESS_FACE_ATTACK
Receiverequest_idUUIDA real session id when save_api_request is true, usable at the decision endpoint

Billing is per completed check, from prepaid credit. A 200 response consumes one Age Estimation credit at $0.10, and that includes a Declined response. A shopper who fails the gate still costs you $0.10, so budget for failed attempts rather than for orders. The document fallback bills at $0.15 inside a workflow or $0.20 through the standalone upload API. A full ID check bundles document, passive liveness, face match and device and IP at $0.33.

What we do not do: we do not decide whether your shop is compliant. Didit returns a status and a set of warning codes. Your team sets the threshold, writes the retry and fallback policy, decides what to do with In Review sessions, and keeps the record. A Didit decision is evidence for your due diligence file, not a certificate that replaces it. Customers on a Free plan get $10 of credit a month, and the sandbox never bills, so you can test the whole path before you pay anything.

We publish every price on the pricing page and in the pricing docs, and 4,000+ companies run on the platform today.

Worked cost example

A shop taking 10,000 orders a month, where 8,500 shoppers clear the selfie gate and 1,500 need a document. This example prices the fallback as a full ID check at $0.33, so it includes document, passive liveness, face match and device and IP.

Monthly cost at list prices, arithmetic shown
LineVolumeUnit priceCost
Selfie age estimation10,000 checks$0.1010,000 x $0.10 = $1,000.00
Document fallback, full ID check1,500 checks$0.331,500 x $0.33 = $495.00
Total at list price10,000 ordersblended $0.1495$1,000.00 + $495.00 = $1,495.00

The $0.33 is itself a sum: ID document $0.15 + passive liveness $0.10 + face match 1:1 $0.05 + device and IP $0.03 = $0.33.

If you run only ID Verification in a workflow for the fallback, the list price is $0.15. The same 1,500 document checks cost 1,500 x $0.15 = $225.00, for a total of $1,000.00 + $225.00 = $1,225.00. Through the standalone upload API, ID Verification is $0.20, so 1,500 checks cost 1,500 x $0.20 = $300.00, for a total of $1,000.00 + $300.00 = $1,300.00.

On the Scale plan, Didit prices carry a 10% discount, and carrier or Meta charges are not part of this. Age estimation becomes $0.09: 10,000 x $0.09 = $900.00. The full ID check becomes $0.297: 1,500 x $0.297 = $445.50. Total $900.00 + $445.50 = $1,345.50, a blended $0.1346 per order.

For a smaller shop at 1,000 orders a month with the same 85 to 15 split: 1,000 x $0.10 = $100.00 for the selfie gate, 150 x $0.33 = $49.50 for documents, $149.50 in total.

Sources

Next step: open the sandbox at https://business.didit.me/, create a workflow with Liveness and age estimation enabled, and run one selfie through the test key. No sales call is needed, and the sandbox does not bill.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

What age verification do UK vape and tobacco retailers need online?

Age limits and duties vary by product and UK nation. Check current GOV.UK guidance and the applicable legislation before relying on an age-gating policy. In England and Wales, see section 7 of the Children and Young Persons Act 1933 for tobacco, and sections 91 and 92 of the Children and Families Act 2014 plus the Nicotine Inhaling Products (Age of Sale and Proxy Purchasing) Regulations 2015 for nicotine inhaling products. Scotland and Northern Ireland have their own instruments, so check the consolidated text for the nation you sell into.

Is a date of birth field or an 'over 18' checkbox enough for age verification?

No. A checkbox only records what the shopper chose to type. A due diligence file needs evidence of a check that was outside the shopper's control, with a timestamp and a result. That is what an age estimation call or a document check produces.

How accurate is selfie age estimation at the 18 threshold?

Didit Age Estimation has a mean absolute error of 1.1 years for 16 and 17 year olds and 1.9 years for 18 to 20 year olds, and it classifies 96% of selfies correctly as under 18 or 18 and over. That accuracy is strongest exactly where an age gate decides. It is still a model estimate, so keep a document fallback for shoppers near the line.

What should happen when the estimated age is close to 18?

Your application sends that shopper to the ID Verification route, where the document date of birth decides and a failure returns MIN_AGE_NOT_REACHED. Face Match 1:1 then confirms the person holding the document is the person in the selfie. Your threshold on the Liveness step controls how wide that borderline band is, and the routing itself is application logic unless documented workflow branching is available.

Can someone beat a selfie age check with a photo, a screen or a mask?

Passive liveness runs in the same call as the age estimate, needs no user action, and returns a score from 0 to 100. A score at or below the decline threshold produces LOW_LIVENESS_SCORE, and a detected presentation attack produces LIVENESS_FACE_ATTACK. Either one declines the session.

How much does an age gate cost per check?

Age Estimation is $0.10 per check and every 200 response bills, including a Declined one. A full ID check is $0.33 when you need the document route. A shop taking 10,000 orders a month where 15% need a full ID check pays $1,495.00 at list price.

Does Didit keep the shopper's selfie?

By default yes. save_api_request defaults to true, so the call is stored as a session in the Business Console with a real request_id, the face crop and reference image are kept, and a status.updated webhook fires. Set it to false and nothing is stored, but the request_id becomes a one-off UUID you cannot look up later, which weakens your audit trail.

Can I add this to Shopify or WooCommerce?

Didit's docs describe four integration routes: the hosted session_url, the Web and Mobile SDKs, the REST API and webhooks. There is no documented platform connector for a storefront plugin. A plugin you build or buy would wrap the session API and pass your order id as vendor_data.

What should I keep for a due diligence file?

Keep the order reference you passed as vendor_data, the session_id, the final status, the warning codes, and the timestamp. For an In Review session, keep the review activity and the decision reason returned by Didit, since a reviewer name may not always be available. The session itself stays retrievable in the Business Console.

How fast is the check for a shopper at checkout?

Didit reports a sub-2-second p99 for inference. The age estimation call accepts one front-facing, well-lit photo.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.