Reference·X12 837P·N3
X12 837P Reference

X12 837P N3 Segment Guide: Fields, Format, and Testing Gotchas

Jul 28, 2026 · 5 min read

N3 never shows up alone. It's the middle link in a three-segment chain — NM1 names an entity, N3 gives its street address, N4 finishes with city, state, and zip — and if any one of those segments is missing or misordered, the address on a claim comes out incomplete or attached to the wrong party. N3 itself is short, but skipping it or leaving it out of test data is one of the fastest ways to produce a claim that looks fine until someone tries to actually mail something to the address on file.

Quick answer

N3 (Party Location) is the segment in an X12 837P claim that carries street address information for whichever entity the preceding NM1 segment just identified — billing provider, subscriber, pay-to address, or another party. It holds up to two free-form address lines and is almost always immediately followed by an N4 segment with city, state, and zip.

The elements that actually matter in practice

N301 →
Address Information — the primary street address line, required whenever N3 is used — see the dedicated page below
N302 →
Address Information — an optional second line for apartment, suite, or unit detail — see the dedicated page below

Example

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

A synthetic N3 for a billing provider address, with N301 carrying the street number and name and N302 adding a suite number.

Where this trips people up

Because N3 is such a small segment, test data generators often hardcode a single fixed address for every provider and subscriber in a batch, which hides bugs in how downstream systems key off address changes — think re-credentialing workflows or duplicate-provider detection that rely on N3 actually varying. The other common miss is testing N301 alone and never exercising N302, so a parser that assumes address information always fits on one line breaks the first time a real second line shows up.

What Is X12 837P? The Complete Guide
How to Test Epic EDI Integrations
Generate realistic N3 address blocks in seconds
Synthibase generates synthetic 837P claims with N3 segments that vary realistically across providers and subscribers, including multi-line addresses, so your address-handling logic gets tested against more than one hardcoded street.
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.