Auto-ID 2.0
Navigation
Home Features Pricing How It Works
Industrial Auto-ID & Studios
Barcode Studio (1D/2D) GS1 Digital Link (Sunrise 2027) Thermal Label Studio (ZPL) Anti-Counterfeit Hub (HMAC) Asset Tracking CMMS Live QR Scanner Developer API Documentation & Help
Sign In Get Started Free

REST API Documentation

Integrate dynamic QR code generation, scan tracking, and analytics into your own applications.

Base URL: https://qrcode.dodhytech.com/api/v1/ Rate limit: 1000 req/hour Auth: API Key

Platform at a glance
Active integrations500+*
QR codes generated10M+*
Uptime SLA99.9%*

*For illustration – see dashboard for your actual stats.

Authentication

1. Get your API key
  1. Log in to your account.
  2. Go to Dashboard → Settings → API Keys.
  3. Click "Generate New API Key".
  4. Copy and store it securely (example: qr_dodhytech_abc123xyz789...).
Send your key
  • Recommended: HTTP header X-API-Key: YOUR_KEY
  • Alternative: Query parameter ?api_key=YOUR_KEY
Test your key (cURL)
curl -H "X-API-Key: YOUR_KEY" \
  https://qrcode.dodhytech.com/api/v1/account/info

Endpoints overview

Method Endpoint Description Auth
POST /qr/generate Create a single QR code with optional tracking Required
GET /qr/{id} Fetch QR code details and stats Required
GET /qr/{id}/scans Retrieve scan history and analytics Required
POST /qr/bulk Create multiple QR codes in one request Required
GET /account/info View your plan, limits, and usage Required
GET /account/qrs List your QR codes with pagination Required

Generate QR codes

POST /api/v1/qr/generate
Request body (JSON)
{
  "url": "https://your-menu.com",
  "name": "Restaurant Menu",
  "size": 300,
  "color": "#000000",
  "background": "#FFFFFF",
  "track_scans": true,
  "redirect_url": "https://yourdomain.com/track?id={QR_ID}",
  "expires_at": "2026-12-31 23:59:59"
}
Important fields
  • url (required): Destination URL when QR is scanned.
  • track_scans: Enable analytics for this QR.
  • size: Pixel size, typical range 200–600.
  • expires_at: Optional expiry (UTC datetime).
200 OK Success response
{
  "success": true,
  "qr_id": 12345,
  "qr_url": "https://qrcode.dodhytech.com/qr/12345.png",
  "svg_url": "https://qrcode.dodhytech.com/qr/12345.svg",
  "track_url": "https://qrcode.dodhytech.com/track/12345",
  "scan_count": 0,
  "unique_scans": 0,
  "created_at": "2025-12-12T10:30:00Z"
}

Industrial Barcode API (1D & 2D)

POST /api/generate.php

Generate vector SVG or Base64 images for 1D Logistics/Retail barcodes and 2D Data Matrix codes.

Request Body (JSON)
{
  "barcode_type": "code128",
  "data": "SHIP-9842100-US",
  "height": 70,
  "scale": 2,
  "show_text": true
}
Supported Barcode Types
  • code128: Logistics, SSCC-18, inventory (ASCII)
  • ean13: Global retail packaging (12 or 13 digits)
  • upca: North American retail (11 or 12 digits)
  • itf14: Interleaved 2 of 5 for master cartons (14 digits)
  • code39: Alphanumeric industrial and military
  • datamatrix: 2D Matrix ECC 200 for pharma & aerospace
200 OK Barcode Response
{
  "success": true,
  "barcode_type": "code128",
  "data": "SHIP-9842100-US",
  "svg": "<svg xmlns=...>...</svg>",
  "data_uri": "data:image/svg+xml;base64,PD94bW..."
}

The returned svg is prepress vector quality, suitable for embedding directly in web pages, label streams, or commercial print files.

Enterprise ERP Connectors & High-Throughput REST APIs

POST /api/labels.php

Batch-generates multi-label Zebra ZPL II ASCII streams (4"x6", 3"x2", 2"x1") for raw network printer socket piping (port 9100) and warehouse spoolers.

Request Body (JSON)
{
  "preset": "4x6",
  "dpi": 203,
  "items": [
    {
      "tracking_number": "1Z99999901",
      "shipper_name": "CENTRAL DC DOCK 4",
      "consignee_name": "RETAIL STORE #104",
      "po_number": "PO-99412",
      "sku": "SKU-PRO-X",
      "qty": "200 PCS"
    }
  ]
}
Response
{
  "success": true,
  "label_count": 1,
  "zpl_payload": "^XA\n^PW812\n^LL1218\n...^XZ\n",
  "stream_ready": true
}
POST /api/verify.php

Cryptographic Anti-Counterfeit Verification for ERP scanners, automated WMS conveyors & mobile check-ins.

Request Body (JSON)
{
  "serial": "SN-100042",
  "signature": "e9a1b8274f8812c4",
  "latitude": 41.8781,
  "longitude": -87.6298,
  "country": "United States"
}
Response
{
  "success": true,
  "serial_number": "SN-100042",
  "status": "genuine_first",
  "is_genuine": true,
  "anomaly": null
}
GET POST /api/assets.php

Synchronize equipment between Dodhytech CMMS and SAP PM or Oracle Maintenance Cloud.

Lookup Example
# Query by Asset Tag
curl -H "Authorization: Bearer $KEY" \
  https://qrcode.dodhytech.com/api/assets.php?tag=AST-1004
Response
{
  "success": true,
  "asset": {
    "asset_tag": "AST-1004",
    "asset_name": "Centrifugal Chiller #2",
    "status": "operational",
    "next_maintenance_due": "2027-02-15"
  }
}
CONNECTORS SAP S/4HANA & Oracle NetSuite

Dodhytech automatically transforms Auto-ID scans into native SAP OData IDoc JSON and NetSuite SuiteTalk REST payloads.

SAP S/4HANA OData Format
{
  "@odata.context": "$metadata#MaterialDocumentHeader",
  "GoodsMovementCode": "01",
  "ReferenceDocument": "SN-100042",
  "to_MaterialDocumentItem": [
    { "Material": "WIDGET-X", "Plant": "1000", "QuantityInEntryUnit": "1" }
  ]
}

Sub-50ms Conveyor Routing: Sortation scanner redirections execute in <3ms via edge-cached memory buffers.

Scan analytics

GET /api/v1/qr/{id}/scans
Query parameters
  • date_from, date_to (optional filters)
  • limit (default 50, max 200)
  • page (for pagination)
{
  "success": true,
  "qr_id": 12345,
  "total_scans": 127,
  "unique_visitors": 89,
  "scans": [
    {
      "ip_address": "103.45.67.89",
      "location": "Lahore, Pakistan",
      "device_type": "mobile",
      "browser": "Safari",
      "scanned_at": "2025-12-12T10:30:45Z"
    }
  ]
}
GET /api/v1/qr/{id}/analytics/summary

Get a summarized view for dashboards:

{
  "success": true,
  "today_scans": 15,
  "week_scans": 127,
  "month_scans": 456,
  "top_locations": [
    {"city": "Lahore", "count": 89},
    {"city": "Karachi", "count": 34}
  ],
  "top_devices": [
    {"type": "mobile", "count": 112},
    {"type": "desktop", "count": 15}
  ]
}

Code examples

PHP
$apiKey = 'YOUR_KEY';
$data = ["url" => "https://google.com", "name" => "Test QR"];

$ch = curl_init('https://qrcode.dodhytech.com/api/v1/qr/generate');
curl_setopt_array($ch, [
  CURLOPT_POST => true,
  CURLOPT_POSTFIELDS => json_encode($data),
  CURLOPT_HTTPHEADER => [
    'Content-Type: application/json',
    'X-API-Key: '.$apiKey
  ],
  CURLOPT_RETURNTRANSFER => true
]);
$response = json_decode(curl_exec($ch), true);
JavaScript (Fetch)
const apiKey = 'YOUR_KEY';
fetch('https://qrcode.dodhytech.com/api/v1/qr/generate', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-Key': apiKey
  },
  body: JSON.stringify({ url: 'https://google.com', name: 'Test QR' })
}).then(r => r.json())
  .then(d => console.log(d.qr_url));
Python (requests)
import requests

headers = {'X-API-Key': 'YOUR_KEY'}
data = {'url': 'https://google.com', 'name': 'Test QR'}

r = requests.post(
  'https://qrcode.dodhytech.com/api/v1/qr/generate',
  json=data, headers=headers
)
print(r.json())

Error handling

HTTP Error code Description Action
401 INVALID_API_KEY Key missing, invalid, or expired Generate a new key in dashboard
429 RATE_LIMIT_EXCEEDED Too many requests in current window Reduce frequency or upgrade plan
402 QR_LIMIT_EXCEEDED Reached QR creation limit Upgrade to higher plan
404 QR_NOT_FOUND QR ID does not exist or not yours Check qr_id and ownership
400 INVALID_REQUEST Missing or invalid fields Validate JSON and required fields

Quick start in 3 commands

Copy & run
# 1. Set your API key
API_KEY="YOUR_KEY"

# 2. Test connection
curl -H "X-API-Key: $API_KEY" \
  https://qrcode.dodhytech.com/api/v1/account/info

# 3. Generate a QR code
curl -H "X-API-Key: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://google.com","name":"Test QR"}' \
  https://qrcode.dodhytech.com/api/v1/qr/generate
AI Assistant