Skip to content

X12 transaction code

X12 864 Text Message

X12 864 Text Message: explore its business purpose, mapping identifiers, validation tests and 15 partner references across 25 listed channels.

Standard
X12
Code
864
Partner references
15

Implementation guide

X12 864 mapping and validation

X12 864 Text Message is used when a trading partner sends information intended for a recipient. Preserve message reference, subject and related business document so the business message in your business system stays connected to the original document.

Use the version and implementation guide agreed with your trading partner to confirm required fields and responses.

Map records and test the business result
Document or decisionRecord and matching IDsWhat to test
Match the business record business message

message reference, subject and related business document

  • Define which combination of message reference, subject and related business document identifies one business record, its lines and any later revision.
Update the receiving system Processing the business message

ID assigned by the receiving system and processing result

  • Preserve line breaks and readable content in the receiving work queue.
  • Test an urgent message linked to an order and assign a human owner instead of silently filing it.
Check the processing result Processing status for the business message

Original document reference and matching response

  • Reconcile the business message with the source after a timeout before sending it again. A lost response can occur after the destination has already processed the document.

How the related documents differ

Each message represents a different business event. Use shared references to connect the records while tracking each message’s outcome separately.

Implementation steps

  1. Choose the starting event and owner

    Decide which application acts when a trading partner sends information intended for a recipient. Name the operational owner of the business message and the team that resolves rejected or ambiguous messages.

  2. Keep record IDs connected

    Map message reference, subject and related business document. Confirm qualifiers, code lists, units and date/time meaning against the agreed X12 version and partner guide. Preserve the source reference alongside any new destination identifier.

  3. Test failures before launch

    Run the failure cases in the mapping table against realistic business message data. Check how the receiving system reports a rejection and how your team corrects it without creating a duplicate.

  4. Track every document to completion

    Record transport delivery and document validation separately from successful business message processing. Give unresolved errors an owner and check the receiving system before approving retries.

Go-live checklist

  • An approved 864 sample and the agreed version and partner guide are available.
  • The mapping tests pass with realistic business message data.
  • Each submitted document can be traced through delivery, validation and processing in the receiving system.
  • Your team knows how to investigate and recover a rejected or timed-out business message without processing it twice.

Document structure

X12 864 Text Message at the element level

The X12 864 reference contains 16 segment entries and 52 data elements; 35 are marked mandatory in this reference. Use the version and partner guide agreed for your account to confirm required fields.

Segments
16
Data elements
52
Mandatory elements
35
Segments with elements marked mandatory in this reference
Segment Elements Mandatory
BMG 3 1
N1 4 1
MIT 1 1
N3 2 1
REF 2 1
PER 4 1
MSG 1 1
Key identifiers in 864
  • Transaction Set Purpose Code
  • Entity Identifier Code
  • Reference Identification
  • Address Information
  • Reference Identification Qualifier
  • Contact Function Code
  • Free-Form Message Text

Catalog breakdown

Where X12 864 Text Message appears in this catalog

The largest groups of classified 864 catalog entries are in building & hardware, grocery & food and retail.

By industry

  • building & hardware 7 channels
  • grocery & food 6 channels
  • retail 6 channels
  • apparel & footwear 6 channels

By network

  • ecUtopia 2 channels
  • InterTrade 1 channel

FAQ

X12 864 questions

What is X12 864 Text Message used for?

864 is used when a trading partner sends information intended for a recipient. It carries information for the business message. Match it to your business system using message reference, subject and related business document.

Which partners list X12 864?

The directory on this page links 15 partner entries that list this message. Choose your partner and channel, then confirm which messages and versions your account requires.

What should I map for X12 864?

Start with message reference, subject and related business document and the target business message. Define duplicate detection, allowed updates and response correlation before mapping individual fields. Use the partner guide to check required fields and their formats.

How should I test 864 error handling?

Preserve line breaks and readable content in the receiving work queue. Test an urgent message linked to an order and assign a human owner instead of silently filing it. Also test a lost response after destination processing so that a retry cannot create an unintended duplicate or repeated adjustment.

How does 864 relate to other EDI messages?

X12 850 Purchase Order; X12 824 Application Advice are related documents linked from this page. Match these documents through their order, shipment or invoice references. Agree which response marks each business step as complete.

What is the difference between 864 and 850?

864 is used when a trading partner sends information intended for a recipient. 850 is used when a buyer places an order. Each message represents a different business step. Keep their record references connected and track the processing result for each message.

Connect EDI to your business systems

See how Stacksync can fit your enterprise EDI workflow. Bring one partner guide and a sample exchange to plan the system mapping, exception handling and production rollout.