Skip to content
Novus Examples
edi576 B

Alder Table Bistro: ANSI X12 850 purchase order

ANSI X12 850 purchase order for Alder Table Bistro. Version 004010 transaction set 850 for PO-BST-1002, control number 850002. 3 PO1 segments carry quantity, X12 unit code, unit price, the supplier item code (VP) and the buyer item code (BP); CTT declares 3 line items and SE declares 14 segments, which is the number actually present between ST and SE inclusive.

edi

application/edi-x12

576 B
Kit
restaurant-bistro
Schema Version
1
Synthetic
true
As Of
2026-09-08
Currency
CAD
Tax Name
GST

Binary edi: no in-browser preview. Download it above to open in a compatible application.

Specifications

Kit
restaurant-bistro
Schema Version
1
Synthetic
true
As Of
2026-09-08
Currency
CAD
Tax Name
GST
Tax Rate
0.05
Standard
ANSI X12 004010
Transaction Set
850
Control Number
850002
Segments
14
Segment Terminator
~
Line Endings
CRLF
Encoding
ASCII

Testing contract

Expected to pass
Scenario
Read ansi x12 850 purchase order into a procure-to-pay import, three-way match and reconciliation workflow for Alder Table Bistro.
Expected result
Version 004010 transaction set 850 for PO-BST-1002, control number 850002. 3 PO1 segments carry quantity, X12 unit code, unit price, the supplier item code (VP) and the buyer item code (BP); CTT declares 3 line items and SE declares 14 segments, which is the number actually present between ST and SE inclusive.

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

“Alder Table Bistro: ANSI X12 850 purchase order” is a deterministic Novus Examples fixture for Data import, Conversion testing. 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.

Document fixtures list their internal structure (pages, fields, tracked changes, embedded objects) in the spec table. Test extractors, converters, and OCR against that known structure, and compare searchable↔scanned or format-twin companions when present.

Code examples

from pydifact.segmentcollection import Interchange  # EDIFACT

inter = Interchange.from_file("edi-850-purchase-order.edi")
for seg in inter.segments:
    print(seg.tag, seg.elements)

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