B2B Quant Compliance Suite
Brazil Tax Reform, Logistics & ERP Master Data 99.9% Uptime SLA Version v4.8

Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor

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. ### Enterprise B2B Value Proposition (Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor) - **Target B2B Buyers:** Transportation Management Systems (TMS), 3PL Logistics Operators, and Supply Chain Controllers. - **Zero External API Keys Required:** Connects directly to authoritative government, regulatory, and financial primary registries with built-in retry/backoff and deterministic schema normalization. - **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`). - **Backend Proxy Secret Injection:** RapidAPI Studio and Zyla API Hub inject `Authorization: Bearer <TOKEN_REDACTED>` 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`. - **Marketplace Categories:** RapidAPI `Logistics` | Zyla API Hub `Logistics & Shipping`. - **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). - **SEO Keywords:** freight-audit, antt-minimum-floor, cte-xml, logistics-compliance, road-transport, tms-integration, shipping-cost.

• Technical Architecture & Statutory Audit Rules

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. ### Enterprise B2B Value Proposition (Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor) - **Target B2B Buyers:** Transportation Management Systems (TMS), 3PL Logistics Operators, and Supply Chain Controllers. - **Zero External API Keys Required:** Connects directly to authoritative government, regulatory, and financial primary registries with built-in retry/backoff and deterministic schema normalization. - **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`). - **Backend Proxy Secret Injection:** RapidAPI Studio and Zyla API Hub inject `Authorization: Bearer <TOKEN_REDACTED>` 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`. - **Marketplace Categories:** RapidAPI `Logistics` | Zyla API Hub `Logistics & Shipping`. - **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). - **SEO Keywords:** freight-audit, antt-minimum-floor, cte-xml, logistics-compliance, road-transport, tms-integration, shipping-cost.

Cryptographic Provenance & Compliance Invariants:

Every transaction executed by brazil-antt-freight-cte-auditor produces verifiable event envelopes designed for high-stakes regulatory auditing, ERP master data synchronization, and automated continuous compliance workflows.

• Statutory Schema Deep-Dive & Attribute Analysis

Detailed specification of data contracts, domain types, and primary source semantics enforced by brazil-antt-freight-cte-auditor:

Input Query Parameter: routes (array[object]) • Optional

List of freight operations to audit against the ANTT Minimum Freight Table (Tabela A - Lotação).

Input Query Parameter: cteXmlList (array[string]) • Optional

Optional list of raw CT-e XML strings to extract <vTPrest>, origin/destination, and audit ANTT compliance.

Input Query Parameter: defaultAxles (integer) • Optional

Number of axles (2 to 9) to assume when auditing raw CT-e XML files.

Verified Response Field: routeId (string)

ID / CT-e extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

Verified Response Field: origin (string)

Origin extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

Verified Response Field: destination (string)

Destination extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

Verified Response Field: distanceKm (number)

Distance (km) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

Verified Response Field: axles (integer)

Axles extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

Verified Response Field: cargoType (string)

Cargo Type extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

Verified Response Field: anttMinimumFloorBRL (number)

ANTT Floor (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

Verified Response Field: chargedFreightBRL (number)

Charged Freight (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

Verified Response Field: differenceBRL (number)

Difference (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

Verified Response Field: complianceStatus (string)

ANTT Status extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

Verified Response Field: sourceType (string)

sourceType returned by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

Verified Response Field: ccdRatePerKm (number)

ccdRatePerKm validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

Verified Response Field: ccLoadUnloadFee (number)

ccLoadUnloadFee validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

Verified Response Field: estimatedFineRiskBRL (number)

estimatedFineRiskBRL validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

Verified Response Field: recommendedAction (string)

recommendedAction returned by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.

• Input Schema Parameters (HTTP POST Request Body)

Stateless payload attributes validated by JSON Schema and OpenAPI 3.0.3 standards for brazil-antt-freight-cte-auditor.

Field Type Requirement Description & Audit Rules
routesarray[object]OptionalList of freight operations to audit against the ANTT Minimum Freight Table (Tabela A - Lotação).
cteXmlListarray[string]OptionalOptional list of raw CT-e XML strings to extract <vTPrest>, origin/destination, and audit ANTT compliance.
defaultAxlesintegerOptionalNumber of axles (2 to 9) to assume when auditing raw CT-e XML files.

• Verified Response Envelope Attributes

Primary attributes returned in the audit response envelope with cryptographic audit metadata for brazil-antt-freight-cte-auditor.

Attribute Type Definition & Source Verifiability
routeIdstringID / CT-e extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
originstringOrigin extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
destinationstringDestination extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
distanceKmnumberDistance (km) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
axlesintegerAxles extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
cargoTypestringCargo Type extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
anttMinimumFloorBRLnumberANTT Floor (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
chargedFreightBRLnumberCharged Freight (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
differenceBRLnumberDifference (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
complianceStatusstringANTT Status extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
sourceTypestringsourceType returned by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
ccdRatePerKmnumberccdRatePerKm validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
ccLoadUnloadFeenumberccLoadUnloadFee validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
estimatedFineRiskBRLnumberestimatedFineRiskBRL validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
recommendedActionstringrecommendedAction returned by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
⚡ Interactive API Sandbox Zero-Signup Preview · Client-Side Verified
Production Sandbox Ready (0ms latency)

Edit parameters in the request payload below and click Execute Sandbox Request to inspect the verified live schema response and dynamic cURL command.

POST /v1/execute · JSON Request Body Editable
Dynamic cURL Command
curl -X POST "https://jesleytassili-glitch.github.io/v1/execute" \
  -H "Content-Type: application/json" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -d '{
  "routes": [
    {
      "routeId": "ROT-001",
      "origin": "Campinas/SP",
      "destination": "Goiânia/GO",
      "distanceKm": 815,
      "axles": 6,
      "cargoType": "carga_geral",
      "chargedFreightBRL": 6800.0
    }
  ],
  "cteXmlList": [],
  "defaultAxles": 6
}'
Simulated Live Response (Audit Verified) HTTP 200 OK · Live Schema
content-type: application/json; charset=utf-8
x-ratelimit-limit: 1000 / min
x-payment-rail: RapidAPI | Apify | x402
latency: < 120ms
{
  "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."
}
Ready to integrate into production? Subscribe self-serve or run bulk enterprise jobs on Apify cloud infrastructure.

• Authentic Verified Response Payload

Direct extraction captured from primary government or corporate registry endpoints for brazil-antt-freight-cte-auditor.

{
  "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."
}

• Enterprise Integration Code Snippets

1. Python 3 (requests / b2b-compliance-sdk)

import requests

url = "https://jesleytassili-glitch.github.io/specs_openapi_31/brazil-antt-freight-cte-auditor.json" # Direct spec
endpoint = "https://api.apify.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items"
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer YOUR_API_TOKEN" # RapidAPI or Apify Token
}
payload = {
  "routes": [
    {
      "routeId": "ROT-001",
      "origin": "Campinas/SP",
      "destination": "Goiânia/GO",
      "distanceKm": 815,
      "axles": 6,
      "cargoType": "carga_geral",
      "chargedFreightBRL": 6800.0
    }
  ],
  "cteXmlList": [],
  "defaultAxles": 6
}

response = requests.post(endpoint, json=payload, headers=headers, timeout=60)
print(f"Status Code: {response.status_code}")
data = response.json()
print("Audit Records Count:", len(data) if isinstance(data, list) else 1)

2. Node.js & MCP CLI (npx -y b2b-compliance-mcp-cli)

// Node.js 18+ Native Fetch or MCP CLI
import fetch from "node-fetch";

const payload = {
  "routes": [
    {
      "routeId": "ROT-001",
      "origin": "Campinas/SP",
      "destination": "Goiânia/GO",
      "distanceKm": 815,
      "axles": 6,
      "cargoType": "carga_geral",
      "chargedFreightBRL": 6800.0
    }
  ],
  "cteXmlList": [],
  "defaultAxles": 6
};

const response = await fetch("https://api.apify.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer " + process.env.B2B_API_TOKEN
  },
  body: JSON.stringify(payload)
});

const result = await response.json();
console.log("Verified Records:", result);

// Or run directly via MCP CLI:
// npx -y b2b-compliance-mcp-cli execute --server brazil-antt-freight-cte-auditor --payload '{"routes": [{"routeId": "ROT-001", "origin": "Campinas/SP", "destination": "Goiânia/GO", "distanceKm": 815, "axles": 6, "cargoType": "carga_geral", "chargedFreightBRL": 6800.0}], "cteXmlList": [], "defaultAxles": 6}'

3. cURL Stateless REST Call

curl -X POST "https://api.apify.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{"routes": [{"routeId": "ROT-001", "origin": "Campinas/SP", "destination": "Goiânia/GO", "distanceKm": 815, "axles": 6, "cargoType": "carga_geral", "chargedFreightBRL": 6800.0}], "cteXmlList": [], "defaultAxles": 6}'

4. GitHub Actions CI/CD & n8n Scheduled Cron

name: Daily Compliance Audit - brazil-antt-freight-cte-auditor
on:
  schedule:
    - cron: '0 8 * * 1-5' # Monday to Friday at 08:00 UTC
  workflow_dispatch:

jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - name: Trigger Audit Run
        run: |
          curl -f -s -X POST "https://api.apify.com/v2/acts/b2b-quant-apis~brazil-antt-freight-cte-auditor/run-sync-get-dataset-items" \
            -H "Content-Type: application/json" \
            -H "Authorization: Bearer ${{ secrets.B2B_API_TOKEN }}" \
            -d '{"routes": [{"routeId": "ROT-001", "origin": "Campinas/SP", "destination": "Goiânia/GO", "distanceKm": 815, "axles": 6, "cargoType": "carga_geral", "chargedFreightBRL": 6800.0}], "cteXmlList": [], "defaultAxles": 6}' > audit_output.json
      - name: Archive Compliance Evidence
        uses: actions/upload-artifact@v4
        with:
          name: brazil-antt-freight-cte-auditor-evidence
          path: audit_output.json

• Enterprise SLA & Error Handling Codes for brazil-antt-freight-cte-auditor

HTTP Status Classification Resolution Behavior for brazil-antt-freight-cte-auditor
200 OK Success Query executed successfully; validated Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor records returned.
400 Bad Request Schema Validation Payload missing required fields or format mismatch for brazil-antt-freight-cte-auditor; inspect JSON schema.
401 / 403 Forbidden Authentication Failure Invalid proxy API key or direct unauthorized bypass attempt for Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
429 Too Many Requests Rate Limit Exceeded Tier limits triggered for brazil-antt-freight-cte-auditor; inspect Retry-After response header.
502 Upstream Resilient Graceful Degradation Upstream regulatory portal offline; returns safe empty set with $0 billed fee.

• Frequently Asked Questions (Technical & Procurement)

What statutory registries and official data sources are integrated into Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor?
The Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor microservice integrates directly with primary statutory sources. Specifically: 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. ### Enterprise B2B Value Proposition (Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor) - **Target B2B Buyers:** Transportation Management Systems (TMS. All queries return authentic, cryptographic-ready audit envelopes containing verified fields such as `routeId`, `origin`, `destination`, `distanceKm`, `axles`, `cargoType`.
What are the precise input parameters and validation rules for `brazil-antt-freight-cte-auditor`?
For `brazil-antt-freight-cte-auditor`, mandatory execution parameters are: No mandatory parameters (nationwide or default scan enabled). Optional tuning and filtering parameters include: `routes`, `cteXmlList`, `defaultAxles`. Inputs are strictly parsed against OpenAPI 3.0.3 and JSON Schema specifications prior to statutory dispatch.
How does the `brazil-antt-freight-cte-auditor` API handle HTTP SLA status codes (200, 401, 429, 502)?
The `brazil-antt-freight-cte-auditor` service provides a 99.9% uptime SLA: HTTP 200 delivers verified audit structures; HTTP 400 denotes payload validation errors; HTTP 401/403 protects proxy authentication boundaries; HTTP 429 signals rate limits with standard `Retry-After` headers; and HTTP 502 triggers upstream resilience, returning an empty dataset with zero charges applied ($0 billed).
How does monthly subscription on RapidAPI or Zyla Hub compare to Apify Pay-Per-Event for `brazil-antt-freight-cte-auditor`?
Subscribing to `brazil-antt-freight-cte-auditor` on RapidAPI or Zyla API Hub provides predictable developer tiers ($0 Free, $19 Pro, $49 Ultra, $149 Mega) with fixed monthly quotas and low-latency API proxy keys. The Apify Store deployment provides elastic Pay-Per-Event execution without commitments, ideal for scheduled batch pipelines.

• Related Engines in Brazil Tax Reform, Logistics & ERP Master Data

Explore all engines in Brazil Tax Reform, Logistics & ERP Master Data →