Tracking-first MVPMột cockpit gọn để kiểm tra affiliate cashback end-to-end với Accesstrade.
App này ưu tiên chứng minh phần khó nhất trước: link tạo ra phải redirect đúng, sub_id phải quay về order, và dashboard phải cộng cashback theo đúng user.
Quick flow5 bước để xác minh tracking đang sống thật
1
Tạo user test hoặc dùng user seeded sẵn.
2
Tạo tracking link với product URL và sub_id riêng cho từng click.
3
Mở short link để hệ thống ghi nhận click và redirect qua affiliate URL.
4
Sync order thật hoặc import order mock để match theo sub_id.
5
Xem cashback pending và confirmed trên dashboard.
Live focusNhững gì đã sẵn sàng để test
Redirect `/go/:shortCode` đã đi qua backend và ghi nhận click trước khi chuyển hướng.
Shopee và TikTok đều đã có flow tạo affiliate link thật bằng Accesstrade.
Trọng tâm tiếp theo là sync order live và xác minh sub_id quay về đầy đủ.
CreateLink Builder
Dán URL sản phẩm hoặc landing page, auto-detect platform, chọn campaign live và tạo short link để chia sẻ.
SyncOrder Import
Import JSON, CSV hoặc sync live từ Accesstrade để kiểm tra việc match order, click và wallet transaction.
ObserveDashboard
Xem cashback pending, confirmed, danh sách order đã match và toàn bộ click gần đây với full URL.
Core APIsCác endpoint chính của MVP
POST /api/users/test
POST /api/links
GET /go/:shortCode
POST /api/orders/import-json
POST /api/orders/import-csv
POST /api/orders/sync-accesstrade
GET /api/users/:id/dashboard