Catalog search
Return phone models or filter by brand/model name from the catalog table.
This service powers the Quick Price used-phone workflow: model catalog lookups, historical buying analysis, and lead tracking from seller inquiries through purchase or rejection.
Return phone models or filter by brand/model name from the catalog table.
Insert a new phone model with price, storage, RAM, release year, and notes.
Show recent purchase records and average/min/max buying prices for a model.
Record a bought device in inventory with customer and pricing details.
Fetch open leads or all statuses, depending on the filter value.
Move a lead to bought, rejected, or pending while updating notes and offer price.
Every request should include the X-API-KEY header. When the key is missing or invalid, the API responds with HTTP 401 and a JSON error payload.
Preflight OPTIONS requests are supported automatically, and the API allows cross-origin access with permissive CORS headers for the Flutter app or browser clients.
Catalog insert
Lead creation
Response