Skip to main content

REF — Reference Identification

Learn the X12 REF segment: PO numbers, department codes, contract references, and qualifier codes used across retail and healthcare EDI.

REF segment facts

  • REF02 values must round-trip across 850 → 855 → 856 → 810 or retailers flag invoice and ASN mismatches for chargebacks.
  • Department REF loops (DP qualifier) are common on big-box retail 850s and drive routing inside the buyer's ERP.
  • SignalEDI validation surfaces REF/BEG/BIG cross-field mismatches before documents leave your sandbox.

What the REF segment does

REF carries business references that tie documents together — purchase order numbers, release numbers, department IDs, and internal tracking keys. Partners score REF accuracy for chargeback prevention.

Loop: Header or line-level REF loops

Common transaction sets: 850, 856, 810, 855

Key elements

ElementNameDescription
REF01Reference identification qualifierPO=purchase order, DP=department, CR=customer reference, IA=internal vendor number.
REF02Reference identificationThe actual reference value — must match the originating document.

Example REF segment

REF*PO*PO-1042~

Parse and validate samples with the free EDI validator or send JSON via the JSON→X12 mapping guide.

Common REF errors

  • REF02 PO number mismatch vs BEG03
  • Missing mandatory REF for retailer department
  • Duplicate REF qualifiers in same loop

Related reference

Frequently asked questions

Built for SMB teams that need API-first EDI, healthcare diligence, and predictable pricing.

SignalEDI keeps the public promise consistent across every route: real-time processing, transparent monthly plans, no per-document fees, QuickBooks-friendly handoffs, and core healthcare X12 workflows on paid plans.

HIPAA-aware handlingBAA path documentedSecure API + webhooksNo per-document fees

Operations teams

A supplier operations team can see partner setup, validation, exceptions, and QuickBooks handoff in one workspace instead of chasing spreadsheets.

Healthcare billing

837, 835, and 270/271 workflows are explained in plain English, with HIPAA-aware handling and a documented BAA review path for diligence.

Developer teams

JSON/CSV in and X12 out, with API docs, webhooks, real-time status, and validation responses that make EDI feel like modern infrastructure.

Preview case studies

© 2026 CCCM Consulting LLC. All rights reserved.