PHPackages                             eskrano/php-edi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. eskrano/php-edi

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

eskrano/php-edi
===============

EDI Management for PHP (from Coedition)

1(5y ago)11.1kMITPHP

Since Feb 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/eskrano/php-edi-coedition)[ Packagist](https://packagist.org/packages/eskrano/php-edi)[ RSS](/packages/eskrano-php-edi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

PHP EDI
=======

[](#php-edi)

This is a php library for EDI management.

Testing
-------

[](#testing)

```
make test

```

Documentation
-------------

[](#documentation)

Docs are done via [couscous](http://couscous.io/docs/getting-started.html). So make sure you have it installed globally.

```
make doc-preview

```

Schedule For EDI Data Exchange
------------------------------

[](#schedule-for-edi-data-exchange)

- Inbound 832 - Price/Sales Catalog -A complete load of 832 file is sent daily between 10:00 PM and 11:30 PM EST. -No delta/change 832 files are sent.
- Inbound 846 - Inventory Inquiry/Advice -A delta/change 846 file at top of the hour -A complete load of 846 file is sent daily between 10:00 PM and 11:30 PM EST
- Inbound 855 – Purchase Order Acknowledgement -855 is sent within 2 hours of 850
- Inbound 856 – Advance Shipment Notice -856 is sent within 2 hours of post shipment
- Outbound / Outbound 997 – Functional Acknowledgement -A functional acknowledgement will be exchanged for every I/O within 2 hours of transaction

EDI Specifications and Id's
---------------------------

[](#edi-specifications-and-ids)

### FTP

[](#ftp)

Test (FTP)

ISA Qualifier &amp; ID : 12 &amp; 86643873224 GS ID: 86643873224

Production (FTP)

ISA Qualifier &amp; ID : 12 &amp; 86643873224 GS ID: 86643873224

EDI Specifications (Outbound-832 - ASC X12 004010)
--------------------------------------------------

[](#edi-specifications-outbound-832---asc-x12-004010)

### Envelope:

[](#envelope)

SegIDRef. Des.Elem.NameReq.TypeMax Usage**ISA****Interchange Control Header****M****1**01I01Authorization Information QualMID2/202I02Authorization InformationMAN10/1003I03Security Information QualifierMID2/204I04Security InformationMAN10/1005I05Interchange ID QualifierMID2/206I06Interchange Sender IDMAN15/1507I05Interchange ID QualifierMID2/208I07Interchange Receiver IDMAN15/1509I08Interchange DateMDT6/610I09Interchange TimeMTM4/411I10Interchange Control Standards IdMID1/112I11Interchange Control Version NumMID5/513I12Interchange Control NumberMN09/914I13Acknowledgment RequestedMID1/115I14Usage IndicatorMID1/116I15Component Element SeparatorM1/1**GS****Functional Group Header****M****1**01479Functional Identifier CodeMID2/22142Application Sender's CodeMAN2/1503124Application Receiver's CodeMAN2/1504373DateMDT8/805337TimeMTM4/80628Group Control NumberMN01/907455Responsible Agency CodeMID1/208480Version / Release / Industry IdMAN1/12**Heading:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**ST****Transaction Set Header****M****1**01143Transaction Set Identifier CodeMID3/302329Transaction Set Control NumberMAN4/9**BCT****Beginning Segment****M****1**01683Catalog PurposeMID2/2*SC – Sales Catalog*02684Catalog NumberMAN1/1509352Catalog TitleOAN1/8010353Transaction set purposeOID2/2*00 – Original – Complete***Detail:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**LIN****Line Item Description****M****1**01350Assigned IdentificationMAN1/2002235Product/Service ID QualifierMID203234Product Service ID*VP - Vendor’s (Seller’s) Part Number**M**AN**1/18**MG - Manufacturer’s Part Number**M**AN**1/20**UP - UPC Consumer Package Code**M**AN**1/20 No dashes***PID****Product/Item Description****M****1**01349Item Description TypeMID1/1*F – Free Form*05352DescriptionMAN1/40**PO4****Item Physical Details****M****1**03355Unit or Basis for MeasurementMAN2/2*EA - each*06384Gross Weight (in lbs)ON24/9 (6.2)1082Length (in inches)ON24/8 (5.2)11189Width (in inches)ON24/8 (5.2)1265Height (in inches)ON24/8 (6.2)**CTP****Pricing Information****M****1****25**01687Class of Trade CodeMID2/2*DI - Distributor*02236Price Identifier CodeMID3/3*‘CON’,’MSR’,’MNC’*03212PriceMN21/10 (8.2)**Summary:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**CTT****Transaction Totals****M****1**01354Number of Line ItemsMN01/6**SE****Transaction Set Trailer****M****1**196Number of Included SegmentsMN01/1002329Transaction Set Control NumberMAN4/9**Envelope:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**GE****Functional Group Trailer****M**10197Number of Transaction Sets InclMN01/60228Group Control NumberMN01/9**IEA****Interchange Control Trailer****M****1**01I16Num of Included Functional GrpsMN01/502I12Interchange Control NumberMN09/9**EDI-832 Sample data**

```
ISA|00|          |00|          |ZZ|COEDITION     |ZZ|PARTNER          |000613|0046|X|00401|000000141|0|T|
GS|SC|COEDITION|PARTNER|20080211|0046|146|X|004010
ST|832|0031
BCT|SC|1470279260||||||||00
LIN|2|VP|ATSATC15|MF|ATC-15-50
PID|F||||AMERICAN TERMINAL 15 AMP FUSE
PO4|||EA|||0001
CTP|DI|CON|9.99
LIN|3|VP|PET10-6003|MF|SEI#200-990
PID|F|||||PLASTIC COMPASS
PO4|||EA|||0001
CTP|DI|CON|0.79
CTT|1562
SE|12|0001
GE|1|361
IEA|1|169200002

```

### EDI Specifications (Outbound-846 - ASC X12 004010)

[](#edi-specifications-outbound-846---asc-x12-004010)

**Envelope:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**ISA****Interchange Control Header****M****1**01I01Authorization Information QualMID2/202I02Authorization InformationMAN10/1003I03Security Information QualifierMID2/204I04Security InformationMAN10/1005I05Interchange ID QualifierMID2/206I06Interchange Sender IDMAN15/1507I05Interchange ID QualifierMID2/208I07Interchange Receiver IDMAN15/1509I08Interchange DateMDT6/610I09Interchange TimeMTM4/411I10Interchange Control Standards IdMID1/112I11Interchange Control Version NumMID5/513I12Interchange Control NumberMN09/914I13Acknowledgment RequestedMID1/115I14Usage IndicatorMID1/116I15Component Element SeparatorM1/1**GS****Functional Group Header****M****1**01479Functional Identifier CodeMID2/22142Application Sender's CodeMAN2/1503124Application Receiver's CodeMAN2/1504373DateMDT8/805337TimeMTM4/80628Group Control NumberMN01/907455Responsible Agency CodeMID1/208480Version / Release / Industry IdMAN1/12**Heading:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**ST****Transaction Set Header****M****1**1143Transaction Set Identifier CodeMID3/32329Transaction Set Control NumberMAN4/9**BIA****Beg. Segment for Inv. Inquiry****M****1**01353Transaction Set Purpose CodeMID2/2*00 – Original**25 - Incremental*02755Report Type CodeMID2/2*DD – Distributor Inventory Report*03127Reference IdentificationMAN1/3004373DateMDT8/8**Detail:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**LIN****Line Item Description****M****1**01350Assigned IdentificationMAN1/202235Product/Service ID QualifierMID23234Product Service ID*VP - Vendors Part Number**M**AN**1/18***CTP****Pricing Information****M****1**01687Class of Trade CodeMID2/22236Price Identifier (CON or MSR)MID3/33212Unit PriceMR1/17*CTP is Optional if you are sending an 832, if no 832, CTP is mandatory***QTY****Quantity****M****10**01673Quantity QualifierMID2**33 – Quantity Available for sale**02380QuantityMID1/1503C001Composite Unit of MeasureO**EA – Each****Summary:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**CTT****Transaction Totals****M****1**01354Number of Line ItemsMN01/6**SE****Transaction Set Trailer****M****1**196Number of Included SegmentsMN01/1002329Transaction Set Control NumberMAN4/9**Envelope:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**GE****Functional Group Trailer****M****1**0197Number of Transaction Sets InclMN01/60228Group Control NumberMN01/9**IEA****Interchange Control Trailer****M****1**01I16Num of Included Functional GrpsMN01/502I12Interchange Control NumberMN09/9**EDI-846 Sample data**

```
ISA|00|          |00|          |ZZ|COEDITION       |ZZ|PARTNER          |000301|2106|U|00401|169600037|1|T||
GS|IB|COEDITION|PARTNER|20000301|2106|39|X|004010
ST|846|0001
BIA|00|DD|0001|20080211
LIN|1|VP|PMXMLLT1
CTP|DI|CON|0.79
CTP|DI|MSR|1.79
QTY|33|7|EA
CTT|1
SE|06|0001
GE|1|39
IEA|1|169600037

```

### EDI Specifications (Inbound-850 - ASC X12 004010)

[](#edi-specifications-inbound-850---asc-x12-004010)

**Envelope:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**ISA****Interchange Control Header****M****1**01I01Authorization Information QualMID2/202I02Authorization InformationMAN10/1003I03Security Information QualifierMID2/204I04Security InformationMAN10/1005I05Interchange ID QualifierMID2/206I06Interchange Sender IDMAN15/1507I05Interchange ID QualifierMID2/208I07Interchange Receiver IDMAN15/1509I08Interchange DateMDT6/610I09Interchange TimeMTM4/411I10Interchange Control Standards IdMID1/112I11Interchange Control Version NumMID5/513I12Interchange Control NumberMN09/914I13Acknowledgment RequestedMID1/115I14Usage IndicatorMID1/116I15Component Element SeparatorM1/1**GS****Functional Group Header****M****1**01479Functional Identifier CodeMID2/22142Application Sender's CodeMAN2/1503124Application Receiver's CodeMAN2/1504373DateMDT8/805337TimeMTM4/80628Group Control NumberMN01/907455Responsible Agency CodeMID1/208480Version / Release / Industry IdMAN1/12**Heading:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**ST****Transaction Set Header****M****1**1143Transaction Set Identifier CodeMID3/32329Transaction Set Control NumberMAN4/9**BEG****Beginning Segment for PO****M****1**01353Transaction Set Purpose CodeMID2/2*00 - Original*0292Purchase Order Type CodeMID2/2*DS - Dropship*03324Purchase Order NumberMAN1/2005373DateMDT8/8**REF****Reference Identification****O****5**1128Reference Identification QualifierMID2/32127Reference Identification*ZZ – Mutually Defined**O**AN**1/30***TD5****Carrier Details (Routing Seq)****O****1**1133Routing Sequence CodeMID1/2266Identification Code QualifierMID1/2367Identification CodeMAN1/4**N1****Name****M****1**198Entity Identifier CodeMID2/3*ST - Ship To*293Company NameMAN1/36**N2****Additional Name Information****O****2**193NameOAN1/36293Address (REF2)OAN1/36**N3****Address Information****M****2**1166Street AddressMAN1/362166Addl. Address (REF1)OAN1/36**N4****Geographic Location****M****1**119City NameMAN2/202156State or Province CodeMID2/23116Postal CodeMID5/10**PER****Administrative Com Contact****O****1**1366Contact Function CodeMID2/2*IC – Information Contact*293NameMAN1/36**Detail:**

SegIDRef. Des.Elem.NameReq.TypeMax UsagePO1Baseline Item DataM11350Assigned IdentificationMN01/42330Quantity OrderedMN01/103355Unit or Basis for MeasurementMID2/2*EA - Each*4212Unit PriceMN24/10 (8.2)6235Product/Service ID QualifierMID2/27234Product/Service ID*BP - Creative Computers Part Number**M**AN**1/20**VP - Vendors Part Number**M**AN**1/18***Summary:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**CTT****Transaction Totals****M****1**01354Number of Line ItemsMN01/6**SE****Transaction Set Trailer****M****1**196Number of Included SegmentsMN01/1002329Transaction Set Control NumberMAN4/9**Envelope:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**GE****Functional Group Trailer****M****1**0197Number of Transaction Sets InclMN01/60228Group Control NumberMN01/9**IEA****Interchange Control Trailer****M****1**01I16Num of Included Functional GrpsMN01/502I12Interchange Control NumberMN09/9**EDI-850 Sample data**

```
ISA|00|          |00|          |ZZ|PARTNER     |ZZ|COEDITION |000301|0936|U|00401|000000055|0|T||
GS|PO|PARTNER|COEDITION|20000301|0936|55|X|004010
ST|850|550001
BEG|00|DS|P51276290001||20000301
REF|ZZ|MUTUALLY DEFINED
TD5|1|01|UG
N1|ST|STEVE HATFIELD
N3|126 MELBY DRIVE
N4|BRAINERD|MN|56401
PER|IC|2188294767
PO1|0001|2|EA|0.79||VP|PET10-6003|BP|COMPASS
CTT|1
SE|11|550001
GE|2|55
IEA|1|000000055

```

### EDI Specifications (Outbound-855 - ASC X12 004010)

[](#edi-specifications-outbound-855---asc-x12-004010)

**Envelope:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**ISA****Interchange Control Header****M****1**01I01Authorization Information QualMID2/202I02Authorization InformationMAN10/1003I03Security Information QualifierMID2/204I04Security InformationMAN10/1005I05Interchange ID QualifierMID2/206I06Interchange Sender IDMAN15/1507I05Interchange ID QualifierMID2/208I07Interchange Receiver IDMAN15/1509I08Interchange DateMDT6/610I09Interchange TimeMTM4/411I10Interchange Control Standards IdMID1/112I11Interchange Control Version NumMID5/513I12Interchange Control NumberMN09/914I13Acknowledgment RequestedMID1/115I14Usage IndicatorMID1/116I15Component Element SeparatorM1/1**GS****Functional Group Header****M****1**01479Functional Identifier CodeMID2/22142Application Sender's CodeMAN2/1503124Application Receiver's CodeMAN2/1504373DateMDT8/805337TimeMTM4/80628Group Control NumberMN01/907455Responsible Agency CodeMID1/208480Version / Release / Industry IdMAN1/12**Heading:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**ST****Transaction Set Header****M****1**1143Transaction Set Identifier CodeMID3/32329Transaction Set Control NumberMAN4/9**BAK****Begin Segment for PO Acknowledge****M****1**01353Transaction Set Purpose CodeMID2/200 – Original02587Acknowledgment TypeMID2/2*AC Acknowledge - With Detail and Change**AD Acknowledge - With Detail, No Change**AK Acknowledge - No Detail or Change**AT Accepted**RD Reject with Detail**RJ Rejected - No Detail*03324Purchase Order NumberMAN1/204373DateMDT8/8**Detail:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**PO1****Baseline Item Data****M****1**01350Assigned IdentificationMN01/402330Quantity OrderedMN01/1003355Unit or Basis for MeasurementMID2/2*EA - each*04212Unit PriceMN24/10 (8.2)06235Product/Service ID QualifierMID2/27234Product/Service ID*VP - Vendors Part Number**M**AN**1/18***ACK****Line Item Acknowledgment****M****1**01668Line Item Status CodeMID2/2\*\*\*Allowable Acceptance Codes*AC – Item Accepted and Shipped**IA – Item Accepted*\*\*\*Allowable Reject Codes*IR – Item Rejected*02380QuantityMN01/1003355Unit or Basis for MeasurementMID2/2*EA - each*05373DateMDT8/8**Summary:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**CTT****Transaction Totals****M****1**01354Number of Line ItemsMN01/6**SE****Transaction Set Trailer****M****1**196Number of Included SegmentsMN01/1002329Transaction Set Control NumberMAN4/9**Envelope:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**GE****Functional Group Trailer****M****1**0197Number of Transaction Sets InclMN01/60228Group Control NumberMN01/9**IEA****Interchange Control Trailer****M****1**01I16Num of Included Functional GrpsMN01/502I12Interchange Control NumberMN09/9**EDI-855 Sample data**

```
ISA|00|          |00|          |ZZ|COEDITION |ZZ|COEDITION          |000218|0726|U|00401|000001117|0|P|>
GS|PR|xxxxxxxx|COEDITION|20000218|0726|1117|X|004010
ST|855|1493
BAK|00|AD|CUSTPO|20000218
PO1|0001|3|EA|0.79||VP|PET10-6003
ACK|IA|3|EA||20000218
CTT|1
SE|6|1493
GE|1|1117
IEA|1|000001117

```

### EDI Specifications (Outbound-856 - ASC X12 004010)

[](#edi-specifications-outbound-856---asc-x12-004010)

**Envelope:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**ISA****Interchange Control Header****M****1**01I01Authorization Information QualMID2/202I02Authorization InformationMAN10/1003I03Security Information QualifierMID2/204I04Security InformationMAN10/1005I05Interchange ID QualifierMID2/206I06Interchange Sender IDMAN15/1507I05Interchange ID QualifierMID2/208I07Interchange Receiver IDMAN15/1509I08Interchange DateMDT6/610I09Interchange TimeMTM4/411I10Interchange Control Standards IdMID1/112I11Interchange Control Version NumMID5/513I12Interchange Control NumberMN09/914I13Acknowledgment RequestedMID1/115I14Usage IndicatorMID1/116I15Component Element SeparatorM1/1**GS****Functional Group Header****M**101479Functional Identifier CodeMID2/22142Application Sender's CodeMAN2/1503124Application Receiver's CodeMAN2/1504373DateMDT8/805337TimeMTM4/80628Group Control NumberMN01/907455Responsible Agency CodeMID1/208480Version / Release / Industry IdMAN1/12**Heading:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**ST****Transaction Set Header****M****1**1143Transaction Set Identifier CodeMID3/32329Transaction Set Control NumberMAN4/9**BSN****Beginning Segment for Ship Notice****M****1**1353Transaction Set Purpose CodeMID2/22396Shipment IdentificationMAN2/303373DateMDT8/84337TimeMTM4/8**Detail:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**HL****Hierarchical Level****M****1**1628Hierarchical ID NumberMAN1/123735Hierarchical Level CodeMID1/2*S - Shipped***TD5****Carrier Details (Routing Seq/Time)****O****1**266Identification Code QualifierCID1/2367Shipping Method CodeCID2/80**REF****Reference Identification****O****1**1128Reference Identification QualifierMID2/2*SI – Shipper’s Identifying Number*2127Reference Identification (Tracking #)CAN1/30**DTM****Date/Time Qualifier****O****1**1374Date/Time QualifierMID3/3*011 - Shipped*2373DateCDT8/8**HL****Hierarchical Level****M****1**1628Hierarchical ID NumberMAN1/123735Hierarchical Level CodeMID1/2*O – Order Level***PRF****Purchase Order Reference****O****1**1324Purchase Order NumberMAN1/22**HL****Hierarchical Level****M****1**1628Hierarchical ID NumberMAN1/123735Hierarchical Level CodeMID1/2*I – Item Level***LIN****Line Identification****O****1**1350Assigned IdentificationOAN1/202235Product/Service ID QualifierMID2/2*VP – Vendor’s(Seller’s) Part Number*3234Product/Service IDMAN1/48**SN1****Item Detail (Shipment)****O****1**2382Number of Units ShippedMR1/103355Unit or Basis for Measurement CodeMID2/2**Summary:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**SAC****Service, Promotion, Allowance****O****1**1248Allowance or Charge IndicatorMID1/1*C – Charge*21300Service, Promotion, AllowanceMID4/4*G830 – Shipping and Handling*5610AmountON21/15 (8.2)**CTT****Transaction Totals****M****1**01354Number of Line ItemsMN01/6**SE****Transaction Set Trailer****M****1**196Number of Included SegmentsMN01/1002329Transaction Set Control NumberMAN4/9**Envelope:**

SegIDRef. Des.Elem.NameReq.TypeMax Usage**GE****Functional Group Trailer****M****1**0197Number of Transaction Sets InclMN01/60228Group Control NumberMN01/9**IEA****Interchange Control Trailer****M****1**01I16Num of Included Functional GrpsMN01/502I12Interchange Control NumberMN09/9**EDI-856 Sample data**

```
ISA|00|          |00|          |ZZ|COEDITION|ZZ|PARTNER          |000131|0326|U|00401|000022429|0|T|>
GS|SH| COEDITION|PARTNER|000131|0326|22429|X|004010
ST|856|316079
BSN|00|0104779658001|20080401|010356
HL|1||S
TD5||01|UPG
REF|SI|1Z462E560365230530
DTM|011|20000209
HL|2||O
PRF|CUSTPONUMBER
HL|3||I
LIN|0001|VP|PET10-6003
SN1||1|EA
CTT|1
SE|13|316079
GE|1|23319
IEA|1|000023319

```

### EDI Specifications (Outbound-997 - ASC X12)

[](#edi-specifications-outbound-997---asc-x12)

**Purpose:** This draft standard for trial use contains the format and establishes the data contents of the Functional Acknowledgment Transaction Set (997) for use within the context of an Electronic Data Interchange (EDI) environment. The transaction set can be used to define the control structures for a set of acknowledgments to indicate the results of the syntactical analysis of the electronically encoded documents. The encoded documents are the transaction sets, which are grouped in functional groups, used in defining transactions for business data interchange. This standard does not cover the semantic meaning of the information encoded in the transaction sets.

**Not Defined:**

IdSegment NameReqMax UseRepeatNotesUsageISAInterchange Control HeaderM1Must useGSFunctional Group HeaderM1Must use**Heading:**

IdSegment NameReqMax UseRepeatNotesUsageSTTransaction Set HeaderM1N1/010Must useAK1Functional Group Response HeaderM1N1/020Must useAK2 - Loop999999N1/030LAK2Transaction Set Response HeaderO1N1/030UsedAK5Transaction Set Response TrailerM1Must useAK9Functional Group ResponseM1Must useSETransaction Set TrailerM1Must use**Not Defined:**

IdSegment NameReqMax UseRepeatNotesUsageGEFunctional Group TrailerM1Must UseIEAInterchange Control TrailerM1Must Use#### ISA Interchange Control Header

[](#isa-interchange-control-header)

**Loop:****Level:****Usage:** Mandatory **Max Use:** 1 **Purpose:** To start and identify an interchange of zero or more functional groups and interchange-related control segments.

RefIDNameReqTypeMin/MaxValue/CommentsISA01I01QualifierMID2/20ISA02I02AuthorizationMAN10/10BlanksISA03I03QualifierMID2/20ISA04I04SecurityMAN10/10BlanksISA05I05QualifierMID2/201 – DUNS08 – UCC Comm ID12 – Telephone NumberZZ – Mutually Defined (Valoran Supplier ID)ISA06I06Sender IDMAN15/15Duns NumberUCC Communication IDTelephone NumberValoran Supplier IDISA07I05QualifierMID2/212 – Telephone NumberISA08I07Receiver IDMAN15/15Telephone Number – for Valoran use 5215382901ISA09I08DateMDT6/6YYMMDDISA10I09TimeMTM4/4HHMM (UTC)ISA11I65Repetition SeparatorM1/1UISA12I11Interchange Control Version NumberMID5/500501ISA13I12Interchange Control NumberMNO9/9Sequential NumberISA14I13Request AcknowledgmentMID1/10ISA15I14Test IndicatorMID1/1P – ProductionT – TestISA16I15Component Element SeparatorM1/1&gt;#### GS Functional Group Header

[](#gs-functional-group-header)

**Loop:****Level:****Usage:** Mandatory **Max Use:** 1 **Purpose:** To indicate the beginning of a functional group and to provide control. **Notes:**

RefIDNameReqTypeMin/MaxValue/CommentsGS01479IDMID2/2FAGS02142Sender’s CodeMAN2/15Same as ISA06GS03124Receiver’s CodeMAN2/15Same as ISA08GS04373DateMDT8/8CCYYMMDD (group date)GS05337TimeMTM4/8HHMM (group time – UTC)GS0628Group Control NumberMNO1/9Sequential Number (same as GE02)GS07455Agency CodeMID1/2XGS08480VersionMAN1/12005010#### ST Transaction Set Header

[](#st-transaction-set-header)

Loop: Level: Heading Usage: Mandatory Max Use: 1 Purpose: To indicate the start of a transaction set and to assign a control number. Notes:

RefIDNameReqTypeMin/MaxValue/CommentsST01143Transaction Set Identifier CodeMID3/3997 Functional AcknowledgementST02329Transaction Set Control NumberMAN4/9#### AK1 Functional Group Response Header

[](#ak1-functional-group-response-header)

Loop: Level: Heading Usage: Mandatory Max Use: 1 Purpose: To start acknowledgment of a functional group Notes:

RefIDNameReqTypeMin/MaxValue/CommentsAK101479Functional Identifier CodeMID2/2PO – Purchase Order (850)IN – Invoice Information (810)PR – Purchase Order Acknowledgment (855)SH – Ship Notice (856)AK10228Group Control NumberMNO1/9#### Loop Transaction Set Response Header

[](#loop-transaction-set-response-header)

Loop: AK2 Usage: Used Repeat: 999999 Purpose: To start acknowledgment of a single transaction set. Notes:

IDSegment NameReqMax UseRepeatUsageAK2Transaction Set Response HeaderO1UsedAK5Transaction Set Response TrailerM1Must Use#### AK2 Transaction Set Response Header

[](#ak2-transaction-set-response-header)

Loop: AK2 Level: Heading Usage: Used Max Use: 1 Purpose: To start acknowledgment of a single transaction set Notes:

RefIDNameReqTypeMin/MaxValue/CommentsAK201143Transaction Set IdentifierMID3/3850 – Purchase Order855 – Purchase Order Acknowledgment856 – ASN810 – InvoiceAK202329Transaction Set Control NumberMAN4/9#### AK5 Transaction Set Response Trailer

[](#ak5-transaction-set-response-trailer)

Loop: AK2 Level: Heading Usage: Mandatory Max Use: 1 Purpose: To acknowledge acceptance or rejection and report errors in a transaction set Notes:

RefIDNameReqTypeMin/MaxValue/CommentsAK501717Transaction Set Acknowledgement CodeMID1/1A - AcceptedE - Accepted But Errors Were NotedR - RejectedE - Accepted But Errors Were NotedR - Rejected#### AK9 Functional Group Response Trailer

[](#ak9-functional-group-response-trailer)

Loop: Level: Heading Usage: Mandatory Max Use: 1 Purpose: To acknowledge acceptance or rejection of a functional group and report the number of included transaction sets from the original trailer, the accepted sets, and the received sets in this functional group Notes:

RefIDNameReqTypeMin/MaxValue/CommentsAK901715Functional Group Acknowledge CodeMID1/1A -AcceptedE -Accepted But Errors Were NotedR -RejectedAK90297Number of Transaction Sets IncludedMNO1/6AK903123Number of Received Transaction SetsMNO1/6AK9042Number of Accepted Transaction SetsMNO1/6#### SE Transaction Set Trailer

[](#se-transaction-set-trailer)

Loop: Usage: Mandatory Max Use: 1 Purpose: To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments Notes:

RefIDNameReqTypeMin/MaxValue/CommentsSE0196Number of Included SegmentsMNO1/10Total Number of SegmentsSE02329Transaction Set Control NumberOAN4/9Sum of values of the specified data element.#### GE Functional Group Trailer

[](#ge-functional-group-trailer)

Loop: Usage: Mandatory Max Use: 1 Purpose: End of functional group. Notes:

RefIDNameReqTypeMin/MaxValue/CommentsGE0197Number of Transaction Sets IncludedMNO1/6Total Number of Transaction SetsGE0228Transaction Set Control NumberMNO1/9Assigned number of originated by sender#### IEA Interchange Control Trailer

[](#iea-interchange-control-trailer)

Loop: Usage: Mandatory Max Use: 1 Purpose: End of functional group. Notes:

RefIDNameReqTypeMin/MaxValue/CommentsIEA01116Number of Included Functional GroupsMNO1/5Count of the number of functional groupsIEA02112Interchange Control NumberMNO9/9Assigned number of originated by sender**EDI-997 Sample data**

```
ISA|00|          |00|          |12|86643873224    |01|043109560      |071017|2150|U|00401|100000001|0|P|>
GS|FA|86643873224|043109560|20071017|2150|200000001|X|004010
ST|997|100000099
AK1|PR|100000001
AK2|855|100000001
AK5|A
AK2|855|100000002
AK5|A
AK2|855|100000003
SE|580|100000099
GE|1|100000099
IEA|1|100000099

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1071 days

Total

2

Last Release

1951d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a00713eb14ef4690ab52ec5e1cd2871015a03081b9be2d95d1306adf9dbb36b?d=identicon)[eskrano](/maintainers/eskrano)

---

Top Contributors

[![adevivo](https://avatars.githubusercontent.com/u/8822858?v=4)](https://github.com/adevivo "adevivo (15 commits)")[![ragboyjr](https://avatars.githubusercontent.com/u/1975857?v=4)](https://github.com/ragboyjr "ragboyjr (2 commits)")[![coedition-bot](https://avatars.githubusercontent.com/u/34363071?v=4)](https://github.com/coedition-bot "coedition-bot (1 commits)")[![eskrano](https://avatars.githubusercontent.com/u/10223123?v=4)](https://github.com/eskrano "eskrano (1 commits)")[![ragboy](https://avatars.githubusercontent.com/u/1896958?v=4)](https://github.com/ragboy "ragboy (1 commits)")

### Embed Badge

![Health badge](/badges/eskrano-php-edi/health.svg)

```
[![Health](https://phpackages.com/badges/eskrano-php-edi/health.svg)](https://phpackages.com/packages/eskrano-php-edi)
```

###  Alternatives

[dem13n/discussion-cards

Output of discussions in form of cards

164.6k](/packages/dem13n-discussion-cards)[tureki/phpcc

A PHP Library to use Google Closure Compiler compress Javascript

202.7k](/packages/tureki-phpcc)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
