Architecture
How TyreHub works
A walkthrough of the core flows, data model, and the rules engine that powers fitment routing and fulfilment allocation.
Four roles, one platform
Customer
Search, book, pay, track.
Fitment Centre
Accept jobs, update status.
Warehouse
Stock, allocate, dispatch.
Admin
Catalog, pricing, oversight.
End-to-end fulfilment workflow
STEP 01
Customer Order
Tyres/wheels selected
STEP 02
Stock Allocation
Nearest warehouse
STEP 03
Routing Decision
Centre · Mobile · Pickup
STEP 04
Delivery / Pickup
Logistics dispatch
STEP 05
Fitment Booking
Slot confirmed by centre
STEP 06
Job Completion
Status → completed
STEP 07
Notification
SMS + Email + Push
Fulfilment routing
Centre fitting
Order is shipped from the closest warehouse to the chosen centre. Centre confirms slot and updates job status.
Mobile fitting
Order is held at the warehouse. A mobile fitter is dispatched to the customer at the booked slot.
Pickup
Order is reserved for collection at the chosen warehouse. Customer notified when ready.
Rules engine
Each order is scored against a set of declarative rules. The engine returns the optimal warehouse, fitment partner, and slot.
WHEN cart.items > 0 AND fulfilment = 'centre'
→ FIND nearest centre WITH availability(date, slot)
WHEN fulfilment IN ('centre','pickup')
→ ALLOCATE stock FROM warehouse ORDER BY distance(customer)
WHEN stock < threshold AT primary_warehouse
→ FAILOVER → secondary_warehouse + adjust ETA
WHEN job.status = 'pending' AND elapsed > 15min
→ AUTO_REASSIGN to next-best centre
WHEN order.completed = true
→ TRIGGER notify(sms, email) + request_review
Data model
Product
• id
• brand
• type
• size
• price
• stock
• status
Order
• id
• customer
• items[]
• fulfilment
• centreId
• warehouseId
• status
FitmentCentre
• id
• lat/lng
• slots[]
• fee
• rating
Warehouse
• id
• city
• stockUnits
• capacity
Job
• orderId
• centreId
• slot
• jobStatus
Promo
• code
• discount
• active
Integration surface
Payments
Stripe, NAB Transact
Notifications
SMS + Email + Push
Maps
Mapbox geocoding & directions
Logistics
Freight & courier APIs