Genuine Product Verification API
Create products and batches of unique codes from your own systems, check a code inside your own app, and read scans, suspected fakes and consumer reports.
The documentation opens in the VerifyAll dashboard after sign-in, for accounts with approved API access. New to the API? Start with the developer guide.
Overview
What the Genuine Product Verification API does
The Genuine Product Verification API is the programmatic side of VerifyAll’s anti-counterfeit module. A brand adds its products, creates a batch of unique codes for a production run, downloads them as a print file and releases the batch; shoppers then check each pack by scanning its QR code at verifyall.ai/v. The API lets your ERP, packing line software or e-commerce site do the same steps without the dashboard.
Your own app or website can also check a code: send the code and, for batches with a hidden PIN, the PIN, and get back the same answer a shopper sees, with a verdict (for example genuine, suspect, unknown or recalled), the words to show in English and Hindi, the product and batch details, and the actions open to the shopper. Checks made through your key are recorded as API checks in your reports.
Reports are available through the same API: scans by day, state and city, suspected fakes with the reasons, codes that were never issued, consumer reports, warranty registrations and the loyalty ledger. Webhooks tell your systems when a code first turns suspect, when a shopper reports a problem, when a warranty is registered and when a batch’s codes are ready.
How it works
- 1
Your server creates a product with POST /genuine-products/products (name, category, size, MRP, photos, buy links and, if the product has one, its barcode number).
- 2
It creates a batch with POST /genuine-products/batches: product, batch number, dates, quantity, the kind of code (one per pack, one per batch or none) and whether to add a hidden PIN. The answer carries the charge; large batches are made in the background and a webhook says when the codes are ready.
- 3
It downloads the codes with GET /genuine-products/batches/{id}/codes/export as CSV or as a ZPL file for a label printer, prints them and releases the batch with POST /genuine-products/batches/{id}/status.
- 4
Shoppers scan the labels. Your app can check a code with POST /genuine-products/verify, and your systems read scans and suspected fakes from the report routes.
Request and response
Genuine product verification API endpoints and fields
The main fields; the full reference with every field, error code and a cURL sample is in the dashboard docs.
| Endpoint | What it does |
|---|---|
| POST/genuine-products/products | Add a product |
| POST/genuine-products/batches | Create a batch and its unique codes |
| POST/genuine-products/batches/{id}/codes/import | Import serial numbers you already print |
| GET/genuine-products/batches/{id}/codes/export | Download the codes as CSV or a label-printer file |
| POST/genuine-products/batches/{id}/status | Release, hold or recall a batch |
| POST/genuine-products/verify | Check a code from your own app or website |
| GET/genuine-products/scans | List scans with verdict, city and state |
| GET/genuine-products/reports/suspicious | Suspected fakes and codes never issued |
Request fields
| Field | What it is |
|---|---|
| codeRequired | For POST /genuine-products/verify: the code as printed or typed, or the full scan text. Spaces and dashes are ignored. |
| pinOptional | Optional. The 6-digit hidden PIN, for batches that have one. |
| device_idOptional | Optional. A stable random id for the phone or app install (8 to 64 characters), so repeat checks from one phone are told apart from other phones. |
What the answer returns
| Field | What it is |
|---|---|
| verdict / tone | The answer, for example genuine, genuine_seen, suspect, unknown, recalled or pin_required, and its tone: good, caution, bad or neutral. |
| text | The title and one sentence to show, in English (en) and Hindi (hi). |
| product / batch | The product name, size, MRP, photos and details, and the batch number with manufacture and expiry dates. |
| flags | expired and expires_soon. |
| facts | How often and where the code was checked before, when a PIN was confirmed, and a recall date and note. |
| actions | Buy links, and whether the shopper can report a problem, register a warranty or claim points. |
Base URL https://api.verifyall.ai. Authenticate with the X-API-Key header (a va_sandbox_ or va_live_ key). Every answer carries data, status_code, success, message and message_code; checks add outcome, checkResultId, charged and charged_amount.
Key features
Genuine Product Verification API features and capabilities
One code per pack
Each pack gets its own code, so a copied code shows up as checked by too many phones or in places far apart.
Hidden PIN
Add a 6-digit PIN per code for a scratch panel or the inside of the pack; the first correct PIN confirms the pack.
Recall in one call
Recall a batch with a note and every later check of its codes says so.
Webhooks
Hear when a code turns suspect, a shopper reports a problem, a warranty is registered or a batch’s codes are ready.
Use cases
Where businesses use the Genuine Product Verification API
Codes from your ERP
Create a batch of codes as each production run is planned, and download the print file for the packing line.
Checks inside your own app
Let customers or dealers check a pack inside your app, with the same answer as the VerifyAll scan page.
Dealer and mechanic programmes
Use the scan and points data in your own loyalty or sales software.
Brand protection reports
Pull suspected fakes and consumer reports into the tools your brand protection team already uses.
Industries
Coverage
Products of brands with approved Genuine Product Verification access. Shoppers can check codes from anywhere; reports group scans by Indian state and city.
Limitations to plan for
- Genuine Product Verification needs its own approval on your business account, as well as Developer API access.
- Only your own codes and barcodes can be checked through the API; anything else answers 404 and is not recorded.
- A code for a whole batch, or a barcode, can show product details but cannot prove that a particular pack is genuine.
- VerifyAll does not issue barcode numbers (GTINs); they come from GS1 India.
Integration
How to integrate the Genuine Product Verification API
From a business account to your first live call.
Step 1
Create a business account on VerifyAll and get it approved, as for running checks in the dashboard.
Step 2
Request Developer API access under Developers in the dashboard: the APIs you need, your expected monthly volume and your use case. The VerifyAll team reviews it and shares the API Services Agreement.
Step 3
Once the agreement is signed and access is approved, create your Sandbox key and build against sample data. Sandbox calls are never charged.
Step 4
Create your Production key, recharge your wallet and switch the key in your code: the endpoint and fields stay the same.
Get started
Request access to the Genuine Product Verification API
Tell us what you want to verify. We reply within one business day with access steps, Sandbox details and your API pricing.
View API documentation
The full reference for Genuine Product Verification API (endpoints, fields, errors, cURL) opens in the dashboard once your access is approved.
Open the docs (sign-in)Create a business account
API keys are issued to an approved business account. Sign up, then request access under Developers.
Create account
Pricing
Production calls are charged per check from your prepaid VerifyAll wallet, at your account’s API price; GST is added separately when you recharge. Sandbox calls are never charged. Your API prices are shown in the dashboard once access is approved. How pricing works
Already have a business account? Sign in to request access
Genuine Product Verification API: frequently asked questions
Answers for teams planning an integration.
Still have questions? Our team is happy to help.
Contact SupportRelated APIs
Hallmark (HUID) Verification API
LiveInstant answerSend the HUID stamped on a piece of jewellery and get back its purity, product, weight, hallmarking date, centre and jeweller.
GST Verification API
LiveInstant answerSend a GSTIN and get the business behind it: names, status, place of business and the returns it has filed, in one call.
Udyam Verification API
LiveInstant answerSend a Udyam registration number and confirm the enterprise, its MSME class, its activity and its units in one call.
All product verification APIsRun Genuine product verification in the dashboard, without codeBrowse the API Marketplace
Start with the Genuine Product Verification API
Request access, build against the Sandbox, then go live with your Production key.
