Reference·N1 Segment·N101
X12 820 Reference

X12 820 N101 (Entity Identifier Code): Format, Values, and Testing Notes

Jul 28, 2026 · 4 min read
N102 →

N101 is a two-character code, and it's the single field that tells a parser whether the party named in this N1 loop is sending money or receiving it. Get it backwards in a test file and a posting engine will try to apply a payment in the wrong direction.

Quick answer

N101 is the entity identifier code that opens each N1 loop in an X12 820, and it defines the role the named party plays in the payment. PE marks the payee — the health plan receiving premium funds — and RE marks the remitter, the party sending payment. Other codes cover less common participants such as third-party administrators.

Common values

PE
Payee — the party receiving the premium payment, typically the health plan
RE
Remitter — the party sending the payment, which may be an employer, a group, or a TPA acting on their behalf

Example

Synthetic example Generated by Synthibase
N1*PE*Meridian Health Plan*FI*471029384

A synthetic N1 loop with N101=PE, identifying Meridian Health Plan as the payee for this premium payment.

Where this trips people up

Synthetic test files often generate only a payee N1 loop and skip the remitter loop, since a single loop is enough to make the file parse. That never exercises the case a payer's onboarding logic actually needs to handle, where the remitter is a TPA whose name doesn't match anything else in the file, and the first time that scenario shows up in production it can look like a mismatched or fraudulent payment instead of routine third-party billing.

How to Test X12 820 N1: A Field-by-Field Breakdown
EDI 835 Remittance Advice: Complete Guide for Healthcare IT
How to Write EDI Test Cases That Actually Catch Go-Live Failures
Generate both payee and remitter roles automatically
Synthibase produces synthetic X12 820 files with both PE and RE loops populated, including TPA-style remitter scenarios, so onboarding and posting logic gets tested against more than a single-party file.
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.