Skip to main content

Age Verification for Alcohol Delivery in Brazil: 2026 How-To

Selfie age estimation at $0.10 gates every Brazilian alcohol delivery order, with a document check at $0.15 for borderline ages. A selfie is a gate, not legal proof of age.

Age Verification for Alcohol Delivery in Brazil: 2026 How-To

Contents

In this guide

Jump to the part you need.

Brazilian alcohol delivery needs an age gate that still works when a courier is at a doorstep at 11pm. This guide is for product and operations teams building that gate: we recommend selfie age estimation at $0.10 per check on every order, with a document check at $0.15 when the model lands close to 18. The caveat up front: age estimation is a model prediction, not legal proof of age, so keep the document fallback in the same workflow.

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

Age verification for alcohol delivery in Brazil: the method, the price and the boundary
DecisionWhat we recommendPublished price
Default gate on every orderAge Estimation from a selfie, passive liveness included$0.10 per check
Predicted age close to 18ID Verification step in the same workflow$0.15 in a workflow, $0.20 on the standalone API
Confirm the person holding the documentFace Match 1:1 after document capture$0.05 per check
Full three-part KYC checkDocument, passive liveness, face match, device and IP$0.33 per check
Device and address riskDevice and IP Analysis inside the session$0.03 per check
Second factor by phonePhone Verification code, Brazil SMS$0.052 per code (carrier plus the $0.02 Didit fee)
Check without a documentNon-document lookup against the authoritative source for BrazilVariable by country
Free testingSandbox with static mock payloads$0.00, no credits consumed
Where a human decidesIn Review sessions and terminal document declinesYour own review queue

You can test the whole flow for free in the sandbox at business.didit.me, with no sales call. Developers who want an assistant to drive the work can connect the Didit MCP server. Every unit price behind this page is published on didit.me/pricing, and the documentation for the selfie route is at docs.didit.me.

What an age gate has to prove in Brazil

Configure your Brazil flow with an 18-year threshold, and have counsel confirm the local requirements that apply to your operation. A delivery order carries three age moments: the account that places it, the payment instrument, and the person who takes the bag at the door. Use the API to return a verification decision for the order, then enforce a separate courier handoff policy. The third is a handover step, and it only works if your courier staff have a written rule for it.

We see two separate problems in alcohol delivery, and they are usually treated as one. One is a verification problem you solve with an API. The other is a logistics problem you solve with a policy your courier staff follow, and the policy is short: no handover of alcohol without a match to the verified order. The API is what makes the match possible.

Data protection sits across both. Have counsel confirm your lawful basis for the identity data you collect, and how long you keep it. Configure the flow to pass the courier the minimum: a verified age result, not a birth date and a document number. Keep the decision and its warnings for the audit trail, and drop the images unless you have a reason to hold them.

The method we recommend

Run Age Estimation on a selfie at checkout, for every order, at $0.10 per check. Passive liveness is included in the same call, so a photo of a photo or a screen replay is declined in the same step. The published model numbers set the design rule: mean absolute error is 1.1 years at ages 16 and 17, and 1.9 years at ages 18 to 20, and the model classifies 96% of selfies correctly as under 18 or 18 and over. The closer a predicted age sits to 18, the less you should trust the gate, so send that narrow band to a document check.

There are two ways to wire it. Inside a workflow, age estimation runs as part of the Liveness step, and there is no separate age estimation workflow feature. As a one-shot server call, the standalone endpoint at POST /v3/age-estimation/ takes a selfie and returns the predicted age and the liveness score together. The document fallback is a separate step, documented at ID Verification on docs.didit.me.

There is a third route for customers who do not want to photograph a document: non-document lookup, where the customer types a national ID number plus a few details and Didit checks them against the authoritative source for that country. In Brazil the source checks the selfie itself and returns a verdict rather than a portrait, so a Liveness and Face Match step in the same workflow still run. The assurance tier is a data match, not a document inspection, and the price is variable by country.

Prerequisites

  • A Didit application and an API key, sent in the x-api-key header. A sandbox key skips processing and billing.
  • A workflow with the Liveness feature enabled and age estimation switched on, plus a decline threshold (default 18).
  • A stable identifier for the customer or the order to pass as vendor_data. It binds sessions to one entity and drives duplicate detection.
  • A place to receive results: a callback URL for the hosted flow, or a webhook destination subscribed to status.updated.
  • A capture surface: the hosted session.url, a web or mobile SDK, or your own selfie capture for the standalone endpoint.
  • For the fallback: front and back images of the RG, CNH or passport, uncropped with all four corners visible, at most 5 MB per file.
  • A manual review queue for anything that lands in In Review, run by your own operations team.

Step by step: add the age gate to a delivery flow

  1. Choose the gate per order type. Selfie age estimation for standard beer and wine orders, and a document check for high-value or repeat-dispute orders. Write the threshold down before you build: we configure 18 as the default, and the open question is how wide the fallback band around it is. Have counsel confirm the number that applies to your operation.

  2. Configure the workflow in the Business Console. Enable age estimation on the Liveness node and set age_estimation_decline_threshold, which defaults to 18. Age estimation is not a standalone workflow feature, so this node is where the check lives.

  3. Create a session. Call POST https://verification.didit.me/v3/session/ with workflow_id, vendor_data and a callback URL. The callback must sit on one of your allowed domains, or creation fails with a 400 on the callback field. Pass the order id in vendor_data so the decision can be matched to the delivery.

  4. Send the customer into the flow. Open the returned session.url, or mount the SDK in your app. The customer sees a face capture step, with the age check running inside it.

  5. Read the decision. Call GET /v3/session/{sessionId}/decision/. The age result lives at liveness_checks[].age_estimation on each Liveness entry, not in a top-level array.

  6. Or call the standalone endpoint when you already hold the selfie. If your app captures the face before checkout, one server call returns age and liveness together:

    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'
  7. Route the near-threshold orders to a document check. Add an ID Verification step to the same workflow, so the fallback is billed at the in-workflow price of $0.15 per check. If your app already holds the document images and you prefer a server call, the standalone endpoint takes minimum_age=18 at $0.20 per call:

    curl -X POST 'https://verification.didit.me/v3/id-verification/' \
    -H 'x-api-key: YOUR_API_KEY' \
    -F 'front_image=@./id_front.jpg' \
    -F 'back_image=@./id_back.jpg' \
    -F 'perform_document_liveness=true' \
    -F 'minimum_age=18' \
    -F 'expiration_date_not_detected_action=DECLINE' \
    -F 'invalid_mrz_action=DECLINE' \
    -F 'inconsistent_data_action=DECLINE' \
    -F 'preferred_characters=latin' \
    -F 'save_api_request=true' \
    -F 'vendor_data=user-123'
  8. Handle the webhook. Subscribe a destination to status.updated, verify the signature header X-Signature-V2 against the raw body before parsing JSON, and reject a timestamp older than 300 seconds. Return 2xx fast and update the order idempotently.

  9. Close the loop at the door. Show the courier only the outcome: alcohol released or refused. If your delivery partner also asks the courier to compare the face at the door with the verified order, that is your merchant handoff policy and a staff procedure. It is not an API result that Didit returns.

The customer-facing capture steps a user sees in a Didit verification flow
What the customer sees at checkout: a face capture step, then a decision. The age check runs inside it.

Expected output

A 200 from the standalone call returns the documented shape below. The numbers are placeholders for the values the model returns, not sample results:

{
  "request_id": "3f1c...",
  "age_estimation": {
    "status": "Approved",
    "method": "PASSIVE",
    "age_estimation": 25.4,
    "score": 92,
    "user_image": { "entities": [] },
    "warnings": []
  }
}

status is Approved only when the warnings array is empty. Any warning declines the call. The full status enum across Didit features is Not Started, In Progress, Approved, In Review, Declined, Abandoned and Kyc Expired.

A Liveness result for one session in the Didit Business Console
The same result in the Business Console. Age estimation sits on the Liveness entry, so ops can read it without touching the API.

Inputs and outputs

Age Estimation API fields you will use in an alcohol flow
FieldDirectionWhat it does
user_imageInput, requiredSelfie. jpg, jpeg, png, tiff or webp, max 5 MB. PDFs are not accepted.
age_estimation_decline_thresholdInput, default 18An estimated age below it adds AGE_BELOW_MINIMUM and declines.
face_liveness_score_decline_thresholdInput, default 30A liveness score at or below it adds LOW_LIVENESS_SCORE.
rotate_imageInputSet when captures may arrive sideways or upside down.
save_api_requestInput, default truePersists the call as an API session in the Console and emits status.updated.
vendor_dataInputYour identifier for the customer or the order.
statusOutputApproved only when warnings is empty.
age_estimationOutputPredicted age in years, or null with AGE_NOT_DETECTED.
scoreOutputPassive liveness score, 0 to 100.
warnings[]OutputAGE_BELOW_MINIMUM, AGE_NOT_DETECTED, LOW_LIVENESS_SCORE, NO_FACE_DETECTED, LIVENESS_FACE_ATTACK, MULTIPLE_FACES_DETECTED.

Failure cases and how to recover

  • HTTP 400, missing or oversized image, unsupported extension. The request never ran. Re-capture, check the extension and the 5 MB limit, then retry.
  • HTTP 403, not enough credits. The call is refused before any image processing. Top up and retry the same request.
  • Declined with AGE_BELOW_MINIMUM. The predicted age is below your threshold. Refuse the order, or, if your service policy allows one appeal, send it through the document path once and treat that decision as final.
  • Declined with LIVENESS_FACE_ATTACK or LOW_LIVENESS_SCORE. A presentation attack is suspected or the capture was unusable. Allow one retake, then refuse or route to review.
  • AGE_NOT_DETECTED. The model could not extract age from the image. Ask for a retake, do not treat it as an age failure.
  • NO_FACE_DETECTED or MULTIPLE_FACES_DETECTED. One clear, front-facing, well-lit face is the input rule. Improve the capture instructions.
  • Document check declines on DOCUMENT_EXPIRED, DOCUMENT_LIVENESS_FAILED or COULD_NOT_RECOGNIZE_DOCUMENT. Terminal. Show the first warning's description and stop the flow.
  • Document check returns In Review. Do not approve. Send it to a person on your own operations team, and treat a DOCUMENT_LIVENESS_NOT_COMPUTED warning as an unchecked document, not a pass.
  • Sandbox shows nothing. A sandbox key skips processing and billing and returns a static Approved mock with an age of 30 and no warnings. It proves the wiring, not your thresholds.
The extracted document fields and warnings for one session in the Didit Business Console
The fallback document check in the Console, with the extracted fields and every warning that drove the decision.
What is billed in an alcohol delivery age flow
StepWhen it is billedPrice
Age Estimation, standalone APIEach 200 response$0.10
Age Estimation inside a workflowEach completed check$0.10
ID Verification inside a workflowEach completed check$0.15
ID Verification, standalone APIEach completed call$0.20
Passive Liveness inside a workflowEach completed check$0.10
Face Match 1:1Each completed check$0.05
Device and IP AnalysisEach completed check$0.03

A human decides in three places. Any session in In Review is not an approval and must be queued in your own review process. Any terminal document decline is a refusal you may still handle with a service policy. Any dispute about a delivery goes back to the stored decision and its warnings, which is why save_api_request=true matters: with it, the call becomes a real session id you can look up later; without it, the id is a one-off correlation value that cannot be retrieved. Billing runs from prepaid credit, plan credit is spent first, and sandbox testing is free on every plan.

Worked cost example

Take 20,000 alcohol orders a month for a mid-size Brazilian app, with 15% of orders, so 3,000, landing close enough to 18 to need the document fallback. The other 17,000 clear on the selfie, and the fallback runs as an ID Verification step inside the same workflow at $0.15 per check. At list prices:

  • Age Estimation: 17,000 x $0.10 = $1,700.00
  • ID Verification for the fallback: 3,000 x $0.15 = $450.00
  • Total: $1,700.00 + $450.00 = $2,150.00 a month
  • Per order: $2,150.00 / 20,000 = $0.1075

On the Scale plan, with its 10% discount on every Didit price: 17,000 x $0.09 = $1,530.00, and 3,000 x $0.135 = $405.00, for $1,935.00 a month, which is $0.09675 per order. The $299 monthly plan fee is separate and comes with $350 of monthly credit, spent before any top-up. If you also send a WhatsApp code on every order at the Brazil rate of $0.0461 per code, add 20,000 x $0.0461 = $922.00. Every number above is a published unit price, and the full list is on didit.me/pricing.

At the door: the courier handoff

The API returns a verification decision for the order. Your courier policy handles the handoff. The handoff procedure below is a merchant policy your delivery operation writes and trains for. It is not something the API returns, and the API cannot verify a face at a doorstep. These are the practices we recommend:

  • Geolocation and service area. Confirm the delivery address is inside the area you serve and inside the hours your alcohol licence allows.
  • One handover rule. Alcohol leaves the bag only when the courier sees an ID that matches the verified order. No ID means no handover, with a stated refund policy.
  • Train for the documents you will actually see. Staff should know the document types your operation accepts and how to handle damaged or photographed copies.
  • Refuse third-party handovers. A neighbour or a building reception cannot receive alcohol for someone else's verified order unless your policy says they can and they pass their own check.
  • Keep the record. Store the decision, the timestamp and the warnings so an audit or a complaint can be answered without reconstructing the night.
  • Review the data regularly. Look at how many orders fall into the document fallback and how many decline. A spike in either is a signal about fraud, capture quality or a threshold set too tight.

If a coding agent or an assistant is doing the integration, the Didit MCP server at https://mcp.didit.me/mcp and the integration prompt at didit.me/developers/integration-prompt carry the same field names used above.

MCP setup for every client

Sources

The next step costs nothing: create an application at business.didit.me, switch age estimation on for a Liveness step, and run one test order through the sandbox end to end. Sandbox checks are free and no sales call is involved.

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 is the legal drinking age in Brazil for delivered alcohol?

We configure an 18-year threshold for Brazil and have counsel confirm the requirements that apply to each merchant. A delivery has two moments, the order and the handover, so write a door policy as well as an app rule. Keep the configured threshold and the door policy in one document so staff and code agree.

How does age verification work for an alcohol delivery order?

The customer takes a selfie at checkout. Didit estimates age from the face and runs passive liveness in the same call, returning a predicted age, a liveness score and a status. If the predicted age sits close to your threshold, the workflow sends the same customer into a document check before the order is released.

Can a selfie age estimate replace an ID document check?

No. Age estimation is a model prediction, not proof of age, and Didit's own API documentation says so. Use it as the gate that keeps cost and drop-off low, and keep a document check as the fallback for borderline ages, disputes and audits.

What is the best age verification solution for a delivery app in Brazil?

Compare candidates on published facts rather than on claims: the price per check, whether the gate runs on a selfie with no document, where a borderline result goes, and whether a free sandbox lets you test before you commit. We sell one of these solutions. On those criteria Didit publishes Age Estimation at $0.10, ID Verification at $0.15 in a workflow, and a full ID check at $0.33 per check, all on didit.me/pricing.

How much does age verification cost per order?

$0.10 when the selfie clears and $0.15 when the order needs the in-workflow document fallback. At 20,000 orders a month with 15% falling back to documents, that is 17,000 x $0.10 = $1,700.00 plus 3,000 x $0.15 = $450.00, or $2,150.00 a month, which is $0.1075 per order at list price.

What happens if the customer has no ID at the door?

The alcohol does not go out. The API returns a verification decision for the order. Your door policy handles the handoff. If the courier cannot complete the required handoff check, follow your refusal and refund policy.

Which warnings should make me reject an alcohol order?

AGE_BELOW_MINIMUM because the predicted age is below the threshold, LIVENESS_FACE_ATTACK or LOW_LIVENESS_SCORE because a presentation attack or an unusable capture is suspected, and NO_FACE_DETECTED because nothing usable was submitted. AGE_NOT_DETECTED is different: ask for a retake instead of rejecting.

How do I test declines before going live?

The standalone sandbox returns a static Approved mock with an age of 30 and no warnings, and consumes no credits, so it proves your wiring and not your thresholds. Session-based sandbox flows can be armed with a scenario slug from the sandbox catalog. Use sandbox scenarios to exercise decline handling, then validate live model behavior separately.

What is a Challenge 21 or Challenge 25 policy, and does it fit Brazil?

A Challenge 21 policy tells door staff to ask anyone who appears under 21 for ID, and Challenge 25 raises the line to 25. It is a training rule for humans, not a legal test. Keep the configured threshold as the number the app enforces, use the higher challenge line as a margin at the door, and have counsel confirm what applies locally.

Can I verify age without a document at all in Brazil?

Yes, through non-document lookup: the customer types a national ID number plus a few details and Didit checks them against the authoritative source for that country. In Brazil the source checks the selfie itself and returns a verdict rather than a portrait, so Liveness and Face Match steps still run. The assurance tier is a data match, not a document inspection, and the price is variable by country.

Can an AI assistant build this integration for me?

Yes. Didit runs an MCP server with OAuth sign-in at https://mcp.didit.me/mcp, and publishes an integration prompt a coding agent can follow end to end. The agent still needs your workflow id, your API key and your decision on where borderline ages go.

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.