{"ok":true,"module":"iosor_2027_opt_out_consent_ledger","generatedAt":"2026-11-28T09:47:25.683Z","locale":"en","localizedSummary":"Opt-out consent ledger JSON","report":{"e164Normalized":"+14155550199","e164Valid":true,"inboundTextRaw":"STOP","inboundNormalized":"stop","keywordKind":"stop","matchedKeyword":"stop","iso2":"US","countryNameEn":"United States","radarCorridorId":"US_CA","channel":"sms","framework":"TCPA / CTIA Short Code & 10DLC Messaging Principles","requiredKeywords":["STOP","HELP","START","UNSUBSCRIBE"],"autoReplyRequired":true,"dualRailSuppressionRequired":true,"verdict":"suppress_all_rails_now","readinessScore":96,"headline":"Suppress dual-rail A2P now — STOP under TCPA / CTIA Short Code & 10DLC Messaging Principles","detail":"Record STOP/UNSUBSCRIBE for +14155550199 on Primary [simpletexting] and Failover [startmessaging] within 1 SLA second. Auto-reply confirmation required: YES.","ledgerEvent":{"eventType":"consent_opt_out","e164":"+14155550199","iso2":"US","channel":"sms","keyword":"stop","timestampIso":"2026-11-28T09:47:25.683Z","rails":["simpletexting","startmessaging"]},"checklist":["E.164 +14155550199 · VALID · ISO US (US_CA)","Keyword \"STOP\" → stop (stop)","Framework: TCPA / CTIA Short Code & 10DLC Messaging Principles · Required: STOP · HELP · START · UNSUBSCRIBE","Dual-rail suppression: YES → simpletexting + startmessaging · Auto-reply: required","Ledger event: consent_opt_out · Channel: sms"],"primaryPartnerId":"simpletexting","failoverPartnerId":"startmessaging","sdkSnippets":{"typescript":"// IOSOR 2027 Opt-Out & Consent Ledger (US · sms)\nexport async function handleInboundKeyword(e164: string, text: string, rails: string[]) {\n  const n = text.trim().toLowerCase();\n  if (/^(stop|stop all|unsubscribe|end|quit|arret|arrêt)\\b/.test(n)) {\n    await Promise.all(rails.map((r) => suppressOnRail(r, e164, 'opt_out')));\n    await sendAutoReply(e164, 'You are unsubscribed. Reply START to resume.');\n    return { verdict: 'suppress_all_rails_now' as const };\n  }\n  if (/^(help|info|aide|hilfe)\\b/.test(n)) {\n    await sendAutoReply(e164, 'Help: support.iosor.com · Reply STOP to opt out.');\n    return { verdict: 'send_help_menu_keep_consent' as const };\n  }\n  if (/^(start|unstop|yes|subscribe)\\b/.test(n)) {\n    await Promise.all(rails.map((r) => clearSuppression(r, e164)));\n    return { verdict: 'resume_consent_recorded' as const };\n  }\n  return { verdict: 'no_keyword_match_continue' as const };\n}","python":"# IOSOR 2027 Opt-Out & Consent Ledger (US · sms)\nimport re\n\nasync def handle_inbound_keyword(e164: str, text: str, rails: list[str]) -> dict:\n    n = text.strip().lower()\n    if re.match(r\"^(stop|stop all|unsubscribe|end|quit|arret|arrêt)\\b\", n):\n        for r in rails:\n            await suppress_on_rail(r, e164, \"opt_out\")\n        await send_auto_reply(e164, \"You are unsubscribed. Reply START to resume.\")\n        return {\"verdict\": \"suppress_all_rails_now\"}\n    if re.match(r\"^(help|info|aide|hilfe)\\b\", n):\n        await send_auto_reply(e164, \"Help: support.iosor.com · Reply STOP to opt out.\")\n        return {\"verdict\": \"send_help_menu_keep_consent\"}\n    if re.match(r\"^(start|unstop|yes|subscribe)\\b\", n):\n        for r in rails:\n            await clear_suppression(r, e164)\n        return {\"verdict\": \"resume_consent_recorded\"}\n    return {\"verdict\": \"no_keyword_match_continue\"}","go":"// IOSOR 2027 Opt-Out & Consent Ledger (US · sms)\npackage consent\n\nimport (\n\t\"regexp\"\n\t\"strings\"\n)\n\nvar stopRe = regexp.MustCompile(`(?i)^(stop|stop all|unsubscribe|end|quit|arret|arrêt)\\\\b`)\nvar helpRe = regexp.MustCompile(`(?i)^(help|info|aide|hilfe)\\\\b`)\nvar startRe = regexp.MustCompile(`(?i)^(start|unstop|yes|subscribe)\\\\b`)\n\nfunc HandleInbound(e164, text string, rails []string) string {\n\tn := strings.TrimSpace(text)\n\tif stopRe.MatchString(n) {\n\t\treturn \"suppress_all_rails_now\"\n\t}\n\tif helpRe.MatchString(n) {\n\t\treturn \"send_help_menu_keep_consent\"\n\t}\n\tif startRe.MatchString(n) {\n\t\treturn \"resume_consent_recorded\"\n\t}\n\treturn \"no_keyword_match_continue\"\n}"}},"presets":[{"id":"us_stop_sms","label":"US · STOP on SMS (TCPA suppress)","e164":"+14155550199","inboundText":"STOP","iso":"US","channel":"sms"},{"id":"us_help_sms","label":"US · HELP on SMS (menu, keep consent)","e164":"+14155550199","inboundText":"HELP","iso":"US","channel":"sms"},{"id":"ca_arret","label":"CA · ARRÊT (CASL French STOP)","e164":"+15145550123","inboundText":"ARRÊT","iso":"CA","channel":"sms"},{"id":"de_unsubscribe","label":"DE · UNSUBSCRIBE (GDPR/ePrivacy)","e164":"+4915123456789","inboundText":"UNSUBSCRIBE","iso":"DE","channel":"sms"},{"id":"gb_stopall","label":"GB · STOP ALL (PECR)","e164":"+447700900077","inboundText":"STOP ALL","iso":"GB","channel":"sms"},{"id":"us_start_resume","label":"US · START (resume consent)","e164":"+14155550199","inboundText":"START","iso":"US","channel":"sms"}],"docsUrl":"https://iosor.com/tools/opt-out"}