Phase 2 sourcing engine Rare sizes · Multi-sport supply · India availability · Fast static pages
Phase 2 architecture

Supplier-neutral catalogue. India-specific source status.

ITennis.in should never expose the backend merchandise source to customers. The public layer shows only the useful decision: local stock, supplier catalogue candidate, import request, quote-only, or sourcing check.

01

Feed ingestion

CSV or supplier export is normalized into internal product, variant, stock and price records.

02

Route validation

Brand restrictions, freight class, HS code, ETA and source confidence are checked before a buy CTA is shown.

03

Landed-cost estimate

USD cost, forex buffer, freight, duty assumptions, payment fees and margin produce an India quote estimate.

04

Affected-page regeneration

Quantity and price are live-only; availability, content and restriction changes regenerate the relevant static pages.

Feed schema

Normalize every supplier into one internal shape.

The public storefront stays clean. The feed pipeline maps supplier exports into ITennis fields, validates restrictions, updates live source state, and triggers page regeneration only when semantic catalogue state changes.

supplier_skubrandnamesportcategoryvariantupccost_usdmsrp_usdstock_statusstock_qtyweight_kglength_cmwidth_cmheight_cmrestriction_hinths_codesource_url
Live-only events

Sales and quantity changes do not rebuild pages.

When quantity, price, or a sale changes, update the live API or Redis cache. Product pages remain static HTML, so the site keeps its insane speed.

npm run affected -- --sku WIL-BLADE-98-V9-L4 --event sale_made
Semantic events

Availability and restriction changes regenerate affected URLs.

If a product moves from quote-only to local stock, or from clear to source-check, rebuild the product, category, brand, sport, grip-size, and sitemap pages.

npm run affected -- --sku WIL-BLADE-98-V9-L4 --event restriction_changed
Landed-cost defaults

Quote before payment.

The starter estimate includes FX buffer, freight, duty assumptions, social welfare surcharge, IGST, payment fee, risk buffer, and margin. These are placeholders and should be reviewed with a customs broker/accountant before production pricing.

84Base FX assumption
9USD freight/kg
18%IGST placeholder
28%Margin placeholder