Pine Assembly Workshop: EDI X12 856 advance ship notice
EDI X12 856 advance ship notice for Pine Assembly Workshop. An ANSI X12 004010 transaction set 856 for bill of lading BOL-2026-0004: 35 segments from ISA to IEA, terminated with a tilde and CRLF as the format carries in practice. The hierarchy is one shipment level, 4 order levels and 4 item levels, so CTT declares 9 HL segments and SE declares 31 segments in the transaction set.
edi
application/edi-x12
- Document Set
- logistics
- Industry
- logistics
- Source Kit
- inventory-manufacturing
- Synthetic
- true
- As Of
- 2026-09-08
- Segments
- 35
Binary edi: no in-browser preview. Download it above to open in a compatible application.
Specifications
- Document Set
- logistics
- Industry
- logistics
- Source Kit
- inventory-manufacturing
- Synthetic
- true
- As Of
- 2026-09-08
- Segments
- 35
- Hl Segments
- 9
- Transaction Set Segments
- 31
- Line Endings
- CRLF
- Segment Terminator
- tilde
- Encoding
- ASCII
Testing contract
Expected to pass- Scenario
- Parse the interchange and check the CTT and SE control counts against the segments actually present.
- Expected result
- CTT reads 9 and exactly 9 HL segments are present. SE reads 31 and exactly 31 segments lie between ST and SE inclusive. The TD1 carton count is 20, matching the SN1 quantities (5 + 5 + 5 + 5) and the BOL-2026-0004 row of bill-of-lading-register.csv.
What is a .edi file?
EDI (Electronic Data Interchange), in the ANSI X12 family, is a structured plain-text format for exchanging business documents like purchase orders (850) and invoices (810) between trading partners. It is built from segments (ISA, GS, ST, …) separated by delimiters, with tightly specified element positions. It underpins much of B2B supply-chain and retail commerce.
How to use this file
Use an example X12 EDI file to test EDI parsers and translators, segment/element extraction, and mapping from EDI to JSON or XML. The parties and values here are synthetic.
How to use this file for testing
“Pine Assembly Workshop: EDI X12 856 advance ship notice” is a deterministic Novus Examples fixture for Data import. Realistic faker-generated datasets with documented schemas for testing import and ETL flows.
Documented properties for this file: ASCII · CRLF. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such, expect parsers to fail loudly rather than silently accept them.
Data fixtures document their exact quirks (delimiters, encodings, null handling, schema, and row counts) in the spec table. Point your parser or importer at the file and assert it handles the documented edge cases; clean and deliberately-messy siblings make before/after diffs straightforward.
Code examples
from pydifact.segmentcollection import Interchange # EDIFACT
inter = Interchange.from_file("advance-ship-notice-856.edi")
for seg in inter.segments:
print(seg.tag, seg.elements)Related files
- csvPine Assembly Workshop: Bill of lading registerBill of lading register for Pine Assembly Workshop. 4 bills of lading, one per delivery round, covering all 16 shipments and all 56 pieces. The piece counts are 8, 12, 16, 20 and they sum to 56, which is the parcels column of shipments-export.csv. Freight terms are prepaid on every round.

- csvPine Assembly Workshop: Carrier invoice whose fuel surcharge uses the wrong basis on one lineCarrier invoice whose fuel surcharge uses the wrong basis on one line for Pine Assembly Workshop. The 13 billable shipments with a TOTAL row. Every line is correct except SHIP-07, whose fuel_surcharge was computed on the weight charge alone: 53.68 times 0.065 gives 3.49 instead of 5.05 on the base plus weight charge. The line is 1.56 light and the TOTAL row reads 859.63 against the correct 861.19.

- csvPine Assembly Workshop: Carrier rate sheetCarrier rate sheet for Pine Assembly Workshop. Two delivery zones. Zone A covers ROUTE-1 ROUTE-2 at 18.00 per stop plus 0.85 per kg; zone B covers ROUTE-3 ROUTE-4 at 24.00 per stop plus 1.10 per kg. A fuel surcharge of 0.065 applies to the base plus the weight charge, and every line rounds half up to cents.

- jsonPine Assembly Workshop: Carrier rate sheet JSONCarrier rate sheet JSON for Pine Assembly Workshop. The same two zones as rate-sheet.csv with the rating formula written out as a string, including the fact that the fuel surcharge applies to the base charge as well as the weight charge. That basis is the one most often got wrong.

- csvPine Assembly Workshop: Customs commercial invoice linesCustoms commercial invoice lines for Pine Assembly Workshop. 4 invoice lines covering the 20 kits on BOL-2026-0004, all classified under HS 9403.30 with country of origin CA. amount_usd equals quantity times unit_price_usd on every line and the column sums to 1360.00; net weight sums to 226.880 kg and gross to 244.000 kg, the difference being the packaging.

- xmlPine Assembly Workshop: Customs entry XMLCustoms entry XML for Pine Assembly Workshop. An import entry for the BOL-2026-0004 consignment on a CIF basis. Goods 1360.00 plus freight 388.08 gives a customs value of 1748.08; duty at 0.025 is 43.70 and import tax at 0.050 on the customs value plus duty is 89.59, a total payable of 133.29. The statistical breakdown restates the 226.880 kg across the three component codes.

Generated by generation/industry_documents.py. Free for any use, no attribution required, license.