Marketplace Fee & Net Margin Calculator
Computes exact net payouts after deducting platform admin fees and shipping extra charges.
Hybrid Execution Model
Pass parameters to engines/marketplace-fee-calculator.js:
- Tokopedia: Regular (3.8%), Power Merchant (4.5%), Power Merchant Pro (5.5%), Official Store (6.5%).
- Shopee: Non-Star (4.0%), Star (6.0%), Star+ (6.5%), Mall (8.5%).
- TikTok Shop: Standard (4.5%), Mall (6.5%).
- Gratis Ongkir Extra: 4% capped at Rp 10.000 per item.
Trust Envelope (Confidence Contract)
Every engine output must be wrapped in a structured envelope declaring production trust attributes:
regulatory_framework: Applying regulation with article references (e.g.PP No. 58/2023 jo. PMK 168/2023 - TER).ruleset_version: Versioned Id of theengines/rules/*.jsonruleset consulted (e.g.PPH21-2024 v1.0.0).effective_window:[effective_from] – [effective_to]of the applied ruleset.integrity_status:VERIFIEDafter SHA-256 ruleset check, orUNVERIFIED— never present silent calculations when UNVERIFIED.risk_level: ContextualLOW / MEDIUM / HIGHper skill risk metadata.requires_human_review:truefor HIGH risk outputs — mandatory professional sign-off before filing, payment, or execution.currency: IDR, rounded to the nearest whole Rupiah unless another precision is stated.as_of: The simulation/effective date used to select the ruleset.