{
  "schema_version": "1.0",
  "organization": "p2-data-lab",
  "portal": "p2-payment-mor-calc",
  "live_meta_url": "https://p2-payment-mor-calc.pages.dev/data/meta.json",
  "openapi_url": "https://p2-payment-mor-calc.pages.dev/openapi.json",
  "public_datasets": [
    "https://p2-payment-mor-calc.pages.dev/data/fx-volatility-vat.json",
    "https://p2-payment-mor-calc.pages.dev/data/psp-mor-fee-matrix.json"
  ],
  "calculator_inputs_schema": {
    "annual_gmv_usd": {
      "label": "Annual Gross Merchandise / SaaS Billing Volume (USD)",
      "type": "number",
      "default": 600000,
      "min": 10000,
      "max": 100000000
    },
    "avg_order_value_usd": {
      "label": "Average Transaction / Invoice Size AOV (USD)",
      "type": "number",
      "default": 49,
      "min": 5,
      "max": 50000
    },
    "recurring_revenue_share_pct": {
      "label": "Recurring Subscription Share of GMV (%)",
      "type": "number",
      "default": 80,
      "min": 0,
      "max": 100
    },
    "cross_border_card_share_pct": {
      "label": "Cross-Border / Non-Domestic Buyer Share (%)",
      "type": "number",
      "default": 65,
      "min": 0,
      "max": 100
    },
    "fx_conversion_share_pct": {
      "label": "Multi-Currency Presentment -> Settlement FX Conversion Share (%)",
      "type": "number",
      "default": 45,
      "min": 0,
      "max": 100
    },
    "b2c_vs_b2b_vat_reverse_charge_pct": {
      "label": "B2B Validated VAT-ID Reverse-Charge Share (%)",
      "type": "number",
      "default": 40,
      "min": 0,
      "max": 100
    },
    "chargeback_rate_pct": {
      "label": "Dispute / Chargeback Rate (% of transactions)",
      "type": "number",
      "default": 0.35,
      "min": 0,
      "max": 3
    },
    "refund_rate_pct": {
      "label": "Gross Refund Rate (% of transactions)",
      "type": "number",
      "default": 3,
      "min": 0,
      "max": 20
    },
    "active_tax_nexus_countries": {
      "label": "Statutory VAT / GST / US Sales Tax Registration Jurisdictions",
      "type": "number",
      "default": 8,
      "min": 1,
      "max": 60
    },
    "cpa_filing_cost_per_jurisdiction_yr": {
      "label": "Annual Tax Registration & Filing Accounting Cost per Jurisdiction (USD/yr)",
      "type": "number",
      "default": 1400,
      "min": 0,
      "max": 5000
    }
  },
  "formulas_summary": {
    "tx_count": "N_tx = annual_gmv_usd / avg_order_value_usd",
    "diy_psp_gateway_fees": "C_psp_base = annual_gmv_usd * (r_dom_pct + (cross_border_card_share_pct / 100) * r_intl_surcharge_pct + (fx_conversion_share_pct / 100) * (r_fx_spread_pct + 0.5 * Sigma_90d_FX_Vol)) + N_tx * fee_fixed_tx",
    "diy_psp_addon_stack": "C_psp_addons = annual_gmv_usd * ((recurring_revenue_share_pct / 100) * r_billing_pct + r_tax_engine_pct) + N_tx * (chargeback_rate_pct / 100) * (fee_dispute_usd + avg_order_value_usd * 0.5)",
    "diy_compliance_overhead": "C_tax_ops = active_tax_nexus_countries * cpa_filing_cost_per_jurisdiction_yr",
    "diy_total_cost_and_take_rate": "TCO_DIY = C_psp_base + C_psp_addons + C_tax_ops; Effective_Take_Rate_DIY = (TCO_DIY / annual_gmv_usd) * 100",
    "mor_total_cost": "TCO_MoR(p) = annual_gmv_usd * (r_mor_base_pct(p) + (cross_border_card_share_pct / 100) * r_mor_intl_pct(p) + (recurring_revenue_share_pct / 100) * r_mor_sub_pct(p)) + N_tx * fee_mor_fixed(p) + N_tx * (chargeback_rate_pct / 100) * fee_mor_dispute(p)",
    "net_merchant_payout": "Net_Payout(provider) = annual_gmv_usd * (1 - refund_rate_pct / 100) - TCO(provider) (accounting for unreturned gateway fees on refunded orders)"
  },
  "pro_api_endpoint": "https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-payment-mor-calc/dataset",
  "auth_header": "Authorization: Bearer <POLAR_LICENSE_KEY>",
  "purchase_tiers": [
    {
      "sku_key": "payment-mor-vat-fx-dataset",
      "product_id": "c4dc19f9-5d9c-40f7-be50-53e7cf51c9b5",
      "name": "PSP vs MoR Fee, Digital VAT/GST & 90-Day FX Dataset",
      "price_usd": 29,
      "billing": "one_time",
      "checkout_url": "https://buy.polar.sh/polar_cl_HR5gSOQcticz4s7mqZfRdR2ElcWIILSmpTlJg3zrudI"
    },
    {
      "sku_key": "payment-finops-pro-license",
      "product_id": "4bb32cb3-f48d-4d62-8b41-62b232253515",
      "name": "Pro Payment Payout CSV Take-Rate Auditor & API Key",
      "price_usd": 19,
      "billing": "monthly",
      "checkout_url": "https://buy.polar.sh/polar_cl_zCfgMPrIksUulqKWjRn5aE1ikFvt7UIVwXgcG2HvQ9P"
    },
    {
      "sku_key": "cfo-payments-rfp-workbook",
      "product_id": "4442f872-80fe-42af-a21d-8c3429afb7bd",
      "name": "SaaS CFO Payments & MoR Migration Audit Pack",
      "price_usd": 79,
      "billing": "one_time",
      "checkout_url": "https://buy.polar.sh/polar_cl_js1HjhdZUdHxepFpv3Sh8rzOxsqSh1k1U4IKS2d3s9a"
    }
  ],
  "master_all_portals_pass": {
    "master_all_portals_pro_monthly": {
      "product_id": "18e0b844-b764-41f0-9c3d-186362784997",
      "name": "All-Portals Master Pro API & Batch CSV License Key (Monthly)",
      "price_usd": 79,
      "billing": "monthly",
      "checkout_url": "https://buy.polar.sh/polar_cl_0P1axu2nXEDXECK8Z0k7I3sMndeo3hsdqpepv1LUcJT"
    },
    "enterprise_annual_data_pass": {
      "product_id": "8a5266eb-3aaf-4fb3-9aef-0e5bbfd17dc3",
      "name": "Annual Enterprise FinOps & Compliance Data Pass (All Portals)",
      "price_usd": 499,
      "billing": "yearly",
      "checkout_url": "https://buy.polar.sh/polar_cl_SPWfsAxuQAVHif3soxwqbq5zPAdNZFkN5CtQK3cZRft"
    }
  }
}