Generate 997 Functional Acknowledgment
generate_997_ackGenerate an X12 997 Functional Acknowledgment for a given EDI interchange, indicating acceptance (A) for valid documents or rejection (R) for structural errors.
Instructions
Build an X12 997 Functional Acknowledgment answering the given X12 interchange (sender/receiver swapped, one AK2/AK5 pair per transaction). The ack status follows envelope validation: clean file → A, structural errors → R.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Raw EDI document text: an X12 interchange (ISA...IEA) or EDIFACT interchange (UNA/UNB...UNZ) | |
| ack_control_number | No | Interchange control number to stamp on the acknowledgment (default 1001) |