X12 transaction guide · Acknowledgments

EDI 831 Application Control Totals

The X12 document used to transmit totals for a collection of transaction sets of the same type, so the receiver can check completeness.

Sent by
Sender of a batch of transactions
Received by
Receiver of the batch
Standard
ANSI ASC X12

What is an EDI 831?

The EDI 831 Application Control Totals is the ANSI X12 transaction set used to transmit totals associated with a collection of like transactions. All items reported in one 831 must be of the same transaction set type.

Control totals let the receiving application check that it received and processed everything: for example, a bank receiving a batch of payment orders can compare the count and total amount against the 831. It is commonly used with payment batches, where missing or duplicated items have direct financial consequences.

How the EDI 831 worksDiagram of the EDI 831 Application Control Totals. Sender of a batch of transactions sends it to receiver of the batch. It usually starts the exchange. It is usually followed by 997. Inside the ISA, GS and ST envelopes, X12 release 008010 requires, in the heading: BGN (Beginning Segment). 1 optional loops are listed by their first segment.How the EDI 831 worksApplication Control Totals: who sends it, where it fits and what the standard marks required1 WHERE IT FITSUSUALLY FOLLOWSStarts the exchangeEDI 831SENDERSender of a batch oftransactionsRECEIVERReceiver of the batch997 or 999 acknowledgment back, if the partners agreeUSUALLY FOLLOWED BY997FunctionalAcknowledgment2 WHAT X12 RELEASE 008010 REQUIRESInterchange: sender and receiver IDsISA … IEAFunctional group, ID code CTGS … GETransaction set 831ST … SEHEADINGBGNBeginning Segment+ 1 optional loop, starting with:AMTBlue box: required loop. Optional loops are listed by the segment that starts them; when a loop is used, that first segment is required. Optional segmentsoutside loops are not drawn.Structure: required segments and loops in the X12 008010 listing for the 831. Your trading partner's implementation guide adds its own requirements.
How the EDI 831 worksDiagram of the EDI 831 Application Control Totals. Sender of a batch of transactions sends it to receiver of the batch. It usually starts the exchange. It is usually followed by 997. Inside the ISA, GS and ST envelopes, X12 release 008010 requires, in the heading: BGN (Beginning Segment). 1 optional loops are listed by their first segment.How the EDI 831 worksApplication Control Totals: who sends it, whereit fits and what the standard marks required1 WHERE IT FITSUSUALLY FOLLOWSStarts the exchangeEDI 831SENDERSender of abatch oftransactionsRECEIVERReceiver of thebatch997 or 999 acknowledgment back, if the partnersagreeUSUALLY FOLLOWED BY997Functional Acknowledgment2 WHAT X12 RELEASE 008010 REQUIRESInterchange: sender and receiver IDs (ISA… IEA)Functional group, ID code CT (GS … GE)Transaction set 831 (ST … SE)HEADINGBGNBeginning Segment+ 1 optional loop, starting with:AMTBlue box: required loop. Optional loops are listedby the segment that starts them; when a loop isused, that first segment is required. Optionalsegments outside loops are not drawn.Structure: required segments and loops in the X12008010 listing for the 831. Your trading partner'simplementation guide adds its own requirements.

How to read this diagram: the top row shows who sends the 831, to whom, and which documents usually come before and after it. The lower part shows what X12 release 008010 itself requires: the envelopes around the 831 and the segments and loops the standard marks as required, area by area. Optional loops are listed by the segment that starts them rather than drawn in full. This is the standard's minimum, not a trading partner's requirement: each partner's implementation guide usually makes some optional loops mandatory, restricts the codes and may use a different release.

Expand diagram Download SVG

When it is used

  • Sending control totals for a batch of payment orders
  • Checking completeness of large transaction batches
  • Supporting reconciliation of processed items

Where it fits in the document flow

This document 831 Application Control Totals
Usually followed by 997 Functional Acknowledgment

Structure

Mandatory segments in the 831 (X12 release 008010)

The segments X12 release 008010 marks as mandatory at their level, in order. Segments inside optional loops are needed only when the loop is used. This is the standard's requirement, not your trading partner's: each partner's implementation guide names the release it uses, adds the optional segments it requires and restricts the values. The requirement status comes from one published X12 reference listing and has not been checked against a second source.

  • ST
  • BGN
  • AMT
  • SE

Practical example

The 831 in practice

A company sends its bank a batch of 820 payment orders. With the batch it sends an 831 stating the number of payments and the total amount. The bank's system checks the received batch against the totals before processing, and a mismatch would hold the batch for investigation.

Implementation

Implementation considerations for the 831

  • Include only one transaction set type per 831.
  • Calculate totals from what is actually sent, not from source data.
  • Define what happens when totals do not match.
  • Agree with the receiver which totals it checks.

Need help with the EDI 831?

ECOM maps, tests and monitors X12 documents for your trading partners and integrates them with your ERP.