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.
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.
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.
Detailed specification of data contracts, domain types, and primary source semantics enforced by brazil-antt-freight-cte-auditor:
routes (array[object]) • OptionalList of freight operations to audit against the ANTT Minimum Freight Table (Tabela A - Lotação).
cteXmlList (array[string]) • OptionalOptional list of raw CT-e XML strings to extract <vTPrest>, origin/destination, and audit ANTT compliance.
defaultAxles (integer) • OptionalNumber of axles (2 to 9) to assume when auditing raw CT-e XML files.
routeId (string)ID / CT-e extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
origin (string)Origin extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
destination (string)Destination extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
distanceKm (number)Distance (km) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
axles (integer)Axles extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
cargoType (string)Cargo Type extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
anttMinimumFloorBRL (number)ANTT Floor (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
chargedFreightBRL (number)Charged Freight (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
differenceBRL (number)Difference (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
complianceStatus (string)ANTT Status extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
sourceType (string)sourceType returned by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
ccdRatePerKm (number)ccdRatePerKm validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
ccLoadUnloadFee (number)ccLoadUnloadFee validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
estimatedFineRiskBRL (number)estimatedFineRiskBRL validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
recommendedAction (string)recommendedAction returned by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor.
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 |
|---|---|---|---|
routes | array[object] | Optional | List of freight operations to audit against the ANTT Minimum Freight Table (Tabela A - Lotação). |
cteXmlList | array[string] | Optional | Optional list of raw CT-e XML strings to extract <vTPrest>, origin/destination, and audit ANTT compliance. |
defaultAxles | integer | Optional | Number of axles (2 to 9) to assume when auditing raw CT-e XML files. |
Primary attributes returned in the audit response envelope with cryptographic audit metadata for brazil-antt-freight-cte-auditor.
| Attribute | Type | Definition & Source Verifiability |
|---|---|---|
routeId | string | ID / CT-e extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
origin | string | Origin extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
destination | string | Destination extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
distanceKm | number | Distance (km) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
axles | integer | Axles extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
cargoType | string | Cargo Type extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
anttMinimumFloorBRL | number | ANTT Floor (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
chargedFreightBRL | number | Charged Freight (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
differenceBRL | number | Difference (BRL) extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
complianceStatus | string | ANTT Status extracted and validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
sourceType | string | sourceType returned by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
ccdRatePerKm | number | ccdRatePerKm validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
ccLoadUnloadFee | number | ccLoadUnloadFee validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
estimatedFineRiskBRL | number | estimatedFineRiskBRL validated by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
recommendedAction | string | recommendedAction returned by Brazil ANTT Minimum Freight Calculator & CT-e XML Batch Auditor. |
Edit parameters in the request payload below and click Execute Sandbox Request to inspect the verified live schema response and 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
}'
{
"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."
}
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."
}
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)
// 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}'
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}'
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
| 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. |
brazil-tax-reform-ncm-classtrib-auditor) • [Markdown Guide]eu-vies-vat-tax-compliance-auditor) • [Markdown Guide]brazil-cep-geocoordinates-logistics-auditor) • [Markdown Guide]brazil-b2b-cnpj-qsa-lead-enricher) • [Markdown Guide]brazil-ibge-cnae-municipal-b2b-expansion-enricher) • [Markdown Guide]us-nhtsa-vehicle-vin-recall-auditor) • [Markdown Guide]us-census-fcc-real-estate-geo-enricher) • [Markdown Guide]