832 Price/Sales Catalog (006020)
This is the standard X12 006020 spec, with 23 loops and 154 segment positions, as OpenEDI JSON, an ediFabric C# template and an ediFabric Native model. To change it for a trading partner, customize it in the EDI Spec Builder.
Use the 832 spec in your code
ediFabric .NET
Add the C# template and its common files to your project, or reference the template NuGet package, and read 832 files into TS832 objects. See ediFabric .NET.
ediFabric Native
Map version 006020 to the Native model with set_map, then parse 832 files to JSON from Python, Java, C or C#. See Convert between EDI and JSON.
OpenEDI
Select Customize in Spec Builder to copy the spec under your own name, change it for your partner, and parse files against it in EdiNation, ediFabric Native or ediFabric Cloud. Read about OpenEDI.
Generate 832 classes in Python, Java, Node.js, Go, Rust or C
ediFabric Native returns each 832 as JSON, with the property names of the OpenEDI schema. To work with that JSON as typed objects, generate classes from the OpenEDI file in your language and deserialize the JSON into TS832. Serialize the objects back to JSON to build EDI with ediFabric Native. The classes keep the loops, segments, lengths and code lists, but not the EDI data formats, so validate files with ediFabric Native. Read more in Generate a class from OpenEDI.
Python: datamodel-code-generator. Node.js: openapi-typescript. Java, Go, Rust and C: OpenAPI Generator.
For a sample file, the same data as JSON, and code to parse, validate and generate the 832, see the 832 transaction guide.
832 structure
Loops and segments of the standard 832, with their usage and maximum repeats.
| ID | Name | Usage | Max use |
|---|---|---|---|
| ST | Transaction Set Header | Optional | 1 |
| BCT | Beginning Segment for Price/Sales Catalog | Mandatory | 1 |
| CTP | Pricing Information | Optional | 100 |
| REF | Reference Information | Optional | >1 |
| YNQ | Yes/No Question | Optional | 10 |
| PER | Administrative Communications Contact | Optional | >1 |
| DTM | Date/Time Reference | Optional | 10 |
| CTB | Restrictions/Conditions | Optional | 25 |
| CUR | Currency | Optional | 5 |
| ITD | Terms of Sale/Deferred Terms of Sale | Optional | >1 |
| LDT | Lead Time | Optional | >1 |
| SAC | Service, Promotion, Allowance, or Charge Information | Optional | >1 |
| TD1 | Carrier Details (Quantity and Weight) | Optional | >1 |
| TD5 | Carrier Details (Routing Sequence/Transit Time) | Optional | >1 |
| TD3 | Carrier Details (Equipment) | Optional | >1 |
| TD4 | Carrier Details (Special Handling, or Hazardous Materials, or Both) | Optional | >1 |
| FOB | F.O.B. Related Instructions | Optional | 1 |
| PKG | Marking, Packaging, Loading | Optional | >1 |
| TXI | Tax Information | Optional | >1 |
| AAA | Request Validation | Optional | 1 |
| MTX | Text | Optional | >1 |
| PWK | Paperwork | Optional | 25 |
| Loop N1 | Party Identification | Optional | >1 |
| N1 | Party Identification | Mandatory | 1 |
| N2 | Additional Name Information | Optional | 2 |
| N3 | Party Location | Optional | 2 |
| N4 | Geographic Location | Optional | >1 |
| REF | Reference Information | Optional | 12 |
| PKG | Marking, Packaging, Loading | Optional | >1 |
| PER | Administrative Communications Contact | Optional | >1 |
| DTM | Date/Time Reference | Optional | 10 |
| MTX | Text | Optional | >1 |
| SPI | Specification Identifier | Optional | 1 |
| Loop LM | Code Source Information | Optional | >1 |
| LM | Code Source Information | Mandatory | 1 |
| LQ | Industry Code Identification | Mandatory | >1 |
| Loop N9 | Extended Reference Information | Optional | >1 |
| N9 | Extended Reference Information | Mandatory | 1 |
| DTM | Date/Time Reference | Optional | >1 |
| MTX | Text | Optional | >1 |
| PWK | Paperwork | Optional | >1 |
| EFI | Electronic Format Identification | Optional | >1 |
| Loop G93 | Price Bracket Identification | Optional | >1 |
| G93 | Price Bracket Identification | Mandatory | 1 |
| SAC | Service, Promotion, Allowance, or Charge Information | Optional | 1 |
| N1 | Party Identification | Optional | 1 |
| G26 | Pricing Conditions | Optional | 1 |
| Loop LIN | Item Identification | Optional | >1 |
| LIN | Item Identification | Mandatory | 1 |
| PO1 | Baseline Item Data | Optional | 1 |
| G53 | Maintenance Type | Optional | 1 |
| SI | Service Characteristic Identification | Optional | >1 |
| DTM | Date/Time Reference | Optional | 10 |
| REF | Reference Information | Optional | >1 |
| YNQ | Yes/No Question | Optional | 10 |
| PER | Administrative Communications Contact | Optional | >1 |
| CRD | Content Reporting Detail | Optional | >1 |
| CTB | Restrictions/Conditions | Optional | 25 |
| PID | Product/Item Description | Optional | 200 |
| MEA | Measurements | Optional | 200 |
| PKG | Marking, Packaging, Loading | Optional | 25 |
| PO4 | Item Physical Details | Optional | 1 |
| TD1 | Carrier Details (Quantity and Weight) | Optional | >1 |
| TD5 | Carrier Details (Routing Sequence/Transit Time) | Optional | >1 |
| TD3 | Carrier Details (Equipment) | Optional | >1 |
| TD4 | Carrier Details (Special Handling, or Hazardous Materials, or Both) | Optional | >1 |
| ITD | Terms of Sale/Deferred Terms of Sale | Optional | >1 |
| LDT | Lead Time | Optional | 1 |
| SAC | Service, Promotion, Allowance, or Charge Information | Optional | >1 |
| FOB | F.O.B. Related Instructions | Optional | 1 |
| AAA | Request Validation | Optional | 1 |
| TC2 | Commodity | Optional | 2 |
| TXI | Tax Information | Optional | >1 |
| MTX | Text | Optional | >1 |
| G55 | Item Characteristics - Consumer Unit | Optional | 1 |
| G54 | Module Description | Optional | 1 |
| Loop TRT | Trade Item Type | Optional | >1 |
| TRT | Trade Item Type | Mandatory | 1 |
| TRD | Trade Item Ingredient Details | Optional | >1 |
| Loop CTP | Pricing Information | Optional | >1 |
| CTP | Pricing Information | Mandatory | 1 |
| DTM | Date/Time Reference | Optional | 10 |
| G36 | Price List Reference | Optional | 1 |
| LDT | Lead Time | Optional | 1 |
| CUR | Currency | Optional | 5 |
| PO4 | Item Physical Details | Optional | 1 |
| CTB | Restrictions/Conditions | Optional | 5 |
| REF | Reference Information | Optional | >1 |
| G43 | Promotion/Price List Area | Optional | 9999 |
| SAC | Service, Promotion, Allowance, or Charge Information | Optional | >1 |
| G26 | Pricing Conditions | Optional | 99 |
| TXI | Tax Information | Optional | >1 |
| ITD | Terms of Sale/Deferred Terms of Sale | Optional | >1 |
| Loop G40 | Bracket Price | Optional | >1 |
| G40 | Bracket Price | Mandatory | 1 |
| SAC | Service, Promotion, Allowance, or Charge Information | Optional | 1 |
| G93 | Price Bracket Identification | Optional | >1 |
| Loop LS | Loop Header | Optional | 1 |
| LS | Loop Header | Mandatory | 1 |
| Loop LM | Code Source Information | Optional | >1 |
| LM | Code Source Information | Mandatory | 1 |
| LQ | Industry Code Identification | Mandatory | >1 |
| LE | Loop Trailer | Mandatory | 1 |
| Loop N1 | Party Identification | Optional | >1 |
| N1 | Party Identification | Mandatory | 1 |
| N2 | Additional Name Information | Optional | 2 |
| N3 | Party Location | Optional | 2 |
| N4 | Geographic Location | Optional | 2 |
| Loop N1 | Party Identification | Optional | >1 |
| N1 | Party Identification | Mandatory | 1 |
| N2 | Additional Name Information | Optional | 2 |
| N3 | Party Location | Optional | 2 |
| N4 | Geographic Location | Optional | 1 |
| REF | Reference Information | Optional | 12 |
| PER | Administrative Communications Contact | Optional | >1 |
| DTM | Date/Time Reference | Optional | 10 |
| MTX | Text | Optional | >1 |
| PKG | Marking, Packaging, Loading | Optional | >1 |
| PAL | Pallet Type and Load Characteristics | Optional | >1 |
| SPI | Specification Identifier | Optional | 1 |
| Loop G39 | Item Characteristics - Vendor's Selling Unit | Optional | >1 |
| G39 | Item Characteristics - Vendor's Selling Unit | Mandatory | 1 |
| CTP | Pricing Information | Optional | 1 |
| Loop PKL | Multi-Pack Configuration | Optional | 20 |
| PKL | Multi-Pack Configuration | Mandatory | 1 |
| CTP | Pricing Information | Optional | 1 |
| PKG | Marking, Packaging, Loading | Optional | 2 |
| G53 | Maintenance Type | Optional | 1 |
| DTM | Date/Time Reference | Optional | >1 |
| Loop LFG | Hazardous Information, Finished Goods | Optional | 1 |
| LFG | Hazardous Information, Finished Goods | Mandatory | 1 |
| Loop CRC | Conditions Indicator | Optional | >1 |
| CRC | Conditions Indicator | Mandatory | 1 |
| QTY | Quantity Information | Optional | 1 |
| Loop LM | Code Source Information | Optional | >1 |
| LM | Code Source Information | Mandatory | 1 |
| Loop LQ | Industry Code Identification | Mandatory | >1 |
| LQ | Industry Code Identification | Mandatory | 1 |
| REF | Reference Information | Optional | >1 |
| EFI | Electronic Format Identification | Optional | 1 |
| DTM | Date/Time Reference | Optional | >1 |
| Loop PID | Product/Item Description | Optional | >1 |
| PID | Product/Item Description | Mandatory | 1 |
| MEA | Measurements | Optional | >1 |
| MTX | Text | Optional | 1 |
| Loop SLN | Subline Item Detail | Optional | >1 |
| SLN | Subline Item Detail | Mandatory | 1 |
| SI | Service Characteristic Identification | Optional | >1 |
| PID | Product/Item Description | Optional | >1 |
| DTM | Date/Time Reference | Optional | >1 |
| CTP | Pricing Information | Optional | >1 |
| PAM | Period Amount | Optional | >1 |
| PO4 | Item Physical Details | Optional | >1 |
| PKG | Marking, Packaging, Loading | Optional | >1 |
| QTY | Quantity Information | Optional | >1 |
| MEA | Measurements | Optional | >1 |
| SAC | Service, Promotion, Allowance, or Charge Information | Optional | >1 |
| MTX | Text | Optional | >1 |
| Loop LM | Code Source Information | Optional | >1 |
| LM | Code Source Information | Mandatory | 1 |
| LQ | Industry Code Identification | Mandatory | >1 |
| Loop N1 | Party Identification | Optional | >1 |
| N1 | Party Identification | Mandatory | 1 |
| N2 | Additional Name Information | Optional | 2 |
| N3 | Party Location | Optional | 2 |
| N4 | Geographic Location | Optional | >1 |
| REF | Reference Information | Optional | 12 |
| PER | Administrative Communications Contact | Optional | >1 |
| DTM | Date/Time Reference | Optional | 10 |
| Loop N9 | Extended Reference Information | Optional | >1 |
| N9 | Extended Reference Information | Mandatory | 1 |
| DTM | Date/Time Reference | Optional | >1 |
| MTX | Text | Optional | >1 |
| PWK | Paperwork | Optional | >1 |
| EFI | Electronic Format Identification | Optional | >1 |
| CTT | Transaction Totals | Optional | 1 |
| SE | Transaction Set Trailer | Optional | 1 |