Organizational relationship transactions
The Organizational Relationships transaction is a master data message used to share structured information about organizational hierarchies, relationships, and identifiers between trading partners. It defines how companies, business units, and locations relate to one another—such as parent–subsidiary, company–location, or owner–partner relationships—and includes key data such as names, addresses, contacts, and identifiers like GLNs, DUNS numbers, or internal codes.
The organizational relationship helps ensure that all operational transactions—such as purchase orders (POs), advance ship notices (ASNs), invoices, and chargebacks reference consistent and aligned entities across systems. By centralizing and standardizing this information, it eliminates the need to repeat full organizational details in every transaction, reducing manual entry, minimizing errors, and improving data accuracy throughout the supply chain.
The organizational relationship is sent by the trading partner that owns or manages the authoritative organizational master data—such as a retailer, manufacturer, Marketing Authorization Holder (MAH), distributor, 3PL, or a centralized master data hub. It is received by partners who must align to this structure, including contract manufacturers (CMOs), suppliers, wholesalers, and logistics providers. The direction of the transaction depends on who maintains the master data and who needs to adopt it, and it can flow in either direction based on the partnership context.
The organizational relationship is commonly exchanged during partner onboarding, data alignment efforts, or when there are updates to organizational structures, relationships, or address changes. To ensure smooth and accurate downstream processing, the transaction must follow the organizational relationship format, include all required identifiers and relationship types, and comply with partner-specific implementation guidelines. It must also be kept up to date to reflect current organizational structures.
By implementing the organizational relationship transaction, trading partners can streamline onboarding, improve transaction accuracy, reduce redundant data entry, and maintain alignment across interconnected systems—supporting operational efficiency and regulatory compliance.
Organizational relationship(X12)
Organizational Relationships transaction is a master data message used to share structured information about organizational hierarchies, relationships, and identifiers between trading partners.
Contact your TraceLink Services representative for more information about integrating with this message.
- Message Type: MPC_ORGANIZATIONAL_RELATIONSHIP
- X12 Format: ORGANIZATIONALRELATIONSHIP
- Transform Names:
B2B_EDI_X12_816_OrganizationalRelationships_IB_V1
B2B_EDI_X12_816_OrganizationalRelationship_OB_V1
GuidelinesInput Element Occurs Length Description Example ISA 1…1 - Required. ISA interchange envelope. - ISA01 1…1 2/2 Required. Qualifier for authorization control number in ISA02. 00 ISA02 1…1 10/10 Required. Information used for additional identification or authorization of the interchange sender or the data in the interchange/ 10 spaces a valid entry. - ISA03 1…1 2/2 Required. Qualifier for security information in ISA04. 00 ISA04 1…1 10/10 Required. Identifies security information about the interchange sender or data. - ISA05 1…1 2/2 Required. Interchange sender partner ID qualifier.
Valid values:01– Duns (Dun & Bradstreet).02– Standard Carrier Alpha Code.03– Federal Maritime Commission.04– International Air Transport Association.07– Global Location Number (GLN).08– UCC EDI Communications ID (Comm ID).09– X.121 (CCITT).10– Department of Defense (DoD) Activity Address Code.11– Drug Enforcement Administration identifier.12– Telephone Companies.13– Used for UCS Transmissions. Includes Area Code and Telephone Number of a Modem.14– Duns Plus Suffix.15– Petroleum Accountants Society of Canada Company Code.16– DINS Number With 4-Character Suffix.17– American Bankers Association (ABA) Transit Routing Number (Including Check Digit, 9 Digit).18– Association of American Railroads (AAR) Standard Distribution Code.19– EDI Council of Australia (EDICA) Communications ID Number (COMM ID).20– Health Industry Number (HIN).21– Integrated Postsecondary Education Data System.22– Federal Interagency Commission on Education, or FICE.23– National Center for Education Statistics Common Core of Data 12-Digit Number for Pre-K-Grade 12 Institutes.24– The College Board's Admission Testing Program 4-Digit Code of Postsecondary Institutes, or ATP.25– 4-Digit Code of Postsecondary Institutions.26– Statistics of Canada List of Postsecondary Institutions.27– Carrier Identification Number as assigned by Health Care Financing Administration (HCFA).28– Fiscal Intermediary Identification Number as assigned by Health Care Financing Administration (HCFA).29– Medicare Provider and Supplier Identification Number assigned by Health Care Financing Administration (HCFA).30– U.S. Federal Tax Identification Number.31– Jurisdiction Identification Number Plus 4 assigned by the International Association of Industrial Accident Boards and Commissions (IAIABC).32– U.S. Federal Employer Identification Number (FEIN).33– National Association of Insurance Commissioners Company Code (NAIC).34– Medicaid Provider and Supplier Identification Number as assigned by individual State Medicaid Agencies in conjunction with Health Care Financing Administration (HCFA).35– Statistics Canada Canadian College Student Information System Institution Codes36– Statistics Canada University Student Information System Institution Codes.37– Society of Property Information Compilers and Analysts (SPICA).38– The College Board and ACT, Inc. 6-Digit Code List of Secondary Institutions.AM– Association Mexicana del Codigo de Producto (AMECOP) Communication ID.NR– National Retail Merchants Association (NRMA) - Assigned.SA– User Identification Number as assigned by the Safety and the Fitness Electronic Records (SAFER) System.SN– Standard Address Number.ZZ– Mutually Defined.
07 ISA06 1…1 15/15 Required. Interchange sender identification mapping to:
fileSenderNumber with party type defined in ISA05.
linkIdentifier
x12InterchangeControlEnvelope for sender in X12 control file header.
7777776067344 ISA07 1…1 2/2 Required. Interchange receiver partner ID qualifier.
Valid values:01– Duns (Dun & Bradstreet).02– Standard Carrier Alpha Code.03– Federal Maritime Commission.04– International Air Transport Association.07– Global Location Number (GLN).08– UCC EDI Communications ID (Comm ID).09– X.121 (CCITT).10– Department of Defense (DoD) Activity Address Code.11– Drug Enforcement Administration identifier.12– Telephone Companies.13– Used for UCS Transmissions. Includes Area Code and Telephone Number of a Modem.14– Duns Plus Suffix.15– Petroleum Accountants Society of Canada Company Code.16– DINS Number With 4-Character Suffix.17– American Bankers Association (ABA) Transit Routing Number (Including Check Digit, 9 Digit).18– Association of American Railroads (AAR) Standard Distribution Code.19– EDI Council of Australia (EDICA) Communications ID Number (COMM ID).20– Health Industry Number (HIN).21– Integrated Postsecondary Education Data System.22– Federal Interagency Commission on Education, or FICE.23– National Center for Education Statistics Common Core of Data 12-Digit Number for Pre-K-Grade 12 Institutes.24– The College Board's Admission Testing Program 4-Digit Code of Postsecondary Institutes, or ATP.25– 4-Digit Code of Postsecondary Institutions.26– Statistics of Canada List of Postsecondary Institutions.27– Carrier Identification Number as assigned by Health Care Financing Administration (HCFA).28– Fiscal Intermediary Identification Number as assigned by Health Care Financing Administration (HCFA).29– Medicare Provider and Supplier Identification Number assigned by Health Care Financing Administration (HCFA).30– U.S. Federal Tax Identification Number.31– Jurisdiction Identification Number Plus 4 assigned by the International Association of Industrial Accident Boards and Commissions (IAIABC).32– U.S. Federal Employer Identification Number (FEIN).33– National Association of Insurance Commissioners Company Code (NAIC).34– Medicaid Provider and Supplier Identification Number as assigned by individual State Medicaid Agencies in conjunction with Health Care Financing Administration (HCFA).35– Statistics Canada Canadian College Student Information System Institution Codes36– Statistics Canada University Student Information System Institution Codes.37– Society of Property Information Compilers and Analysts (SPICA).38– The College Board and ACT, Inc. 6-Digit Code List of Secondary Institutions.AM– Association Mexicana del Codigo de Producto (AMECOP) Communication ID.NR– National Retail Merchants Association (NRMA) - Assigned.SA– User Identification Number as assigned by the Safety and the Fitness Electronic Records (SAFER) System.SN– Standard Address Number.ZZ– Mutually Defined.
01 ISA08 1…1 15/15 Required. EDI receiver ID mapping to file control header and to ServiceLinkId.
Interchange receiver identification mapping to ediInterchangePartyValue for receiver in X12 control file header.
888888404358877 ISA09 1…1 6/6 Required. Interchange date in 6 char YYMMDD format. 231020 ISA10 1…1 4/4 Required. Interchange time in 4 char HHMM format. 1420 ISA11 1…1 1/1 Required. This value is dependent on X12 version.
Version
4012and earlier, this is the interchange control standards identifier. Valid value is U.Version
4020and later, this is the repetition separator, a delimiter that separates repeated occurrences of a data element or composite data structure, which must be different than the data element separator, component separator, and segment terminator."
^ ISA12 1…1 5/5 Required. Interchange control version number. This could be any X12 version. 00501 ISA13 1…1 9/9 Required. Interchange Control Number mapping to:
file control header
X12 control file header interchangeControlIdentifier
0000000000619827 ISA14 1…1 1/1 Required. Interchange level acknowledgment requested.
Valid values:
0 - No acknowledgment requested
1 - Interchange level acknowledgment requested
0 ISA15 1…1 1/1 Required. Indicates whether the interchange is for production, test, or information purposes.
Valid values:
I- InformationP- Production dataT- Test data
P ISA16 1…1 1/1 Required. Component element separator. Delimiter that separates data elements within a composite data structure. Must be different than the data element separator and segment terminator. > GS 1…* - GS group functional envelope. Child of ISA. Only one GS group expected per interchange. - GS01 1…1 2/2 Required. GS group function code. Valid value is AGShipping instruction Information.AG GS02 1…1 2/15 Required. Application Sender's Code. 2222224043588 GS03 1…1 2/15 Required. Application Receiver's Code. TRACELINK GS04 1…1 8/8 Required. Current date stamp in 8 char X12 date format YYYYMMDD. 20241020 GS05 1…1 4/8 Required. Current time stamp in 6 char X12 time format HHMMSS. 142000 GS06 1…1 1/9 Required. Group Control ID Number. 619827 GS07 1…1 1/2 Required. Responsible Agency Code.
Valid values:
T- Transportation Data Coordinating Committee (TDCC)X- Accredited Standards Committee X12
X GS08 1…1 1/12 Required. X12 message version code. This could be any X12 version. 005010 ST 1…* - ST transaction set envelope. Child of GS group. Only one ST transaction expected. - ST01 1…1 3/3 Required. Transaction set identifier code. 816 ST02 1…1 4/9 Required. Transaction set ID number. Counter for each ST segment beginning with 1. 0001 BHT 1…1 - Required. BGN Beginning Segment. - BHT01 1…1 4/4 Required. Identifies the type of hierarchical structure applied in the transaction, defining how hierarchical levels are related to one another.
Valid values:
0065- Structure type is company and its operating unit.0057- Structure type is supergroup its subgroup and member
0065 BHT02 1…1 2/2 Required. Transaction Set Purpose Code identifying purpose of transaction set.
Valid values:00– Original document, create in target.01– Cancel order.02– Create document or item from message.03– Delete document or item.04– Changes to document header.05– Replace entire document.06– Document is a confirmation.07– Duplicate transaction.08– Document or item status.11– Response message.13– Request message.16– Proposed document or item.17– Message canceled and reissued.22– Information only.24– Document is in draft state.45– Followup message.CO– Document or item has been corrected.
00 BHT03 0…1 1/80 Reference identifier defined for a particular transaction set. The sender's internal number used to identify this transaction set within the sender's application system. 8475 BHT04 0…1 8/8 Date the original transaction was generated in the sender's business application system, in X12 date format YYYYMMDD. 20160129 BHT05 0…1 4/8 Transaction time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD. 223344 DTM 0...* - Transaction document date or other header level dates. - DTM01 1…1 3/3 Required. Date type related to shipment events at port, in date format YYYYMMDD and time format (IDoc/ X12) HHMMSS.
Valid values:002- Delivery requested by date003- Invoice date004- Purchase order date007- Effective date008- Purchase order received date009- Processing date010- Shipment requested by date011- Date shipped015- Promotion start date016- Promotion end date017- Estimated delivery date018- Product availability date020- Check date023- Promotion order start date024- Promotion order end date025- Promotion ship start date026- Promotion ship end date035- Date of delivery document, ASN036- Expiration date037- Not before shipment date038- Not later shipment date040- Status (After and Including)041- Status (Prior and Including)050- Date goods receipt posted (received into available inventory)058- Customs Clearance date061- Cancel by date067- Current scheduled delivery date068- Scheduled shipment date069- Date of promised delivery070- Delivery schedule date074- Requested delivery date079- Promised for shipment date090- Report start date091- Report end date092- Contract effective date093- Contract expiration date094- Manufacturing date097- Transactional date creation102- Date goods issue posted133- Account receivable date139- Estimated140- Actual date146- Closing date161- Loaded on vessel date166- Message date168- Release date184- Inventory Update date188- Credit advice date189- Debit advise date196- Date Start197- End date208- Lot expiration date311- Latest receiving / cutoff date324- Returned date369- Estimated Departure Date370- Actual Departure date371- Estimated Arrival date372- Actual arrival date472- Date services rendered510- Date packed512- Warranty date514- Transfer date649- Document due date813- Customs entry date814- Payment due date922- Date of original receipt938- Order date964- Billing date999- Document dateAAG- Due dateVLU- Validity date
999 DTM02 0…1 8/8 Date defined by referenced date type in date format YYYY-MM-DD. Transform will pass thru whatever it finds in IDoc date and time fields. 20241215 DTM03 0…1 4/8 Time expressed in 24-hour clock time as follows. - DTM04 0…1 2/2 Time zone for referenced dates. ES DTM05 0…1 2/3 Describes the date format, time format, or date and time period format type.
Valid values:D6- YYMMDDD8- CCYYMMDDDD- DAYOFMONTHDT- CCYYMMDDHHMMMD- MMDDT- MMDDYYTM- HHMMTQ- MMYYTS- HHMMSSTT- MMDDYYYM- YYMM
DT DTM06 0…1 1/35 Describes the date format, time format, or date and time period. - REF(1) 0…100 - Reference segment for mapping to the transaction reference identifiers. - REF01 1…1 2/3 Required. Reference identification qualifier for the contract clas. Valid values include: CT REF02 0…1 1/80 Reference identifier value: 123456 REF03 0…1 1/80 Description defined by qualifier code in REF02 sub-340B REF(2) 0…30 - Reference segment for mapping to the transaction references. - REF01 1…1 2/3 Required. Reference identification qualifier for the contract clas. Valid values include: IA = Internal Vendor number IA REF02 0…1 1/80 Reference identifier value: 123456 REF03 0…1 1/80 Description defined by qualifier code in REF02 - N1 Loop 1…* - N1 segment loop at header for party address and reference information. - N1 1…1 - Required. Party identification - N101 1…1 2/3 Required. Entity qualifier for the Sender or Receiver party identifier and address information. Valid values include: - FR = Sender - TO = Receiver SU N102 0…1 1/60 Name Pharma customer N103 0…1 1/2 Identifier code qualifier. Valid values include: 1 = DUNS 2 = SCAC 9 = DUNS+4 11 = Drug Enforcement Agency registration number 21 = Health Industry Number 91 = Company identifier 92 = Company location identifier UL = Global Location Number UL N104 0…1 2/80 Party identifier as qualified by N103 mapping to companyIdentifierValue. 3333331013655 N2 0…2 - N2: Additional names: Child of customer party N1 name segment., we do support one iteration of N2 - N201 1…1 1/60 Required. Additional name 2 Pharma name2 N202 0…1 1/60 Additional name 2 Pharma name2 N3 0…2 - N3: Address: Child of customer party N1 name segment. - N301 1…1 1/55 Required. Street address 1 555 Neelan Road N302 0…1 1/55 Street address 2 Suite 123 N4 0…1 - N4: Geographic Location. Child of customer party N1 name segment. - N401 0…1 2/30 City name Sacramento N402 0…1 2/2 State or province code. Code (Standard state/province) as defined by appropriate government agency CA N403 0…1 3/15 Postal code. Code defining international postal zone code excluding punctuation and blanks. 95833 N404 0…1 2/3 Country code US N405 0…1 1/2 Type of location CA N406 0…1 1/30 Specific location 95833 N407 0…1 1/3 Country subdivision US REF(1) 0…12 - Reference segment for mapping to the transaction reference identifiers - REF01 1…1 2/3 Required. Reference identification qualifier for the contract clas. Valid values include: CT REF02 0…1 1/80 Reference identifier value: 123456 REF03 0…1 1/80 Description defined by qualifier code in REF02 sub-340B REF (2) 0…12 - Reference segment for mapping to the transaction references. - REF01 1…1 2/3 Required. Reference identifier qualifier. Code identifies the type of ID number sent in REF02. For Wal-Mart, qualifier IA is required for their internal vendor number. Valid values include: IA = Internal Vendor number IA REF02 0…1 1/80 Reference identifier value: 123456 REF03 0…1 1/80 Description defined by qualifier code in REF02 - PER 0…3 - PER segment explains about contact information for party business or location - PER01 1…1 2/2 Required. Contact type. Valid values include: - IC = Information contact - FC = Forwarder contact - RP = Responsible contact IC PER02 0…1 1/60 Contact name Grame Smith PER03 0…1 2/2 Communication qualifier TE PER04 0…1 1/2048 Contact phone number '897654 PER05 0…1 2/2 Communication qualifier EM PER06 0…1 1/2048 Contact email address gsmith@gmail.com HL Loop 1…* - Line item loop start for Organizational relationship, referring a line number in a transaction set - HL 1…1 - Required. Organizational hierarchical level for to denote its reporting level - HL01 1…1 1/12 Required. Hierarchical level counter. Increment each instance by 1 from the last. 1 HL02 0…1 1/12 Hierarchical identifier for the parent level of the curreent level. If there is no parent level this value would be the same as the current hierarchicalIdentifier. 2 HL03 1…1 1/2 Required. Code identifying the hierarchical level of the hierarchical group in the organization . Valid values include: - 35 = Company or corporate level - BE = Business entity level - 24 = Super group level - 36 = Operating unit, such as store, warehouse 35 HL04 0…1 1/1 Code indicating if there are child data segments subordinate to the current HL level. Valid values: - 1 = a child line item segment follows - 0 = no child line item segment follows 1 N1 Loop 1…* - N1 segment loop at items for organizational entities relationships and address and reference information. - N1 1…1 - Required. Party identification - N101 1…1 2/3 Required. Entity qualifier for the Sender or Receiver party identifier and address information. Valid values include: - CQ = Sender - TO = Receiver SU N102 0…1 1/60 Name Pharma customer N103 0…1 1/2 Identifier code qualifier. Valid values include: 1 = DUNS 2 = SCAC 9 = DUNS+4 11 = Drug Enforcement Agency registration number 21 = Health Industry Number 91 = Company identifier 92 = Company location identifier UL = Global Location Number UL N104 0…1 2/80 Party identifier as qualified by N103 mapping to companyIdentifierValue. 3333331013655 N2 0…2 - N2: Additional names: Child of customer party N1 name segment., we do support one iteration of N2 - N201 1…1 1/60 Required. Additional name 2 Pharma name2 N202 0…1 1/60 Additional name 2 Pharma name2 N3 0…2 - N3: Address: Child of customer party N1 name segment. - N301 1…1 1/55 Required. Street address 1 555 Neelan Road N302 0…1 1/55 Street address 2 Suite 123 N4 0…1 - N4: Geographic Location. Child of customer party N1 name segment. - N401 0…1 2/30 City name Sacramento N402 0…1 2/2 State or province code. Code (Standard state/province) as defined by appropriate government agency CA N403 0…1 3/15 Postal code. Code defining international postal zone code excluding punctuation and blanks. 95833 N404 0…1 2/3 Country code US N405 0…1 1/2 Type of location CA N406 0…1 1/30 Specific location 95833 N407 0…1 1/3 Country subdivision US PER 0…3 - PER segment explains about contact information for party business or location - PER01 1…1 2/2 Required. Contact type. Valid values include: - IC = Information contact - FC = Forwarder contact - RP = Responsible contact IC PER02 0…1 1/60 Contact name Grame Smith PER03 0…1 2/2 Communication qualifier TE PER04 0…1 1/2048 Contact phone number '897654 PER05 0…1 2/2 Communication qualifier EM PER06 0…1 1/2048 Contact email address gsmith@gmail.com REF(1) 0…100 - Reference segment for mapping to the transaction reference identifiers - REF01 1…1 2/3 Required. Reference identification qualifier for the contract clas. Valid values include: CT REF02 0…1 1/80 Reference identifier value: 123456 REF03 0…1 1/80 Description defined by qualifier code in REF02 sub-340B REF(2) 0…30 - Reference segment for mapping to the transaction references. - REF01 1…1 2/3 Required. Reference identification qualifier for the contract clas. Valid values include: - DNS = Duns plus sufix number - AEM = Distribution Center Number - ST = Store number DNS REF02 0…1 1/80 Reference identifier value: 123456 REF03 0…1 1/80 Description defined by qualifier code in REF02 - DTM 0...* - Dates, Effective date of organization entity data changes - DTM01 1…1 3/3 Required. Date type related to shipment events at port, in date format YYYYMMDD and time format (IDoc/ X12) HHMMSS. Valid values include: - 007 = Effective date 007 DTM02 0…1 8/8 Date defined by referenced date type in date format YYYY-MM-DD. Transform will pass thru whatever it finds in IDoc date and time fields. 20241215 DTM03 0…1 4/8 Time expressed in 24-hour clock time as follows - DTM04 0…1 2/2 Time zone for referenced dates ES DTM05 0…1 2/3 Describes the date format, time format, or date and time period format type. Valid values are: - DT = CCYYMMDDHHMM - T = MMDDYY DT DTM06 0…1 1/35 Describes the date format, time format, or date and time period. - ASI 0…1 - Indicates type of action to be taken or taken on the organization data - ASI01 1...1 '1/2 Required. Identifies the business action to be performed or that has been performed on an entity, valid values inlcude: - 1 = Adding - 2 = Update the record in master data. - 3 = Deleting the record 1 ASI02 1...1 '3/3 Required. Specifies the type or scope of maintenance applied when performing the action, such as full replacement or selective update of entity data, valid values: - 001 = Existing item record is being updated - 002 = This item should no longer exist / be used - 003 = This is a brand-new item — create it 001 ASI03 0...1 '3/3 Indicates the reason or justification for the action or status change of the entity. Note: No sample values were found in the guidelines. - SE 1…1 - Required. ST … SE transaction set trailer envelope. Child of GS group. Only one ST transaction expected. - SE01 1…1 1/10 Required. Total count of segments in ST … SE transaction set including ST and SE segments. 10 SE02 1…1 4/9 Required. Transaction set control number 0001 GE 1…1 - Required. GS … GE functional group trailer envelope. Child of ISA interchange. Only one GS group expected. - GE01 1…1 1/6 Required. Number of transaction sets in functional group 5 GE02 1…1 1/9 Required. Functional group control number 619827 IEA 1…1 - Required. ISA … IEA interchange control trailer envelope. Only one interchange expected per transmission. - IEA01 1…1 1/5 Required. Number of functional groups in interchange. 1 IEA02 1…1 9/9 Required. Interchange control number 0000000000619827


