Architecture

API & Data Model

6 internal API endpoints, 7 page routes, inferred entity model.

Endpoints

Discovered API Endpoints

MethodEndpointPurposePage
POSTAPI/notificationStateUpdate email notification preferencesSettings
POSTAPI/addMerchantRegister a new merchant accountDashboard
POSTAPI/hideLeveledBannerDismiss Game Changer notificationDashboard
GETAPI/reviewsScheduleDownloadExport review dataResults
GETAPI/Guide/loadStepsLoad guided tour stepsAll
GET?AJAXC=pgi&export=CSVExport payments as CSVPayments
Schema

Inferred Data Model

7 entities reconstructed from the HTML structure

User

id, name, email

password (hashed)

settings, created_at

Merchant

id, user_id (FK)

merchant_id, country

name, status

ASIN

id, asin, merchant_id

title, brand, category

price, rating, bsr

review_counts[1-5]

status, dates

Review

review_id (Amazon)

asin_id, stars

review_date, comment

violation_type

status (flagged/ip/removed)

filed_date, removed_date

payment_status

Payment

id (invoice #)

user_id, date

description, amount

review_count

downloadable

Ticket

id, user_id

concern, message

status, created_at

Entity Relationships

User → 1:N → Merchant → 1:N → ASIN → 1:N → Review → N:1 → Payment