Skip to main content

AK9 — Functional Group Response Trailer

X12 AK9 segment in 997 acknowledgements: functional group disposition — accepted, partially accepted, or rejected.

AK9 segment facts

  • AK901 P (partially accepted) means some transaction sets in the group failed — resend only the rejected ST control numbers.
  • AK903 vs AK902 mismatch indicates the partner received fewer sets than you claimed in GE01.
  • SignalEDI classifies AK9 disposition in webhook payloads so operators see group status without reading raw 997.

What the AK9 segment does

AK9 summarizes the entire functional group's disposition after all AK2 loops. AK901 A/E/P/R tells integrators whether any transaction set in the group failed.

Loop: Once per 997, after AK2 loops

Common transaction sets: 997

Key elements

ElementNameDescription
AK901Functional group acknowledgement codeA=accepted, E=accepted but errors, P=partially accepted, R=rejected.
AK902Number of transaction sets includedCount of ST sets acknowledged in the group.
AK903Number receivedHow many sets the partner actually received.
AK904Number acceptedSets accepted without fatal errors.

Example AK9 segment

AK9*A*1*1*1~

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

Common AK9 errors

  • P partial acceptance ignored — some sets still need resend
  • R with no AK2 detail parsed

Related reference

Frequently asked questions

© 2026 SignalEDI Inc. All rights reserved.