X12 820 N101 (Entity Identifier Code): Format, Values, and Testing Notes
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.
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
Example
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.