From 58aa2cf78eca71c49abbaea41117517119e86dce Mon Sep 17 00:00:00 2001 From: justin Date: Sat, 30 May 2026 20:48:47 -0500 Subject: [PATCH] =?UTF-8?q?map=20all=20FMCSA=20status=20codes=20to=20servi?= =?UTF-8?q?ces:=20OOS=E2=86=92ETA=20($499),=20Inactive=E2=86=92reactivatio?= =?UTF-8?q?n,=20Revoked/Suspended=E2=86=92reinstatement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - OOS (Out of Service): RED, urgent messaging, maps to Emergency Temporary Authority $499 - Inactive: YELLOW, reactivation $149 - Not Authorized: YELLOW, new USDOT + MC authority - Revoked: RED, new authority application - Suspended: YELLOW, compliance resolution + reinstatement - Cancelled: YELLOW, new registration - Each status has specific actionable messaging with PW CTA --- api/src/routes/compliance-orders.ts | 6 +++ api/src/routes/dot-lookup.ts | 37 ++++++++++++------- .../tools/dot-compliance-check/index.html | 6 ++- 3 files changed, 35 insertions(+), 14 deletions(-) diff --git a/api/src/routes/compliance-orders.ts b/api/src/routes/compliance-orders.ts index fbe8031..c081ec1 100644 --- a/api/src/routes/compliance-orders.ts +++ b/api/src/routes/compliance-orders.ts @@ -257,6 +257,12 @@ const COMPLIANCE_SERVICES: Record< erpnext_item: "USDOT-REACTIVATION", discountable: true, }, + "emergency-temporary-authority": { + name: "Emergency Temporary Authority (ETA)", + price_cents: 49900, + erpnext_item: "EMERGENCY-TEMP-AUTH", + discountable: false, // urgent service, premium pricing + }, "dot-drug-alcohol": { name: "DOT Drug & Alcohol Compliance Program", price_cents: 14900, diff --git a/api/src/routes/dot-lookup.ts b/api/src/routes/dot-lookup.ts index 8ab03fd..d571f73 100644 --- a/api/src/routes/dot-lookup.ts +++ b/api/src/routes/dot-lookup.ts @@ -98,23 +98,34 @@ router.get("/api/v1/dot/lookup", async (req, res) => { C: "Cancelled", }; const statusLabel = statusLabels[statusCode] || statusCode; - const isInactive = statusCode === "I" || statusCode === "S" || statusCode === "C"; - const effectiveStatus = allowed && !isInactive ? "green" : isInactive && allowed ? "yellow" : "red"; + const isNotActive = statusCode !== "A"; + const isOOS = statusCode === "O"; + const effectiveStatus = isOOS ? "red" + : isNotActive ? "yellow" + : allowed ? "green" : "red"; + + const statusMessages: Record = { + A: "Active and authorized to operate.", + I: "USDOT status is Inactive. Your registration needs to be reactivated before you can legally operate. " + + "Performance West can handle the reactivation process for you — no Login.gov account needed.", + N: "This carrier is Not Authorized. You may need to apply for a new USDOT number or operating authority. " + + "Performance West can file your USDOT registration and MC authority application.", + O: "URGENT: This carrier has been placed Out of Service by FMCSA and cannot legally operate. " + + "Every day out of service costs you money. Performance West offers emergency compliance resolution " + + "— call (888) 411-0383 now or order Emergency Temporary Authority online.", + R: "This carrier's authority has been Revoked. You will need to apply for new operating authority. " + + "Performance West can handle the entire reinstatement and new authority application process.", + S: "This carrier's authority is Suspended. Operations must cease until the suspension is lifted. " + + "Performance West can help resolve the underlying compliance issues and file for reinstatement.", + C: "This USDOT number has been Cancelled. You may need to apply for a new USDOT number. " + + "Performance West can file a new registration or request reactivation on your behalf.", + }; + checks.push({ id: "operating_status", label: "Operating Status", status: effectiveStatus, - detail: effectiveStatus === "green" - ? `Active and authorized to operate.` - : effectiveStatus === "yellow" - ? `USDOT status is ${statusLabel}. Your registration may need to be reactivated before you can legally operate. Performance West can handle the reactivation process for you — no Login.gov account needed.` - : `NOT authorized to operate — ${statusLabel}. ${ - statusCode === "I" ? "This USDOT number is inactive. You may need to reactivate it before operating." - : statusCode === "N" ? "This carrier is not authorized. Operating authority may be required." - : statusCode === "R" ? "This carrier's authority has been revoked." - : statusCode === "O" ? "This carrier has been placed out of service by FMCSA." - : "This carrier cannot legally operate." - }`, + detail: statusMessages[statusCode] || `Status: ${statusLabel}. Contact Performance West at (888) 411-0383 for assistance.`, }); } diff --git a/site/public/tools/dot-compliance-check/index.html b/site/public/tools/dot-compliance-check/index.html index 40222f2..1b2ab2c 100644 --- a/site/public/tools/dot-compliance-check/index.html +++ b/site/public/tools/dot-compliance-check/index.html @@ -334,7 +334,11 @@ Send reset link else if (data.phy_state === "NM") recommendedServices.push("nm-weight-distance"); else if (data.phy_state === "CT") recommendedServices.push("ct-highway-use-fee"); } - if (c.id === "operating_status") recommendedServices.push("usdot-reactivation"); + if (c.id === "operating_status" && c.detail && c.detail.indexOf("Out of Service") >= 0) { + recommendedServices.push("emergency-temporary-authority"); + } else if (c.id === "operating_status") { + recommendedServices.push("usdot-reactivation"); + } if (c.id === "state_carrier_permit" && data.phy_state === "CA") recommendedServices.push("ca-mcp-carb"); if (c.id === "intrastate_authority") recommendedServices.push("intrastate-authority"); if (c.id === "corporate_compliance") recommendedServices.push("annual-report-filing");