{
  "openapi": "3.1.0",
  "info": {
    "title": "Technical Freight Rate Index, Port Demurrage/Detention & ISO-14083 Logistics Carbon Compliance Calculator",
    "version": "1.0.0",
    "description": "Supply Chain FinOps / Maritime & Multimodal Freight, Demurrage & EU ETS / ISO-14083 Carbon Compliance",
    "x-polar-products": {
      "portal_tiers": [
        {
          "sku_key": "freight_compliance_dataset",
          "product_id": "01c3c99e-be1a-455f-bb9c-7ceb1c7cfb69",
          "name": "Multimodal Freight PPI/SPPI & ISO-14083 Dataset (CSV/JSON)",
          "price_usd": 39,
          "billing": "one_time",
          "checkout_url": "https://buy.polar.sh/polar_cl_0Z8flWhgFStNTbDu2XgwUG3xgQrG2kvwiFvL30M9vUT"
        },
        {
          "sku_key": "freight_pro_license",
          "product_id": "ece58ab7-69f7-452a-9aad-60fa8daf0278",
          "name": "Pro ISO-14083 / EU ETS Batch Shipment & API License Key",
          "price_usd": 29,
          "billing": "month",
          "checkout_url": "https://buy.polar.sh/polar_cl_T7LpN3Y4nuIm71fp4lgpq5WbTbrRvg9wLDqnQ0msu5l"
        },
        {
          "sku_key": "freight_rfp_audit_pack",
          "product_id": "0e0b4a1e-5b4a-4339-8747-36421474a298",
          "name": "Shipper Freight RFP Indexation & CSRD Scope-3 Audit Pack",
          "price_usd": 99,
          "billing": "one_time",
          "checkout_url": "https://buy.polar.sh/polar_cl_u2GHVqan8CBVjMmsE4rhH8Sac1HFGCXmrdBib0YV9A3"
        }
      ],
      "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-freight-compliance-calc.pages.dev/agent-catalog.json"
  },
  "servers": [
    {
      "url": "https://p2-freight-compliance-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-freight-compliance-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-freight-compliance-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-freight-compliance-calc"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "License verification result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/v1/pro/p2-freight-compliance-calc/dataset": {
      "get": {
        "operationId": "getProDataset",
        "summary": "Fetch authenticated full Pro JSON dataset for p2-freight-compliance-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/freight-indices.json": {
      "get": {
        "operationId": "getPublic_freight_indices_json",
        "summary": "Get public live open-data benchmark JSON (freight-indices.json)",
        "servers": [
          {
            "url": "https://p2-freight-compliance-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Public benchmark dataset JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/data/iso14083-factors.json": {
      "get": {
        "operationId": "getPublic_iso14083_factors_json",
        "summary": "Get public live open-data benchmark JSON (iso14083-factors.json)",
        "servers": [
          {
            "url": "https://p2-freight-compliance-calc.pages.dev"
          }
        ],
        "responses": {
          "200": {
            "description": "Public benchmark dataset JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/data/port-throughput.json": {
      "get": {
        "operationId": "getPublic_port_throughput_json",
        "summary": "Get public live open-data benchmark JSON (port-throughput.json)",
        "servers": [
          {
            "url": "https://p2-freight-compliance-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"
      }
    }
  }
}