Reference·BGN Segment·BGN01
X12 275 Reference

X12 275 BGN01 (Transaction Set Purpose Code): Format, Values, and Testing Notes

Jul 28, 2026 · 4 min read
BGN02 →

One code decides whether the receiving system treats this attachment as new or as a do-over. Miss it in test data and your reissue path never gets exercised until a real resend breaks it.

Quick answer

BGN01 is the first element of the BGN segment in an X12 275 — a single code stating whether the transaction is being submitted for the first time or being reissued after an earlier attempt.

Valid code values

00
Original — the standard value for a first-time submission of this attachment set
18
Reissue — the sender is resending the transaction, often after a rejection or a request for correction

Example

Synthetic example Generated by Synthibase
BGN*18*ATC0098231*20260728

A synthetic BGN marking this transaction as a reissue (BGN01=18) of a previously submitted attachment set, still carrying its original control number. Synthetic data, not a real submission.

Where this trips people up

Synthetic 275 fixtures overwhelmingly default BGN01 to '00' because it's the simplest, most common path to generate. That leaves the reissue branch of the parser completely untested until a payer actually bounces an attachment and the sender resends it — at which point a system that assumes every BGN01 is '00' may log a duplicate record instead of recognizing the resend as a correction of the original.

X12 275 BGN Segment Guide: Fields, Format, and Testing Gotchas
How to Write EDI Test Cases That Actually Catch Go-Live Failures
How to Validate X12 EDI Files Before Payer Submission
Test both original and reissue paths automatically
Synthibase generates synthetic 275 transactions with both original and reissue purpose codes, so your attachment-handling logic gets exercised against resends, not just first-time submissions.
Start free trial →
This page is written independently by Synthibase for testing and informational purposes. It is not an official publication of HL7 International or X12/Washington Publishing Company, and is not a substitute for reviewing the official standard or your trading partner's companion guide. See our Terms of Service for full legal terms.