- Backend: FastAPI app with all models, services, schemas, routes - Admin Panel: Next.js dashboard with all modules (CRM, POS, repairs, warranties, billing, notifications, etc.) - Ecommerce: storefront (submodule) + product catalog - AI Agents: .agents/ skill library for Antigravity IDE - Docs: architecture, billing, notification gateway markdown - Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
22 lines
592 B
Python
22 lines
592 B
Python
import requests
|
|
|
|
payload = {
|
|
"device_id": "DEV",
|
|
"terminal_id": "TERM-MAIN-01",
|
|
"store_id": "STORE",
|
|
"transactions": [{
|
|
"pos_transaction_id": "TX-123",
|
|
"local_sequence": 1,
|
|
"invoice_no": "INV-1",
|
|
"total_amount": 100.0,
|
|
"created_at": "2023-10-10T00:00:00Z",
|
|
"items": [{"variant_id": "V-1", "qty": 1, "unit_price": 100.0}]
|
|
}]
|
|
}
|
|
|
|
try:
|
|
res = requests.post("http://localhost:8000/api/v1/pos/sync", json=payload)
|
|
print("Status:", res.status_code)
|
|
print("Body:", res.text)
|
|
except Exception as e:
|
|
print("Error:", e)
|