Skip to main content

SE — Transaction Set Trailer

X12 SE segment closes each transaction set: segment count and ST control number echo for integrity checks.

SE segment facts

  • SE01 segment counts must include both ST and SE — off-by-one errors are a frequent outbound generator defect.
  • SE02 must exactly match ST02 or 997 acknowledgements cannot correlate to the intended transaction set.
  • The EDI validator tool flags SE mismatches before documents leave your sandbox.

What the SE segment does

SE ends each ST..SE envelope. SE01 counts segments including ST and SE; SE02 must match ST02.

Loop: Once per transaction set

Common transaction sets: 850, 856, 810, 997

Key elements

ElementNameDescription
SE01Number of included segmentsIncludes ST and SE; miscounts break 997 validation.
SE02Transaction set control numberMust equal ST02.

Example SE segment

SE*42*0001~

Parse and validate samples with the free EDI validator or send JSON via the JSON→X12 mapping guide.

Related reference

Frequently asked questions

Built for SMB teams that need API-first EDI, healthcare diligence, and predictable pricing.

SignalEDI keeps the public promise consistent across every route: real-time processing, transparent monthly plans, no per-document fees, QuickBooks-friendly handoffs, and core healthcare X12 workflows on paid plans.

HIPAA-aware handlingBAA path documentedSecure API + webhooksNo per-document fees

Operations teams

A supplier operations team can see partner setup, validation, exceptions, and QuickBooks handoff in one workspace instead of chasing spreadsheets.

Healthcare billing

837, 835, and 270/271 workflows are explained in plain English, with HIPAA-aware handling and a documented BAA review path for diligence.

Developer teams

JSON/CSV in and X12 out, with API docs, webhooks, real-time status, and validation responses that make EDI feel like modern infrastructure.

Preview case studies

© 2026 CCCM Consulting LLC. All rights reserved.