{
  "openapi": "3.0.3",
  "info": {
    "title": "Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor",
    "version": "3.0.0",
    "description": "Calculates the mandatory Brazilian ANTT minimum road freight floor (Lei 13.703/2018 - CCD x km + CC) and audits CT-e 4.00 XML invoices in batch to prevent automatic ANTT/SEFAZ fines.\n\n### Enterprise B2B Value Proposition (Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor)\n- **Target B2B Buyers:** Transportation Management Systems (TMS), 3PL Logistics Operators, and Supply Chain Controllers.\n- **Zero External API Keys Required:** Connects directly to authoritative government, regulatory, and financial primary registries with built-in retry/backoff and deterministic schema normalization.\n- **Quantitative Scoring & RAG Briefs:** Every record is enriched with a quantitative 0-100 risk/viability score and an LLM-ready Markdown executive brief (`ANTT Freight Route / CT-e Audited`).\n- **Backend Proxy Secret Injection:** RapidAPI Studio and Zyla API Hub inject `Authorization: Bearer <APIFY_API_TOKEN>` invisibly at the proxy layer when forwarding synchronous calls to `https://api.apify.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items`.\n- **Marketplace Categories:** RapidAPI `Logistics` | Zyla API Hub `Logistics & Shipping`.\n- **Subscription Tiers (USD):** `BASIC` ($0.00/mo, 15 req/mo hard cap), `PRO` ($19.00/mo, 1,000 req/mo + $0.02/extra), `ULTRA` ($49.00/mo, 5,000 req/mo + $0.015/extra), `MEGA` ($149.00/mo, 25,000 req/mo + $0.010/extra).\n- **SEO Keywords:** freight-audit, antt-minimum-floor, cte-xml, logistics-compliance, road-transport, tms-integration, shipping-cost.",
    "termsOfService": "https://jesleytassili-glitch.github.io/b2b-quant-mcp-n8n-suite/",
    "contact": {
      "name": "B2B Quant APIs (@b2b-quant-apis)",
      "email": "jesleytassili@gmail.com",
      "url": "https://apify.com/b2b-quant-apis/brazil-antt-freight-cte-auditor"
    },
    "license": {
      "name": "Commercial B2B API Subscription (RapidAPI & Zyla Hub)",
      "url": "https://apify.com/b2b-quant-apis/brazil-antt-freight-cte-auditor"
    },
    "x-category": "Logistics",
    "x-rapidapi-category": "Logistics",
    "x-zyla-category": "Logistics & Shipping",
    "x-seo-tags": [
      "freight-audit",
      "antt-minimum-floor",
      "cte-xml",
      "logistics-compliance",
      "road-transport",
      "tms-integration",
      "shipping-cost"
    ],
    "x-payout-destination": "Wise #890361113",
    "x-pricing-plans": {
      "BASIC": {
        "tier": "BASIC",
        "label": "Freemium Developer Trial",
        "monthlyPriceUsd": 0.0,
        "monthlyQuotaRequests": 15,
        "overagePricePerRequestUsd": 0.0,
        "hardLimit": true
      },
      "PRO": {
        "tier": "PRO",
        "label": "Startup & RevOps Pipeline",
        "monthlyPriceUsd": 19.0,
        "monthlyQuotaRequests": 1000,
        "overagePricePerRequestUsd": 0.02,
        "hardLimit": false
      },
      "ULTRA": {
        "tier": "ULTRA",
        "label": "Mid-Market Automation Cluster",
        "monthlyPriceUsd": 49.0,
        "monthlyQuotaRequests": 5000,
        "overagePricePerRequestUsd": 0.015,
        "hardLimit": false
      },
      "MEGA": {
        "tier": "MEGA",
        "label": "Enterprise High-Throughput SLA",
        "monthlyPriceUsd": 149.0,
        "monthlyQuotaRequests": 25000,
        "overagePricePerRequestUsd": 0.01,
        "hardLimit": false
      }
    },
    "x-code-snippets": {
      "cURL": "# Primary Synchronous Endpoint: https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\ncurl --request POST \\\n  --url \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\" \\\n  --header \"Content-Type: application/json\" \\\n  --header \"X-RapidAPI-Host: brazil-antt-freight-cte-auditor.p.rapidapi.com\" \\\n  --header \"X-RapidAPI-Key: <YOUR_RAPIDAPI_OR_ZYLA_KEY>\" \\\n  --data '{\"routes\": [{\"routeId\": \"ROT-001\", \"origin\": \"Campinas/SP\", \"destination\": \"Goiânia/GO\", \"distanceKm\": 815, \"axles\": 6, \"cargoType\": \"carga_geral\", \"chargedFreightBRL\": 6800.0}], \"cteXmlList\": [], \"defaultAxles\": 6}'",
      "Python": "import httpx\n\n# Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\nurl = \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\"\npayload = {\n    \"routes\": [\n        {\n            \"routeId\": \"ROT-001\",\n            \"origin\": \"Campinas/SP\",\n            \"destination\": \"Goiânia/GO\",\n            \"distanceKm\": 815,\n            \"axles\": 6,\n            \"cargoType\": \"carga_geral\",\n            \"chargedFreightBRL\": 6800.0\n        }\n    ],\n    \"cteXmlList\": [],\n    \"defaultAxles\": 6\n}\nheaders = {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-antt-freight-cte-auditor.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\",\n}\n\nwith httpx.Client(timeout=30.0) as client:\n    response = client.post(url, json=payload, headers=headers)\n    response.raise_for_status()\n    print(response.json())\n",
      "Node.js": "// Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\nconst url = \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\";\nconst options = {\n  method: \"POST\",\n  headers: {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-antt-freight-cte-auditor.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\"\n  },\n  body: JSON.stringify({\"routes\": [{\"routeId\": \"ROT-001\", \"origin\": \"Campinas/SP\", \"destination\": \"Goiânia/GO\", \"distanceKm\": 815, \"axles\": 6, \"cargoType\": \"carga_geral\", \"chargedFreightBRL\": 6800.0}], \"cteXmlList\": [], \"defaultAxles\": 6})\n};\n\nconst response = await fetch(url, options);\nconst data = await response.json();\nconsole.log(data);\n"
    },
    "x-primary-backend-url": "https://api.apify.com",
    "x-primary-backend-base-url": "https://api.apify.com",
    "x-apify-sync-endpoint": "https://api.apify.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items",
    "x-apify-health-endpoint": "https://api.apify.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor",
    "x-backend-secret-header": {
      "name": "Authorization",
      "valueTemplate": "Bearer <APIFY_API_TOKEN>",
      "headerName": "Authorization",
      "headerValueTemplate": "Bearer <APIFY_API_TOKEN>",
      "injectedByProxy": true,
      "hiddenFromSubscriber": true,
      "description": "Secret Header injected invisibly by RapidAPI Studio and Zyla API Hub proxy when calling https://api.apify.com."
    },
    "x-openapi-spec-url": "https://jesleytassili-glitch.github.io/specs_openapi_31/brazil-antt-freight-cte-auditor.json",
    "x-openapi-suite-spec-url": "https://jesleytassili-glitch.github.io/b2b-quant-mcp-n8n-suite/specs_openapi_31/brazil-antt-freight-cte-auditor.json",
    "x-apis-json-url": "https://jesleytassili-glitch.github.io/apis.json",
    "x-github-release-tag": "v2.2.0"
  },
  "externalDocs": {
    "description": "Official B2B Documentation & Schema Reference for Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor",
    "url": "https://jesleytassili-glitch.github.io/b2b-quant-mcp-n8n-suite/actors/brazil-antt-freight-cte-auditor.html"
  },
  "servers": [
    {
      "url": "https://api.apify.com",
      "description": "Primary Apify Cloud Synchronous Execution Cluster (Real HTTP 200/201 POST & GET)"
    },
    {
      "url": "https://api.apify.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items",
      "description": "Direct Apify Actor Synchronous Execution Endpoint (brazil-antt-freight-cte-auditor)"
    },
    {
      "url": "https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev",
      "description": "Anti-Bypass Stateless B2B Gateway (RapidAPI & Zyla Hub Proxy)"
    }
  ],
  "tags": [
    {
      "name": "Logistics",
      "description": "RapidAPI Hub primary category: Logistics (Zyla Hub: Logistics & Shipping)"
    },
    {
      "name": "freight-audit",
      "description": "B2B SEO Search Tag: freight-audit"
    },
    {
      "name": "antt-minimum-floor",
      "description": "B2B SEO Search Tag: antt-minimum-floor"
    },
    {
      "name": "cte-xml",
      "description": "B2B SEO Search Tag: cte-xml"
    },
    {
      "name": "logistics-compliance",
      "description": "B2B SEO Search Tag: logistics-compliance"
    },
    {
      "name": "road-transport",
      "description": "B2B SEO Search Tag: road-transport"
    },
    {
      "name": "tms-integration",
      "description": "B2B SEO Search Tag: tms-integration"
    },
    {
      "name": "shipping-cost",
      "description": "B2B SEO Search Tag: shipping-cost"
    }
  ],
  "security": [
    {
      "ApifyCloudBearerAuth": []
    },
    {
      "RapidAPIProxySecret": []
    },
    {
      "ZylaProxySecret": []
    },
    {
      "RapidAPISubscriberKey": []
    }
  ],
  "paths": {
    "/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run_sync_brazil_antt_freight_cte_auditor",
        "summary": "Execute Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor (Apify Cloud Synchronous POST)",
        "description": "Synchronous stateless execution of **Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor**. RapidAPI Studio and Zyla API Hub inject the backend secret header `Authorization: Bearer <APIFY_API_TOKEN>` invisibly to the end user, validate `X-RapidAPI-Proxy-Secret` / `X-Zyla-Proxy-Secret` in constant time (`hmac.compare_digest`), inject quota headers (`X-RateLimit-Remaining`, `X-Engine-Version`), and return deterministic JSON records.",
        "tags": [
          "Logistics",
          "freight-audit",
          "antt-minimum-floor",
          "cte-xml",
          "logistics-compliance",
          "road-transport"
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "label": "cURL",
            "source": "# Primary Synchronous Endpoint: https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\ncurl --request POST \\\n  --url \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\" \\\n  --header \"Content-Type: application/json\" \\\n  --header \"X-RapidAPI-Host: brazil-antt-freight-cte-auditor.p.rapidapi.com\" \\\n  --header \"X-RapidAPI-Key: <YOUR_RAPIDAPI_OR_ZYLA_KEY>\" \\\n  --data '{\"routes\": [{\"routeId\": \"ROT-001\", \"origin\": \"Campinas/SP\", \"destination\": \"Goiânia/GO\", \"distanceKm\": 815, \"axles\": 6, \"cargoType\": \"carga_geral\", \"chargedFreightBRL\": 6800.0}], \"cteXmlList\": [], \"defaultAxles\": 6}'"
          },
          {
            "lang": "Python",
            "label": "Python (httpx)",
            "source": "import httpx\n\n# Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\nurl = \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\"\npayload = {\n    \"routes\": [\n        {\n            \"routeId\": \"ROT-001\",\n            \"origin\": \"Campinas/SP\",\n            \"destination\": \"Goiânia/GO\",\n            \"distanceKm\": 815,\n            \"axles\": 6,\n            \"cargoType\": \"carga_geral\",\n            \"chargedFreightBRL\": 6800.0\n        }\n    ],\n    \"cteXmlList\": [],\n    \"defaultAxles\": 6\n}\nheaders = {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-antt-freight-cte-auditor.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\",\n}\n\nwith httpx.Client(timeout=30.0) as client:\n    response = client.post(url, json=payload, headers=headers)\n    response.raise_for_status()\n    print(response.json())\n"
          },
          {
            "lang": "Node.js",
            "label": "Node.js (fetch)",
            "source": "// Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\nconst url = \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\";\nconst options = {\n  method: \"POST\",\n  headers: {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-antt-freight-cte-auditor.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\"\n  },\n  body: JSON.stringify({\"routes\": [{\"routeId\": \"ROT-001\", \"origin\": \"Campinas/SP\", \"destination\": \"Goiânia/GO\", \"distanceKm\": 815, \"axles\": 6, \"cargoType\": \"carga_geral\", \"chargedFreightBRL\": 6800.0}], \"cteXmlList\": [], \"defaultAxles\": 6})\n};\n\nconst response = await fetch(url, options);\nconst data = await response.json();\nconsole.log(data);\n"
          }
        ],
        "x-snippets": {
          "cURL": "# Primary Synchronous Endpoint: https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\ncurl --request POST \\\n  --url \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\" \\\n  --header \"Content-Type: application/json\" \\\n  --header \"X-RapidAPI-Host: brazil-antt-freight-cte-auditor.p.rapidapi.com\" \\\n  --header \"X-RapidAPI-Key: <YOUR_RAPIDAPI_OR_ZYLA_KEY>\" \\\n  --data '{\"routes\": [{\"routeId\": \"ROT-001\", \"origin\": \"Campinas/SP\", \"destination\": \"Goiânia/GO\", \"distanceKm\": 815, \"axles\": 6, \"cargoType\": \"carga_geral\", \"chargedFreightBRL\": 6800.0}], \"cteXmlList\": [], \"defaultAxles\": 6}'",
          "Python": "import httpx\n\n# Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\nurl = \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\"\npayload = {\n    \"routes\": [\n        {\n            \"routeId\": \"ROT-001\",\n            \"origin\": \"Campinas/SP\",\n            \"destination\": \"Goiânia/GO\",\n            \"distanceKm\": 815,\n            \"axles\": 6,\n            \"cargoType\": \"carga_geral\",\n            \"chargedFreightBRL\": 6800.0\n        }\n    ],\n    \"cteXmlList\": [],\n    \"defaultAxles\": 6\n}\nheaders = {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-antt-freight-cte-auditor.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\",\n}\n\nwith httpx.Client(timeout=30.0) as client:\n    response = client.post(url, json=payload, headers=headers)\n    response.raise_for_status()\n    print(response.json())\n",
          "Node.js": "// Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\nconst url = \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\";\nconst options = {\n  method: \"POST\",\n  headers: {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-antt-freight-cte-auditor.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\"\n  },\n  body: JSON.stringify({\"routes\": [{\"routeId\": \"ROT-001\", \"origin\": \"Campinas/SP\", \"destination\": \"Goiânia/GO\", \"distanceKm\": 815, \"axles\": 6, \"cargoType\": \"carga_geral\", \"chargedFreightBRL\": 6800.0}], \"cteXmlList\": [], \"defaultAxles\": 6})\n};\n\nconst response = await fetch(url, options);\nconst data = await response.json();\nconsole.log(data);\n"
        },
        "x-backend-secret-header": {
          "name": "Authorization",
          "value": "Bearer <APIFY_API_TOKEN>",
          "visibleToSubscriber": false
        },
        "requestBody": {
          "required": true,
          "description": "Structured JSON parameters for `brazil-antt-freight-cte-auditor`.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrazilAnttFreightCteAuditorRequest"
              },
              "example": {
                "routes": [
                  {
                    "routeId": "ROT-001",
                    "origin": "Campinas/SP",
                    "destination": "Goiânia/GO",
                    "distanceKm": 815,
                    "axles": 6,
                    "cargoType": "carga_geral",
                    "chargedFreightBRL": 6800.0
                  }
                ],
                "cteXmlList": [],
                "defaultAxles": 6
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful synchronous execution of `brazil-antt-freight-cte-auditor` returning enriched B2B JSON records.",
            "headers": {
              "X-RateLimit-Remaining": {
                "description": "Remaining requests in the subscriber's monthly plan quota (BASIC=15, PRO=1000, ULTRA=5000, MEGA=25000).",
                "schema": {
                  "type": "integer",
                  "example": 999
                }
              },
              "X-Engine-Version": {
                "description": "Deterministic B2B engine release version.",
                "schema": {
                  "type": "string",
                  "example": "3.0.0"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrazilAnttFreightCteAuditorResponseEnvelope"
                },
                "example": {
                  "status": "succeeded",
                  "actor": "brazil-antt-freight-cte-auditor",
                  "engineVersion": "3.0.0",
                  "count": 1,
                  "data": [
                    {
                      "routeId": "ROT-001",
                      "sourceType": "ROUTE_SIMULATION",
                      "origin": "Campinas/SP",
                      "destination": "Goiânia/GO",
                      "distanceKm": 815.0,
                      "axles": 6,
                      "cargoType": "carga_geral",
                      "ccdRatePerKm": 6.678,
                      "ccLoadUnloadFee": 681.9,
                      "anttMinimumFloorBRL": 6124.47,
                      "chargedFreightBRL": 6800.0,
                      "differenceBRL": 675.53,
                      "complianceStatus": "CONFORME_ACIMA_DO_PISO",
                      "estimatedFineRiskBRL": 0.0,
                      "recommendedAction": "Operação regular acima do piso mínimo obrigatório da ANTT."
                    }
                  ]
                }
              }
            }
          },
          "201": {
            "description": "Synchronous dataset created and returned for `brazil-antt-freight-cte-auditor` on Apify Cloud (`HTTP 201`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrazilAnttFreightCteAuditorResponseEnvelope"
                },
                "example": {
                  "status": "succeeded",
                  "actor": "brazil-antt-freight-cte-auditor",
                  "engineVersion": "3.0.0",
                  "count": 1,
                  "data": [
                    {
                      "routeId": "ROT-001",
                      "sourceType": "ROUTE_SIMULATION",
                      "origin": "Campinas/SP",
                      "destination": "Goiânia/GO",
                      "distanceKm": 815.0,
                      "axles": 6,
                      "cargoType": "carga_geral",
                      "ccdRatePerKm": 6.678,
                      "ccLoadUnloadFee": 681.9,
                      "anttMinimumFloorBRL": 6124.47,
                      "chargedFreightBRL": 6800.0,
                      "differenceBRL": 675.53,
                      "complianceStatus": "CONFORME_ACIMA_DO_PISO",
                      "estimatedFineRiskBRL": 0.0,
                      "recommendedAction": "Operação regular acima do piso mínimo obrigatório da ANTT."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request — Invalid JSON payload or schema validation error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "error",
                  "code": 400,
                  "message": "Invalid JSON request body."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden — Missing or invalid `X-RapidAPI-Proxy-Secret` / `X-Zyla-Proxy-Secret` header (Anti-Bypass Protection).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "forbidden",
                  "code": 403,
                  "message": "Direct access denied. Requests must originate from RapidAPI Hub or Zyla API Hub with a valid Proxy-Secret."
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — Monthly plan quota exceeded (e.g., BASIC Freemium 15 req/month hard limit).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "quota_exceeded",
                  "code": 429,
                  "message": "Monthly request quota exceeded for BASIC plan (15 req/month hard limit). Upgrade to PRO ($19/mo), ULTRA ($49/mo), or MEGA ($149/mo)."
                }
              }
            }
          }
        }
      }
    },
    "/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor": {
      "get": {
        "operationId": "status_brazil_antt_freight_cte_auditor",
        "summary": "Actor Metadata & Live Connectivity Check for Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor",
        "description": "Immediate `HTTP 200` status and metadata health check for `brazil-antt-freight-cte-auditor` on RapidAPI Studio and Zyla API Hub (`GET https://api.apify.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor` and `GET /v1/brazil-antt-freight-cte-auditor/health`) without starting a container build or run.",
        "tags": [
          "Logistics"
        ],
        "responses": {
          "200": {
            "description": "Engine online and ready (`HTTP 200 JSON`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "actor": {
                      "type": "string",
                      "example": "brazil-antt-freight-cte-auditor"
                    },
                    "engineVersion": {
                      "type": "string",
                      "example": "3.0.0"
                    },
                    "category": {
                      "type": "string",
                      "example": "Logistics"
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": true,
                      "example": {
                        "name": "brazil-antt-freight-cte-auditor",
                        "username": "b2b-quant-apis",
                        "isPublic": true
                      }
                    }
                  }
                },
                "example": {
                  "status": "ok",
                  "actor": "brazil-antt-freight-cte-auditor",
                  "engineVersion": "3.0.0",
                  "category": "Logistics",
                  "data": {
                    "name": "brazil-antt-freight-cte-auditor",
                    "username": "b2b-quant-apis",
                    "isPublic": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/brazil-antt-freight-cte-auditor": {
      "post": {
        "operationId": "execute_brazil_antt_freight_cte_auditor",
        "summary": "Execute Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor",
        "description": "Synchronous stateless execution of **Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor**. RapidAPI Studio and Zyla API Hub inject the backend secret header `Authorization: Bearer <APIFY_API_TOKEN>` invisibly to the end user, validate `X-RapidAPI-Proxy-Secret` / `X-Zyla-Proxy-Secret` in constant time (`hmac.compare_digest`), inject quota headers (`X-RateLimit-Remaining`, `X-Engine-Version`), and return deterministic JSON records.",
        "tags": [
          "Logistics",
          "freight-audit",
          "antt-minimum-floor",
          "cte-xml",
          "logistics-compliance",
          "road-transport"
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "label": "cURL",
            "source": "# Primary Synchronous Endpoint: https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\ncurl --request POST \\\n  --url \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\" \\\n  --header \"Content-Type: application/json\" \\\n  --header \"X-RapidAPI-Host: brazil-antt-freight-cte-auditor.p.rapidapi.com\" \\\n  --header \"X-RapidAPI-Key: <YOUR_RAPIDAPI_OR_ZYLA_KEY>\" \\\n  --data '{\"routes\": [{\"routeId\": \"ROT-001\", \"origin\": \"Campinas/SP\", \"destination\": \"Goiânia/GO\", \"distanceKm\": 815, \"axles\": 6, \"cargoType\": \"carga_geral\", \"chargedFreightBRL\": 6800.0}], \"cteXmlList\": [], \"defaultAxles\": 6}'"
          },
          {
            "lang": "Python",
            "label": "Python (httpx)",
            "source": "import httpx\n\n# Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\nurl = \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\"\npayload = {\n    \"routes\": [\n        {\n            \"routeId\": \"ROT-001\",\n            \"origin\": \"Campinas/SP\",\n            \"destination\": \"Goiânia/GO\",\n            \"distanceKm\": 815,\n            \"axles\": 6,\n            \"cargoType\": \"carga_geral\",\n            \"chargedFreightBRL\": 6800.0\n        }\n    ],\n    \"cteXmlList\": [],\n    \"defaultAxles\": 6\n}\nheaders = {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-antt-freight-cte-auditor.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\",\n}\n\nwith httpx.Client(timeout=30.0) as client:\n    response = client.post(url, json=payload, headers=headers)\n    response.raise_for_status()\n    print(response.json())\n"
          },
          {
            "lang": "Node.js",
            "label": "Node.js (fetch)",
            "source": "// Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\nconst url = \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\";\nconst options = {\n  method: \"POST\",\n  headers: {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-antt-freight-cte-auditor.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\"\n  },\n  body: JSON.stringify({\"routes\": [{\"routeId\": \"ROT-001\", \"origin\": \"Campinas/SP\", \"destination\": \"Goiânia/GO\", \"distanceKm\": 815, \"axles\": 6, \"cargoType\": \"carga_geral\", \"chargedFreightBRL\": 6800.0}], \"cteXmlList\": [], \"defaultAxles\": 6})\n};\n\nconst response = await fetch(url, options);\nconst data = await response.json();\nconsole.log(data);\n"
          }
        ],
        "x-snippets": {
          "cURL": "# Primary Synchronous Endpoint: https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\ncurl --request POST \\\n  --url \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\" \\\n  --header \"Content-Type: application/json\" \\\n  --header \"X-RapidAPI-Host: brazil-antt-freight-cte-auditor.p.rapidapi.com\" \\\n  --header \"X-RapidAPI-Key: <YOUR_RAPIDAPI_OR_ZYLA_KEY>\" \\\n  --data '{\"routes\": [{\"routeId\": \"ROT-001\", \"origin\": \"Campinas/SP\", \"destination\": \"Goiânia/GO\", \"distanceKm\": 815, \"axles\": 6, \"cargoType\": \"carga_geral\", \"chargedFreightBRL\": 6800.0}], \"cteXmlList\": [], \"defaultAxles\": 6}'",
          "Python": "import httpx\n\n# Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\nurl = \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\"\npayload = {\n    \"routes\": [\n        {\n            \"routeId\": \"ROT-001\",\n            \"origin\": \"Campinas/SP\",\n            \"destination\": \"Goiânia/GO\",\n            \"distanceKm\": 815,\n            \"axles\": 6,\n            \"cargoType\": \"carga_geral\",\n            \"chargedFreightBRL\": 6800.0\n        }\n    ],\n    \"cteXmlList\": [],\n    \"defaultAxles\": 6\n}\nheaders = {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-antt-freight-cte-auditor.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\",\n}\n\nwith httpx.Client(timeout=30.0) as client:\n    response = client.post(url, json=payload, headers=headers)\n    response.raise_for_status()\n    print(response.json())\n",
          "Node.js": "// Primary Synchronous Endpoint (Gateway Route: https://b2b-quant-rapidapi-gateway.jesleytassili.workers.dev/v1/brazil-antt-freight-cte-auditor)\nconst url = \"https://brazil-antt-freight-cte-auditor.p.rapidapi.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items\";\nconst options = {\n  method: \"POST\",\n  headers: {\n    \"Content-Type\": \"application/json\",\n    \"X-RapidAPI-Host\": \"brazil-antt-freight-cte-auditor.p.rapidapi.com\",\n    \"X-RapidAPI-Key\": \"<YOUR_RAPIDAPI_OR_ZYLA_KEY>\"\n  },\n  body: JSON.stringify({\"routes\": [{\"routeId\": \"ROT-001\", \"origin\": \"Campinas/SP\", \"destination\": \"Goiânia/GO\", \"distanceKm\": 815, \"axles\": 6, \"cargoType\": \"carga_geral\", \"chargedFreightBRL\": 6800.0}], \"cteXmlList\": [], \"defaultAxles\": 6})\n};\n\nconst response = await fetch(url, options);\nconst data = await response.json();\nconsole.log(data);\n"
        },
        "x-backend-secret-header": {
          "name": "Authorization",
          "value": "Bearer <APIFY_API_TOKEN>",
          "visibleToSubscriber": false
        },
        "requestBody": {
          "required": true,
          "description": "Structured JSON parameters for `brazil-antt-freight-cte-auditor`.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrazilAnttFreightCteAuditorRequest"
              },
              "example": {
                "routes": [
                  {
                    "routeId": "ROT-001",
                    "origin": "Campinas/SP",
                    "destination": "Goiânia/GO",
                    "distanceKm": 815,
                    "axles": 6,
                    "cargoType": "carga_geral",
                    "chargedFreightBRL": 6800.0
                  }
                ],
                "cteXmlList": [],
                "defaultAxles": 6
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful synchronous execution of `brazil-antt-freight-cte-auditor` returning enriched B2B JSON records.",
            "headers": {
              "X-RateLimit-Remaining": {
                "description": "Remaining requests in the subscriber's monthly plan quota (BASIC=15, PRO=1000, ULTRA=5000, MEGA=25000).",
                "schema": {
                  "type": "integer",
                  "example": 999
                }
              },
              "X-Engine-Version": {
                "description": "Deterministic B2B engine release version.",
                "schema": {
                  "type": "string",
                  "example": "3.0.0"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrazilAnttFreightCteAuditorResponseEnvelope"
                },
                "example": {
                  "status": "succeeded",
                  "actor": "brazil-antt-freight-cte-auditor",
                  "engineVersion": "3.0.0",
                  "count": 1,
                  "data": [
                    {
                      "routeId": "ROT-001",
                      "sourceType": "ROUTE_SIMULATION",
                      "origin": "Campinas/SP",
                      "destination": "Goiânia/GO",
                      "distanceKm": 815.0,
                      "axles": 6,
                      "cargoType": "carga_geral",
                      "ccdRatePerKm": 6.678,
                      "ccLoadUnloadFee": 681.9,
                      "anttMinimumFloorBRL": 6124.47,
                      "chargedFreightBRL": 6800.0,
                      "differenceBRL": 675.53,
                      "complianceStatus": "CONFORME_ACIMA_DO_PISO",
                      "estimatedFineRiskBRL": 0.0,
                      "recommendedAction": "Operação regular acima do piso mínimo obrigatório da ANTT."
                    }
                  ]
                }
              }
            }
          },
          "201": {
            "description": "Synchronous dataset created and returned for `brazil-antt-freight-cte-auditor` on Apify Cloud (`HTTP 201`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrazilAnttFreightCteAuditorResponseEnvelope"
                },
                "example": {
                  "status": "succeeded",
                  "actor": "brazil-antt-freight-cte-auditor",
                  "engineVersion": "3.0.0",
                  "count": 1,
                  "data": [
                    {
                      "routeId": "ROT-001",
                      "sourceType": "ROUTE_SIMULATION",
                      "origin": "Campinas/SP",
                      "destination": "Goiânia/GO",
                      "distanceKm": 815.0,
                      "axles": 6,
                      "cargoType": "carga_geral",
                      "ccdRatePerKm": 6.678,
                      "ccLoadUnloadFee": 681.9,
                      "anttMinimumFloorBRL": 6124.47,
                      "chargedFreightBRL": 6800.0,
                      "differenceBRL": 675.53,
                      "complianceStatus": "CONFORME_ACIMA_DO_PISO",
                      "estimatedFineRiskBRL": 0.0,
                      "recommendedAction": "Operação regular acima do piso mínimo obrigatório da ANTT."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request — Invalid JSON payload or schema validation error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "error",
                  "code": 400,
                  "message": "Invalid JSON request body."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden — Missing or invalid `X-RapidAPI-Proxy-Secret` / `X-Zyla-Proxy-Secret` header (Anti-Bypass Protection).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "forbidden",
                  "code": 403,
                  "message": "Direct access denied. Requests must originate from RapidAPI Hub or Zyla API Hub with a valid Proxy-Secret."
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — Monthly plan quota exceeded (e.g., BASIC Freemium 15 req/month hard limit).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "quota_exceeded",
                  "code": 429,
                  "message": "Monthly request quota exceeded for BASIC plan (15 req/month hard limit). Upgrade to PRO ($19/mo), ULTRA ($49/mo), or MEGA ($149/mo)."
                }
              }
            }
          }
        }
      }
    },
    "/v1/brazil-antt-freight-cte-auditor/health": {
      "get": {
        "operationId": "health_brazil_antt_freight_cte_auditor",
        "summary": "Health & SLA Check for Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor",
        "description": "Immediate `HTTP 200` status and metadata health check for `brazil-antt-freight-cte-auditor` on RapidAPI Studio and Zyla API Hub (`GET https://api.apify.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor` and `GET /v1/brazil-antt-freight-cte-auditor/health`) without starting a container build or run.",
        "tags": [
          "Logistics"
        ],
        "responses": {
          "200": {
            "description": "Engine online and ready (`HTTP 200 JSON`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "actor": {
                      "type": "string",
                      "example": "brazil-antt-freight-cte-auditor"
                    },
                    "engineVersion": {
                      "type": "string",
                      "example": "3.0.0"
                    },
                    "category": {
                      "type": "string",
                      "example": "Logistics"
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": true,
                      "example": {
                        "name": "brazil-antt-freight-cte-auditor",
                        "username": "b2b-quant-apis",
                        "isPublic": true
                      }
                    }
                  }
                },
                "example": {
                  "status": "ok",
                  "actor": "brazil-antt-freight-cte-auditor",
                  "engineVersion": "3.0.0",
                  "category": "Logistics",
                  "data": {
                    "name": "brazil-antt-freight-cte-auditor",
                    "username": "b2b-quant-apis",
                    "isPublic": true
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApifyCloudBearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "APIFY_API_TOKEN",
        "description": "Backend Secret Header (`Authorization: Bearer <APIFY_API_TOKEN>`) injected invisibly by RapidAPI Studio and Zyla API Hub proxy when calling https://api.apify.com."
      },
      "RapidAPIProxySecret": {
        "type": "apiKey",
        "in": "header",
        "name": "X-RapidAPI-Proxy-Secret",
        "description": "RapidAPI Hub shared proxy secret verified in constant time via hmac.compare_digest."
      },
      "ZylaProxySecret": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Zyla-Proxy-Secret",
        "description": "Zyla API Hub shared proxy secret verified in constant time via hmac.compare_digest."
      },
      "RapidAPISubscriberKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-RapidAPI-Key",
        "description": "Subscriber API Key injected by RapidAPI Hub or Zyla API Hub."
      }
    },
    "schemas": {
      "BrazilAnttFreightCteAuditorRequest": {
        "type": "object",
        "title": "Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor Request Schema",
        "description": "Input parameters for Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
        "properties": {
          "routes": {
            "type": "array",
            "title": "Route Simulations (Distance km, Axles, Cargo Type)",
            "description": "List of freight operations to audit against the ANTT Minimum Freight Table (Tabela A - Lotação).",
            "items": {
              "type": "object",
              "additionalProperties": true
            },
            "default": [
              {
                "routeId": "ROT-001",
                "origin": "Campinas/SP",
                "destination": "Goiânia/GO",
                "distanceKm": 815,
                "axles": 6,
                "cargoType": "carga_geral",
                "chargedFreightBRL": 6800.0
              },
              {
                "routeId": "ROT-002",
                "origin": "Rondonópolis/MT",
                "destination": "Santos/SP",
                "distanceKm": 1410,
                "axles": 7,
                "cargoType": "granel_solido",
                "chargedFreightBRL": 9200.0
              }
            ],
            "example": [
              {
                "routeId": "ROT-001",
                "origin": "Campinas/SP",
                "destination": "Goiânia/GO",
                "distanceKm": 815,
                "axles": 6,
                "cargoType": "carga_geral",
                "chargedFreightBRL": 6800.0
              }
            ]
          },
          "cteXmlList": {
            "type": "array",
            "title": "CT-e 4.00 XML Payloads (Optional)",
            "description": "Optional list of raw CT-e XML strings to extract <vTPrest>, origin/destination, and audit ANTT compliance.",
            "items": {
              "type": "string"
            },
            "default": [],
            "example": []
          },
          "defaultAxles": {
            "type": "integer",
            "title": "Default Fleet Axles (for CT-e XMLs without MDF-e axle count)",
            "description": "Number of axles (2 to 9) to assume when auditing raw CT-e XML files.",
            "default": 6,
            "minimum": 2,
            "maximum": 9,
            "example": 6
          }
        },
        "example": {
          "routes": [
            {
              "routeId": "ROT-001",
              "origin": "Campinas/SP",
              "destination": "Goiânia/GO",
              "distanceKm": 815,
              "axles": 6,
              "cargoType": "carga_geral",
              "chargedFreightBRL": 6800.0
            }
          ],
          "cteXmlList": [],
          "defaultAxles": 6
        }
      },
      "BrazilAnttFreightCteAuditorRecord": {
        "type": "object",
        "title": "Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor Output Record",
        "description": "Enriched B2B dataset item returned by `brazil-antt-freight-cte-auditor`.",
        "properties": {
          "routeId": {
            "type": "string",
            "title": "ID / CT-e",
            "description": "ID / CT-e extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": "ROT-001"
          },
          "origin": {
            "type": "string",
            "title": "Origin",
            "description": "Origin extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": "Campinas/SP"
          },
          "destination": {
            "type": "string",
            "title": "Destination",
            "description": "Destination extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": "Goiânia/GO"
          },
          "distanceKm": {
            "type": "number",
            "title": "Distance (km)",
            "description": "Distance (km) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": 815.0
          },
          "axles": {
            "type": "integer",
            "title": "Axles",
            "description": "Axles extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": 6
          },
          "cargoType": {
            "type": "string",
            "title": "Cargo Type",
            "description": "Cargo Type extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": "carga_geral"
          },
          "anttMinimumFloorBRL": {
            "type": "number",
            "title": "ANTT Floor (BRL)",
            "description": "ANTT Floor (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": 6124.47
          },
          "chargedFreightBRL": {
            "type": "number",
            "title": "Charged Freight (BRL)",
            "description": "Charged Freight (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": 6800.0
          },
          "differenceBRL": {
            "type": "number",
            "title": "Difference (BRL)",
            "description": "Difference (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": 675.53
          },
          "complianceStatus": {
            "type": "string",
            "title": "ANTT Status",
            "description": "ANTT Status extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": "CONFORME_ACIMA_DO_PISO"
          },
          "sourceType": {
            "type": "string",
            "title": "sourceType",
            "description": "sourceType returned by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": "ROUTE_SIMULATION"
          },
          "ccdRatePerKm": {
            "type": "number",
            "title": "ccdRatePerKm",
            "description": "ccdRatePerKm validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": 6.678
          },
          "ccLoadUnloadFee": {
            "type": "number",
            "title": "ccLoadUnloadFee",
            "description": "ccLoadUnloadFee validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": 681.9
          },
          "estimatedFineRiskBRL": {
            "type": "number",
            "title": "estimatedFineRiskBRL",
            "description": "estimatedFineRiskBRL validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": 0.0
          },
          "recommendedAction": {
            "type": "string",
            "title": "recommendedAction",
            "description": "recommendedAction returned by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.",
            "example": "Operação regular acima do piso mínimo obrigatório da ANTT."
          }
        },
        "example": {
          "routeId": "ROT-001",
          "sourceType": "ROUTE_SIMULATION",
          "origin": "Campinas/SP",
          "destination": "Goiânia/GO",
          "distanceKm": 815.0,
          "axles": 6,
          "cargoType": "carga_geral",
          "ccdRatePerKm": 6.678,
          "ccLoadUnloadFee": 681.9,
          "anttMinimumFloorBRL": 6124.47,
          "chargedFreightBRL": 6800.0,
          "differenceBRL": 675.53,
          "complianceStatus": "CONFORME_ACIMA_DO_PISO",
          "estimatedFineRiskBRL": 0.0,
          "recommendedAction": "Operação regular acima do piso mínimo obrigatório da ANTT."
        }
      },
      "BrazilAnttFreightCteAuditorResponseEnvelope": {
        "type": "object",
        "title": "Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor Synchronous Response Envelope",
        "required": [
          "status",
          "actor",
          "count",
          "data"
        ],
        "properties": {
          "status": {
            "type": "string",
            "example": "succeeded"
          },
          "actor": {
            "type": "string",
            "example": "brazil-antt-freight-cte-auditor"
          },
          "marketplace": {
            "type": "string",
            "example": "rapidapi_zyla_hub"
          },
          "engineVersion": {
            "type": "string",
            "example": "3.0.0"
          },
          "count": {
            "type": "integer",
            "example": 1
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrazilAnttFreightCteAuditorRecord"
            }
          }
        },
        "example": {
          "status": "succeeded",
          "actor": "brazil-antt-freight-cte-auditor",
          "engineVersion": "3.0.0",
          "count": 1,
          "data": [
            {
              "routeId": "ROT-001",
              "sourceType": "ROUTE_SIMULATION",
              "origin": "Campinas/SP",
              "destination": "Goiânia/GO",
              "distanceKm": 815.0,
              "axles": 6,
              "cargoType": "carga_geral",
              "ccdRatePerKm": 6.678,
              "ccLoadUnloadFee": 681.9,
              "anttMinimumFloorBRL": 6124.47,
              "chargedFreightBRL": 6800.0,
              "differenceBRL": 675.53,
              "complianceStatus": "CONFORME_ACIMA_DO_PISO",
              "estimatedFineRiskBRL": 0.0,
              "recommendedAction": "Operação regular acima do piso mínimo obrigatório da ANTT."
            }
          ]
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": [
          "status",
          "code",
          "message"
        ],
        "properties": {
          "status": {
            "type": "string",
            "example": "error"
          },
          "code": {
            "type": "integer",
            "example": 403
          },
          "message": {
            "type": "string",
            "example": "Direct access denied."
          }
        }
      }
    }
  }
}