832 Price/Sales Catalog (003060)
This is the standard X12 003060 spec, with 7 loops and 70 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 003060 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 Identification | Optional | 12 |
| YNQ | Yes/No Question | Optional | 10 |
| PER | Administrative Communications Contact | Optional | 3 |
| DTM | Date/Time Reference | Optional | 10 |
| CTB | Restrictions/ Conditions | Optional | 25 |
| CUR | Currency | Optional | 5 |
| ITD | Terms of Sale/Deferred Terms of Sale | Optional | 2 |
| LDT | Lead Time | Optional | >1 |
| SAC | Service, Promotion, Allowance, or Charge Information | Optional | 25 |
| FOB | F.O.B. Related Instructions | Optional | 1 |
| G93 | Price Bracket Identification | Optional | 50 |
| Loop N1 | Name | Optional | 200 |
| N1 | Name | Mandatory | 1 |
| N2 | Additional Name Information | Optional | 2 |
| N3 | Address Information | Optional | 2 |
| N4 | Geographic Location | Optional | 1 |
| REF | Reference Identification | Optional | 12 |
| PER | Administrative Communications Contact | Optional | 3 |
| DTM | Date/Time Reference | Optional | 10 |
| Loop LIN | Item Identification | Optional | 700000 |
| LIN | Item Identification | Mandatory | 1 |
| G53 | Maintenance Type | Optional | 1 |
| SLN | Subline Item Detail | Optional | 100 |
| DTM | Date/Time Reference | Optional | 10 |
| REF | Reference Identification | Optional | 12 |
| YNQ | Yes/No Question | Optional | 10 |
| PER | Administrative Communications Contact | Optional | 3 |
| CTB | Restrictions/ Conditions | Optional | 25 |
| PID | Product/Item Description | Optional | 200 |
| MEA | Measurements | Optional | 40 |
| PKG | Marking, Packaging, Loading | Optional | 25 |
| PO4 | Item Physical Details | Optional | 1 |
| TD4 | Carrier Details (Special Handling, or Hazardous Materials, or Both) | Optional | 10 |
| ITD | Terms of Sale/Deferred Terms of Sale | Optional | 2 |
| LDT | Lead Time | Optional | 1 |
| SAC | Service, Promotion, Allowance, or Charge Information | Optional | 25 |
| FOB | F.O.B. Related Instructions | Optional | 1 |
| TC2 | Commodity | Optional | 2 |
| TXI | Tax Information | Optional | 1 |
| G39 | Item Characteristics - Vendor's Selling Unit | Optional | 1 |
| G55 | Item Characteristics - Consumer Unit | Optional | 1 |
| G54 | Module Description | Optional | 1 |
| Loop CTP | Pricing Information | Optional | 100 |
| CTP | Pricing Information | Mandatory | 1 |
| G40 | Bracket Price | Optional | 99 |
| 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 Identification | Optional | >1 |
| G43 | Promotion/Price List Area | Optional | 9999 |
| SAC | Service, Promotion, Allowance, or Charge Information | Optional | 5 |
| G26 | Pricing Conditions | Optional | 99 |
| Loop N1 | Name | Optional | 200 |
| N1 | Name | Mandatory | 1 |
| N2 | Additional Name Information | Optional | 2 |
| N3 | Address Information | Optional | 2 |
| N4 | Geographic Location | Optional | 1 |
| REF | Reference Identification | Optional | 12 |
| PER | Administrative Communications Contact | Optional | 3 |
| DTM | Date/Time Reference | Optional | 10 |
| Loop PKL | Multi-Pack Configuration | Optional | 10 |
| PKL | Multi-Pack Configuration | Mandatory | 1 |
| CTP | Pricing Information | Optional | 1 |
| PKG | Marking, Packaging, Loading | Optional | 2 |
| 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 | Optional | 1 |
| CTT | Transaction Totals | Optional | 1 |
| SE | Transaction Set Trailer | Optional | 1 |