EDI 816 Ship-To Location Master Data From Retail Partners
For edi and integration analysts, it leads at shippers, 3pls and carriers · Understand the problem

EDI 816 Ship-To Location Master Data From Retail Partners: Illustrative TMS–ERP order and invoice handoff review beside a warehouse floor; not a client facility.
Quick answer: edi 816 organizational relationships
The X12 816 Organizational Relationships transaction lets a retailer send its store and distribution center list to suppliers. Each HL loop holds an N1 location with an ID qualifier such as 92 for the buyer's store number or UL for a GLN, plus N3 and N4 address lines, DTM effective dates and an ASI add, change or delete action.
TL;DR — what you’ll learn
- Load every 816 location with its ASI action and DTM effective date; a change or delete that is acknowledged by a 997 but never applied is the usual cause of deliveries to closed stores.
- Key ship-to records on the qualifier and ID the retailer uses on its 850 and expects on the 856, such as 92 for store number or UL for a 13-digit GLN.
- Hold changes in a dated queue and switch them on at the effective date, not on receipt, so open orders for the next 14 days still ship correctly.
- In India, each ship-to needs a GSTIN or URP, PIN and state code that agree; GSTN's 20 May 2026 advisory made Ship To GSTIN mandatory on bill-to/ship-to e-way bills.
Topics: edi 816 organizational relationships · store and dc address master · gln mapping edi 816 · ship-to master data · failed delivery prevention
All quantities, amounts, product codes and events are illustrative teaching examples.
The truck reached store 1184 at 10:45 and found an empty unit with a leasing sign in the window. The retailer had moved the store two miles east and sent the new address weeks earlier in an EDI 816. The supplier's translator accepted the file and returned a 997, so everyone assumed the change had landed. It had not: the load job only processed new locations, and the change record sat untouched in a staging table.
The 816 is the retailer's location master arriving by EDI, and treating it as master data, with validation, dated changes and an audit trail, prevents most deliveries to wrong or closed addresses. This guide shows how the transaction is built, which fields matter to the warehouse, the carrier bill and, for Indian buyers, the GST documents, and how to load changes so they take effect on the right day.
- Inside this explainer: the 816's structure, identifier qualifiers, action codes and effective dates, downstream use in orders, labels and rating, and India's GSTIN, PIN and state code checks on ship-to records.
- Artefacts to copy: an annotated sample 816, a worked cost of a stale record in $ and ₹, a validation rule table and a go-live checklist.
Why a retailer sends an 816 instead of a spreadsheet of stores
A retailer with hundreds of stores changes its location list every week, and the 816 lets every supplier receive those changes in one machine-readable format. The transaction exists to describe a parent organisation, its members and how they relate; for a retail chain, the members are stores, distribution centers and billing entities.
X12 describes the 816 as able to transmit information about a parent organisation, its members and the relationship of members to the parent or to each other. The standard names retail chains alongside associations, hospital systems and holding companies as examples of a parent. The functional group identifier is OR, so the 816 travels in its own GS envelope separate from orders and invoices.
EDI 816 Organizational Relationships files, under X12 release 004010 and functional group OR, carry a retailer's store and distribution center records to suppliers; loading each HL location with its ASI action and DTM effective date keeps the supplier's ship-to master within one business day of the retailer's.
For suppliers, the practical payoff is a ship-to master that stays aligned with the retailer's. Purchase orders usually reference a store or DC by number, not by full address. If the supplier's master holds the wrong address against that number, every downstream document inherits the error: the pick label, the bill of lading, the advance ship notice and the carrier's rating zone.
Heading N1 loop, HL levels and nested N1 detail in an 816
The 816 has a short heading that identifies who is sending the list and a detail area made of repeating HL loops, one per location or level in the hierarchy. Each HL loop holds one or more N1 loops with the location's identity, address, contacts, dates and action.
Scroll horizontally to see all columns.
| Area and position | Segment | Name | Use in a ship-to master |
|---|---|---|---|
| Heading 010 | ST | Transaction Set Header | Control number for audit trail |
| Heading 020 | BHT | Beginning of Hierarchical Transaction | Purpose code, file reference and creation date |
| Heading 040 loop | N1 to PER | Issuer name, address and contact | Which retailer and buying entity sent the list |
| Detail 010 | HL | Hierarchical Level | Parent-child links, for example DC to stores it serves |
| Detail 020 loop | N1 | Name | Entity type, location name, ID qualifier and ID |
| Detail 040 and 050 | N3, N4 | Address, geographic location | Street lines, city, state, postal code, country |
| Detail 060 and 070 | PER, REF | Contact, reference | Receiving contact, cross-reference IDs |
| Detail 090 | DTM | Date/Time Reference | Effective, expiration or change-effective date |
| Detail 100 | ASI | Action or Status Indicator | Add, change or delete for this record |
| Detail 110 | SE | Transaction Set Trailer | Segment count check |
The HL segment carries an ID in HL01 and the parent's ID in HL02, which lets a retailer show that a group of stores is served by a particular DC or rolls up to a regional buying office. N105, when used, states how the entity relates to its parent organisation, with codes such as parent, child, subsidiary or division. Not every retailer sends a hierarchy; many send a flat list of stores under one HL.
ISA*00* *00* *ZZ*RETAILERID *ZZ*SUPPLIERID *261002*0600*U*00401*000004512*0*P*>~
GS*OR*RETAILERID*SUPPLIERID*20261002*0600*4512*X*004010~
ST*816*0001~
BHT*0059*04*LOC-20261002-01*20261002~
N1*BY*EXAMPLE RETAIL HQ*92*0001~
HL*1**34*1~
N1*WH*EXAMPLE DC 07*92*DC07*01~
N4*COLUMBUS*OH*43217*US~
HL*2*1*34*0~
N1*ST*STORE 1184*92*1184*02~
N3*4410 EAST MAIN STREET~
N4*WHITEHALL*OH*43213*US~
REF*ZZ*0614141001184~
DTM*152*20261020~
ASI*2*001~
SE*14*0001~
GE*1*4512~
IEA*1*000004512~
-- Illustrative only. BHT01, HL03, N105 and REF usage are set by each retailer's
-- implementation guide. Here: BHT02 04 = Change; N103 92 = assigned by buyer;
-- HL03 34 = location record; DTM 152 = effective date of change;
-- ASI 2 / 001 = change (update) / change.
Read the retailer's own implementation guide before mapping. Guides narrow the standard by marking segments as used or not used, restricting code lists and fixing which hierarchy levels appear. A map built from the generic standard will accept files the retailer never sends and may misread the ones it does, especially where the guide repurposes REF or N2 for store formats or receiving hours.
Store numbers, D-U-N-S and GLN qualifiers in the N103 element
The N103 qualifier tells you what kind of identifier sits in N104, and the ship-to master must be keyed on the identifier the retailer uses on its orders. Pick the key from the 850 and 856 specifications, then store every other identifier the 816 supplies as a cross-reference.
- Qualifier 92: assigned by buyer or buyer's agent; usually the retailer's store or DC number, such as 1184 or DC07.
- Qualifier UL: a globally unique 13-digit code identifying a legal, functional or physical location, which is the GS1 Global Location Number.
- Qualifiers 1 and 9: D-U-N-S number and D-U-N-S with a four-character suffix; more common for legal entities and bill-to parties than for docks.
- Qualifier 91: assigned by seller; your own customer location code, rarely sent by the retailer but useful as the internal key.
Entity codes in N101 matter as much. ST is ship-to, BY is the buying party, BT is bill-to, SN is store, WH is warehouse and Z7 is mark-for. A retailer that sends stores as SN but orders with N1*ST must be mapped so both resolve to one record. How GLNs are allocated, validated and carried on GS1-128 labels is covered in our guide to GS1 Global Location Numbers; here the point is only which code becomes the master key.
Effective dates and ASI action codes for openings and closures
Every 816 record should be applied on its effective date, not on the day the file arrives. Store openings, relocations and closures are announced in advance, and applying a change early sends open orders to an address that is not yet receiving.
The ASI segment states what to do with the record. In X12 element 306, action code 1 is Add, 2 is Change (Update) and 3 is Delete; element 875 adds a maintenance type such as 001 Change, 002 Delete, 003 Add Full Item Detail or 024 Cancellation or Termination. DTM qualifiers such as 007 Effective, 036 Expiration and 152 Effective Date of Change give the date the action takes hold.
- Opening: ASI add with a DTM effective date; create the record inactive and activate it on the date, so early orders cannot route to an unopened store.
- Relocation: ASI change with a change-effective date; keep the old address active for orders shipping before the date and the new one after.
- Closure: ASI delete or an expiration date; block new orders after the date and flag open orders and in-transit shipments for review.
- Full refresh: some retailers resend the whole list; compare it with the master and treat records missing from the refresh as candidates for closure, not as automatic deletes.
Ship-to master updates from an X12 816 apply each ASI action at its DTM date: qualifier 152 sets when a change takes effect and 036 when a record expires, so a relocation sent on 2 October with a 20 October date keeps 18 days of open orders on the old address.
Feeding 816 records into order entry, WMS labels and carrier rating
A ship-to record is used by at least four systems, and each must read the dated version that applies on the ship date. If order entry has the new address but the transport system still rates to the old ZIP or PIN, the freight bill and the delivery both go wrong.
Scroll horizontally to see all columns.
| Record element | Source | Owner in the supplier's business | Sign-off before activation |
|---|---|---|---|
| Store or DC number and entity type | 816 N1 segment | Master data analyst | Customer account manager |
| Delivery address and postal code | 816 N3 and N4 | Master data analyst | Transport planner, after rating test |
| GLN or other cross-reference | 816 N1 or REF | EDI analyst | Master data analyst |
| Effective and expiry dates | 816 DTM | Master data analyst | Order desk lead for open orders |
| Receiving hours and appointment rules | Retailer guide or PER and REF segments | Transport planner | Warehouse shipping lead |
| GSTIN or URP, PIN and state code (India) | Buyer's registration details | Indirect tax analyst | Tax manager |
- Order entry: resolves the store number on each 850 to an active record for the requested ship date, and rejects orders for expired locations.
- WMS and labels: prints the ship-to and mark-for from the same record that the ASN will carry, so labels and EDI agree.
- Advance ship notice: the 856 repeats the ship-to with the same qualifier and ID the retailer sent, which the retailer uses to match receipts.
- Carrier rating and audit: the destination postal code decides the rating zone, so a stale code produces a rate that will not match the carrier's invoice.
How an unprocessed change became a failed store delivery
Most failed deliveries traced to master data come from a change that was received but not applied. A 997 acknowledgment confirms the file's syntax, not that your business system loaded every record, so the control has to sit after the translator.
- 2 October, 06:00: the retailer sends interchange 000004512, an 816 with store 1184's new address, ASI change and DTM 152 effective 20 October.
- 2 October, 06:04: the translator validates the file and sends a 997 with code A; the map writes the record to staging, but the ERP load job only processes ASI add records, so the change is skipped without an error.
- 21 October, 13:10: purchase order 4500921 for store 1184 ships; the bill of lading and the 856 carry the old address and ZIP 43213 from the unchanged master.
- 22 October, 10:45: the carrier finds the old site closed, records a delivery exception and holds the six pallets at its terminal; reconsignment to the new address completes on 23 October, a day after the delivery window.
- Control added: the load job now handles all ASI actions, a daily report compares staged 816 records with the master, and any unapplied record older than one business day raises an alert.
Our guide to logistics master data governance covers ownership, effective boundaries and conflict priorities across all logistics masters. This article narrows that to one inbound feed, the retailer's 816, and to the specific segments, codes and load checks that keep its ship-to records current.
India: GSTIN, PIN and state code on every ship-to record
The 816 is an ANSI X12 transaction most common in US retail; this article does not assume Indian buyers send it. Whatever the source of an Indian ship-to list, each record needs a GSTIN or URP, a PIN and a state code that agree, because the e-invoice and e-way bill both validate them.
NIC's e-invoice API, version 1.03, defines a ShipDtls object with Gstin, legal name, trade name, two address lines, location, PIN and state code. In that published version Gstin is optional while the legal name, first address line, location, six-digit PIN and state code are mandatory. Later schema versions may tighten these flags, so confirm the version your IRP provider runs before mapping.
Ship-to master records for Indian retail stores hold GSTIN or URP, PIN and state code together; GSTN's 20 May 2026 e-way bill advisory requires Ship To GSTIN on bill-to/ship-to movements, and NIC e-invoice schema 1.03 requires a six-digit PIN and state code in ShipDtls.
On e-way bills the requirement is firmer. GSTN's advisory of 20 May 2026 made the Ship To GSTIN a mandatory data element in bill-to/ship-to e-way bills, with the value URP where the consignee is unregistered. The advisory set production deployment of the API changes for 15 June 2026; check the e-way bill portal for current enforcement before relying on the validation. The details of generating e-way bills from the invoice are in our guide to e-way bills from e-invoice IRN.
- Place of supply: under Section 10(1)(a) of the IGST Act, goods that move are supplied where the movement ends for delivery; under 10(1)(b), goods delivered on a third person's direction are deemed received by that person, at its principal place of business.
- Consequence for the master: a bill-to/ship-to sale needs two linked records, the directing buyer's registration and the store's delivery details, rather than one address.
- State and PIN agreement: the first two digits of a GSTIN are the state code, so the store's state code must equal them, and its PIN should belong to the same state, a pairing worth validating before any e-invoice or e-way bill call.
Cost of a stale ship-to record in Ohio and in Karnataka
A single misdirected store delivery typically costs several hundred dollars or tens of thousands of rupees once reconsignment, extra freight, handling and customer charges are added. The figures below are illustrative; replace them with your carrier's accessorial schedule and the retailer's vendor terms.
Scroll horizontally to see all columns.
| Cost item | US: six pallets LTL, relocated store | India: one truck, closed store |
|---|---|---|
| Reconsignment or address change fee | $95 | Not charged separately |
| Additional freight to the correct address | $310 extra linehaul and delivery | ₹8,800 re-dispatch to the new store |
| Return or holding | $60 terminal storage, 2 days | ₹9,500 return trip to the DC |
| Handling and re-documentation | $40 labour to re-issue BOL and ASN | ₹1,200 unloading, restacking and new documents |
| Customer charge for late or non-compliant delivery | $250 per vendor terms | ₹2,500 per supplier agreement |
| Cost per event | $755 | ₹22,000 |
| Events per year at 24 stale records | $18,120 | ₹5,28,000 |
| Tax document impact | None on freight documents | New e-way bill for the new movement; invoice corrected if ship-to details change |
Neither figure includes the sale lost when the shelf stays empty for a promotion, which retailers often measure and suppliers rarely see. The cost of the control, a load job that handles all action codes and a daily comparison report, is a few days of integration work, which is why stale ship-to records are among the cheapest delivery failures to remove.
Checks a translator enforces and calls a master data analyst makes
Most 816 checks are mechanical and belong in the translator or the load job. Matching an unfamiliar address to an existing location, or deciding whether a missing store in a full refresh has really closed, needs a person with access to the account team.
Scroll horizontally to see all columns.
| Task | Fixed rule or assisted | Implementation | Who decides |
|---|---|---|---|
| Rejecting a location whose N103 qualifier is not one the partner guide allows | Fixed rule | Code list check in the map | Translator |
| Verifying the GLN check digit when N103 is UL | Fixed rule | Modulo-10 check on 13 digits | Translator |
| Checking that a US ZIP or Indian PIN belongs to the state given in N4 or the state code | Fixed rule | Postal reference table lookup | Load job holds the record |
| Applying ASI changes on the DTM effective date | Fixed rule | Dated queue with daily activation | Load job |
| Matching an 816 store with no ID history to an existing address-only customer record | Assisted | Fuzzy address match proposes candidates | Master data analyst confirms |
| Reading a retailer's emailed relocation notice to pre-create a pending change | Assisted | Model extracts store, dates and address | Analyst checks against the next 816 |
| Deciding whether a store missing from a full refresh has closed | Assisted | Report lists missing IDs with last order date | Account manager confirms with retailer |
Go-live checklist for a new 816 trading partner
Treat the first 816 from a new retailer as a data migration, not just a new map. Reconcile the initial file against your existing customer locations before activating anything, and prove that changes and deletes load as well as adds.
Scroll horizontally to see all columns.
| Check | Test or evidence | Owner | Pass condition |
|---|---|---|---|
| Partner guide reviewed | Segments, qualifiers, hierarchy levels and refresh pattern documented | EDI analyst | Map specification signed |
| Master key chosen | Qualifier used on 850 and expected on 856 confirmed | EDI analyst and account manager | One key, others as cross-references |
| Initial reconciliation | First file compared with existing locations | Master data analyst | Every difference resolved or logged |
| Action coverage | Test file with add, change and delete records | EDI analyst | All three load correctly |
| Effective dating | Future-dated change held until its date | Master data analyst | Open orders keep the old address until the date |
| Downstream use | Order, label, ASN and rating test for one changed store | Transport planner | All four show the same address |
| India tax fields | GSTIN or URP, PIN and state code on each Indian ship-to | Indirect tax analyst | Test e-way bill accepted |
| Monitoring | Daily unapplied-record report | EDI analyst | Alert raised after one business day |
For broader onboarding steps, such as connectivity, test cycles and partner sign-off, see our EDI trading partner onboarding checklist, with more EDI explainers collected on the Logistics and Supply Chain section.
Need 816 loads, dated ship-to switching and GSTIN checks wired into order and transport systems? List your retail accounts, translator and ERP on our project enquiry page and our integration team will size the effort.
Discuss this workflow
Describe your current systems, the recurring exception and the outcome you need. Keep shipment, customer and financial records out of the initial message.
Common operational questions
Practical answers for operations, engineering, and finance teams working on edi 816 organizational relationships in logistics & supply chain.
What is an EDI 816 used for in retail?
Which segments in the 816 carry the store address?
Should a ship-to record use the store number or the GLN?
Does an Indian retailer send EDI 816?
References
Sources checked 13 November 2026. US and India statutory authorities and vendor documentation support platform facts; the worked examples and diagrams are original.
- Stedi - X12 release 004010 transaction set 816 Organizational Relationships reference (segment table and purpose statement)The X12 standard is licensed; heading and detail segment lists, BHT and N105 notes read from Stedi's reproduction of the X12 dictionary. Accessed 13 November 2026.
- HIBCC - 816 Organizational Relationships implementation guide (004010HIBCC, 4 August 2001)Published subset of X12 004010 used to confirm functional group OR, BHT02 purpose codes, DTM qualifiers 007, 036 and 152, and ASI01 and ASI02 code values. Accessed 13 November 2026.
- Stedi - X12 release 004010 element 66 Identification Code Qualifier and element 98 Entity Identifier Code referenceCodes 1, 9, 91, 92 and UL in element 66; codes ST, BY, BT, SN, WH and Z7 checked on the element 98 page. Accessed 13 November 2026.
- NIC - e-Invoice API sandbox, Generate IRN request (version 1.03), ShipDtls and DispDtls objectsShipDtls fields Gstin, LglNm, TrdNm, Addr1, Addr2, Loc, Pin and Stcd with lengths and mandatory flags as published in this version. Accessed 13 November 2026.
- GSTN - Advisory to taxpayers and stakeholders: enhancements in the e-Way Bill portal (20 May 2026)Accessed 13 November 2026. Paragraph 2: Ship To GSTIN mandatory in bill-to/ship-to e-way bills, URP for unregistered consignees; paragraph 4: API changes to be deployed in production by 15 June 2026.
- CBIC - Integrated Goods and Services Tax Act, 2017, Section 10(1)(a) and (b) (place of supply of goods)Movement termination rule and the bill-to/ship-to rule deeming the directing third person to have received the goods. Accessed 13 November 2026.
- ASC X12 — EDI Supply Chain & Transportation Transaction Sets (204/210/214/856/940/945)US standard for electronic data interchange across shippers, 3PLs, and motor carriers.
- FMCSA — 49 CFR Part 395 Hours of Service & Electronic Logging Devices (ELD)US federal motor carrier dispatch and driver duty-status compliance mandate.
- ULIP & NIC GST E-Way Bill Portal — Unified Logistics & Rule 138 ComplianceIndian statutory goods-in-transit and multi-modal logistics verification framework.