Reference·N3 Segment·N302
X12 837P Reference

N302 in X12 837P: A Field Guide to Address Information

Jul 28, 2026 · 4 min read
← N301

N302 only exists to catch what didn't fit in N301, and most addresses genuinely don't need it. That makes it one of the easiest elements to get lazy about in test data — either it's always populated with filler text, or it's never populated at all, and neither habit tells you how your system behaves when a real second address line shows up unpredictably.

Quick answer

N302 is the optional second element of the N3 segment on an X12 837P claim, used to carry a continuation of the street address in N301 — most commonly an apartment, suite, or unit number — when the primary line isn't enough to fully describe the location.

What this element contains

Format
Free-form alphanumeric string — up to 55 characters, same structure as N301
Requirement
Optional — omitted whenever the full address fits on the N301 line
Typical content
Suite, apartment, or unit detail — e.g. SUITE 200, used to continue rather than replace N301

Example

Synthetic example Generated by Synthibase
N3*482 OAK ST*SUITE 200

N302 (SUITE 200) continues the street address started in N301 for a synthetic billing provider location.

Where this trips people up

Test fixtures tend to fall into one of two extremes: every synthetic address gets a filler N302 like SUITE 100 whether or not that makes sense, or N302 is left out of the generator entirely because most real addresses don't need it. The first pattern hides bugs in how a two-line address renders on a printed form or in a UI; the second means the rendering logic for a populated N302 never gets exercised at all until a genuinely multi-line address arrives in production and displays wrong.

X12 837P N3 Segment Guide: Fields, Format, and Testing Gotchas
What Is X12 837P? The Complete Guide
How to Test Epic EDI Integrations
Test both one-line and two-line addresses
Synthibase generates synthetic 837P claims with N302 populated only when it realistically should be, so your address-rendering logic gets tested against both single-line and multi-line addresses instead of an all-or-nothing pattern.
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.