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
*For illustration – see dashboard for your actual stats.
qr_dodhytech_abc123xyz789...).X-API-Key: YOUR_KEY?api_key=YOUR_KEYcurl -H "X-API-Key: YOUR_KEY" \
https://qrcode.dodhytech.com/api/v1/account/info
| 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 |
/api/v1/qr/generate
{
"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"
}
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).{
"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"
}
/api/generate.php
Generate vector SVG or Base64 images for 1D Logistics/Retail barcodes and 2D Data Matrix codes.
{
"barcode_type": "code128",
"data": "SHIP-9842100-US",
"height": 70,
"scale": 2,
"show_text": true
}
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 militarydatamatrix: 2D Matrix ECC 200 for pharma & aerospace{
"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.
/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.
{
"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"
}
]
}
{
"success": true,
"label_count": 1,
"zpl_payload": "^XA\n^PW812\n^LL1218\n...^XZ\n",
"stream_ready": true
}
/api/verify.php
Cryptographic Anti-Counterfeit Verification for ERP scanners, automated WMS conveyors & mobile check-ins.
{
"serial": "SN-100042",
"signature": "e9a1b8274f8812c4",
"latitude": 41.8781,
"longitude": -87.6298,
"country": "United States"
}
{
"success": true,
"serial_number": "SN-100042",
"status": "genuine_first",
"is_genuine": true,
"anomaly": null
}
/api/assets.php
Synchronize equipment between Dodhytech CMMS and SAP PM or Oracle Maintenance Cloud.
# Query by Asset Tag
curl -H "Authorization: Bearer $KEY" \
https://qrcode.dodhytech.com/api/assets.php?tag=AST-1004
{
"success": true,
"asset": {
"asset_tag": "AST-1004",
"asset_name": "Centrifugal Chiller #2",
"status": "operational",
"next_maintenance_due": "2027-02-15"
}
}
Dodhytech automatically transforms Auto-ID scans into native SAP OData IDoc JSON and NetSuite SuiteTalk REST payloads.
{
"@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.
/api/v1/qr/{id}/scans
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"
}
]
}
/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}
]
}
$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);
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));
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())
| 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 |
# 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