Enter your Secret Super Admin API Key or Master Passkey to access real-time inventory synchronization.
Synchronize diamonds automatically from your external website link. The engine fetches the feed, validates diamond records, calculates price-per-carat, and upserts stones into the live database.
Ready to execute external sync...
POST directly to /api/v1/sync/inventory using your secret super admin account.
Upload inventory files in RapNet, Polygon, or standard diamond merchant CSV format.
| Stock Number | Shape | Carat | Color | Clarity | Price (USD) | Status | Action |
|---|---|---|---|---|---|---|---|
| Loading inventory... | |||||||
As filter options are informed later, you can add or tune dynamic filter dimensions here without code refactoring.
Use this secret key to automate inventory synchronization from your cron jobs, Python scripts, or ERP systems.
curl -X POST http://localhost:3000/api/v1/sync/inventory \
-H "X-Super-Admin-Key: sk_live_diamond_superadmin_9f82a1c47e0b5d92" \
-H "Content-Type: application/json" \
-d '{"diamonds":[{"stock_number":"STK-01","shape":"Round","carat":1.5,"color":"D","clarity":"VVS1","price":12000}]}'
import requests
url = "http://localhost:3000/api/v1/sync/inventory"
headers = {
"X-Super-Admin-Key": "sk_live_diamond_superadmin_9f82a1c47e0b5d92",
"Content-Type": "application/json"
}
payload = {
"mode": "upsert",
"diamonds": [
{
"stock_number": "AAL-OV-881",
"certificate_lab": "GIA",
"certificate_number": "249811234",
"shape": "Oval",
"carat": 2.01,
"color": "E",
"clarity": "VVS2",
"cut": "Excellent",
"price": 28400
}
]
}
response = requests.post(url, json=payload, headers=headers)
print("Sync Response:", response.json())
| Timestamp | Sync Type | Status | Received | Inserted | Failed | Duration |
|---|---|---|---|---|---|---|
| Loading audit logs... | ||||||