Skip to content

Comments

DC-7892 / PIL-2496 - Add pillar2 template#1256

Open
JamesMMiller wants to merge 2 commits intohmrc:mainfrom
JamesMMiller:PIL-2496
Open

DC-7892 / PIL-2496 - Add pillar2 template#1256
JamesMMiller wants to merge 2 commits intohmrc:mainfrom
JamesMMiller:PIL-2496

Conversation

@JamesMMiller
Copy link
Contributor

@JamesMMiller JamesMMiller commented Oct 6, 2025

Implements a HTML email template for Pillar 2 submission confirmations with conditional content for Below-Threshold Notification (BTN) requests.

Changes

  • New service identifier: Added Pillar2 service identifier
  • New template: pillar2_confirmation_email with conditional logic for BTN vs standard confirmations
  • Template structure: Single template handles both scenarios using @if conditions based on requestType parameter

Template Behavior

  • Default (non-BTN): Shows standard confirmation message with contact details
  • BTN: Shows only BTN-specific content without default confirmation message
  • ⚠️ Important: BTN detection requires exact string match: "Below Threshold Notification" (case-sensitive)

Required Parameters

Map(
  "confirmationDate"      -> "3 October 2025",        // Date of submission
  "confirmationTime"      -> "2:45pm",               // Time of submission  
  "requestType"           -> "UK Tax Return",         // One of: "UK Tax Return", "Below Threshold Notification", "Overseas Return Notification", "amended UK Tax Return", "amended Overseas Return Notification"
  "accountingPeriodStart" -> "1 April 2024",         // Start of accounting period
  "accountingPeriodEnd"   -> "31 March 2025"         // End of accounting period
)

BTN Request Type

Critical: For BTN-specific content to display, requestType must be exactly:

"Below Threshold Notification"
  • Case-sensitive
  • Exact string match required
  • Any variation (e.g., "below threshold notification", "Below-Threshold Notification") will show default content instead

BTN Email:
image

Non-BTN email:
image

@JamesMMiller JamesMMiller changed the title APIL-2496 - Add pillar2 template PIL-2496 - Add pillar2 template Oct 6, 2025
@JamesMMiller JamesMMiller changed the title PIL-2496 - Add pillar2 template DC-7892 / PIL-2496 - Add pillar2 template Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant