Pricing
Buyback pricing tells you what to pay for a device based on its model and condition.
Where the data lives
Table: automation__currentBuyPricing
Each row has:
sku— unique identifiermanufacturer,model,capacity,carrier,connectivity- Five condition prices: broken, poor, average, excellent, new
Pricing is updated automatically by the pricing automation — see automation/analyze-price-changes.php.
Lookups
From the portal/admin: use the device selector (make → model → capacity → carrier) — the UI auto-looks up pricing.
From the API:
curl "https://api.spectradiag.com/api/v1/buyback/pricing/lookup?make=Apple&model=iPhone%2013&storage=128GB" \
-H "Authorization: Bearer spk_live_xxx"Condition grades
| Grade | Column | Description |
|---|---|---|
| New | conditionnewprice | Sealed or never used |
| Excellent | conditionexcellentprice | Like new, minimal wear |
| Average | conditionaverageprice | Normal wear, fully functional |
| Poor | conditionpoorprice | Heavy wear but functional |
| Broken | conditionbrokenprice | Damaged, won't power on, etc. |
Fuzzy matching
If the exact model isn't found, the API returns "suggestions" — similar models that might match. Useful when intake data has typos or slight naming variations.
Overrides
Individual devices can override the automated price via commerce__inventory.listPrice. This is useful when a device has unusual condition that doesn't fit standard grades.
Related features
- Quotes — apply pricing to a quote
- Device Inspection — set the grade that determines price