{
  "openapi": "3.1.0",
  "info": {
    "title": "Global Corporate Tax, OECD Pillar Two (15% GloBE Top-Up), R&D Credit & Cross-Border Withholding Tax Calculator",
    "version": "1.0.0",
    "description": "Multinational Tax & Treasury FinOps / Statutory CIT, OECD Pillar Two QDMTT/IIR, R&D Tax Credits & Repatriation WHT",
    "x-polar-products": {
      "portal_tiers": [
        {
          "sku_key": "global_cit_pillar2_dataset",
          "product_id": "591ddc49-6b43-4e1c-81d8-ecdf5d7f87b8",
          "name": "180-Country Corporate Tax, R&D & Pillar Two Dataset (CSV/JSON)",
          "price_usd": 39,
          "billing": "one_time",
          "checkout_url": "https://buy.polar.sh/polar_cl_qB39riusgIrAigwRdHhPCcyXyZShfIPJCHnnj3IOe9d"
        },
        {
          "sku_key": "multinational_tax_pro_license",
          "product_id": "5b71eb34-3257-478b-9abc-48d0b1428dbe",
          "name": "Pro Pillar Two CbCR Safe-Harbor & Cash-Tax API License Key",
          "price_usd": 34,
          "billing": "month",
          "checkout_url": "https://buy.polar.sh/polar_cl_1KSADC7rLFUtC6ZpXxcrLQK1nIHCMTvCOTwzf0OWkCG"
        },
        {
          "sku_key": "cfo_pillar_two_ip_structuring_pack",
          "product_id": "991652eb-2bd7-4f37-b395-09bb379bfe35",
          "name": "VP Tax & CFO Workbook: Pillar Two QDMTT & IP Repatriation Pack",
          "price_usd": 109,
          "billing": "one_time",
          "checkout_url": "https://buy.polar.sh/polar_cl_XxXy8AXFjxpBI8lAOrnDcHPpydHZfJAcHLhzM0hyf2N"
        }
      ],
      "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"
        }
      }
    }
  },
  "externalDocs": {
    "description": "AI-Agent & MCP Tool Discovery Catalog",
    "url": "https://p2-global-corptax-wht-calc.pages.dev/agent-catalog.json"
  },
  "servers": [
    {
      "url": "https://p2-global-corptax-wht-calc.pages.dev",
      "description": "Public static Pages dataset & discovery server"
    },
    {
      "url": "https://p2-core-api.evsmtoken.workers.dev",
      "description": "Authenticated P2 Core Pro API"
    }
  ],
  "paths": {
    "/data/meta.json": {
      "get": {
        "operationId": "getPortalMeta",
        "summary": "Get live dataset freshness metadata and upstream source list",
        "servers": [
          {
            "url": "https://p2-global-corptax-wht-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Metadata JSON with fetched_at, record_count, and sources",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsTxt",
        "summary": "Get LLM-readable portal summary and endpoint directory",
        "servers": [
          {
            "url": "https://p2-global-corptax-wht-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Plain text discovery guide",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/license/verify": {
      "post": {
        "operationId": "verifyPolarLicense",
        "summary": "Verify a Polar.sh Pro License Key via p2-core-api",
        "servers": [
          {
            "url": "https://p2-core-api.evsmtoken.workers.dev"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "key"
                ],
                "properties": {
                  "key": {
                    "type": "string"
                  },
                  "portal": {
                    "type": "string",
                    "default": "p2-global-corptax-wht-calc"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "License verification result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/v1/pro/p2-global-corptax-wht-calc/dataset": {
      "get": {
        "operationId": "getProDataset",
        "summary": "Fetch authenticated full Pro JSON dataset for p2-global-corptax-wht-calc",
        "servers": [
          {
            "url": "https://p2-core-api.evsmtoken.workers.dev"
          }
        ],
        "security": [
          {
            "PolarBearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Full Pro dataset JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Polar License Key"
          }
        }
      }
    },
    "/data/corporate-tax-180.json": {
      "get": {
        "operationId": "getPublic_corporate_tax_180_json",
        "summary": "Get public live open-data benchmark JSON (corporate-tax-180.json)",
        "servers": [
          {
            "url": "https://p2-global-corptax-wht-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Public benchmark dataset JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/data/pillar-two-rd-wht.json": {
      "get": {
        "operationId": "getPublic_pillar_two_rd_wht_json",
        "summary": "Get public live open-data benchmark JSON (pillar-two-rd-wht.json)",
        "servers": [
          {
            "url": "https://p2-global-corptax-wht-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Public benchmark dataset JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "PolarBearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Polar License Key"
      }
    }
  }
}