PARTIN Party information message (D13A)
This is the standard EDIFACT D13A spec, with 15 loops and 50 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 PARTIN 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 PARTIN files into TSPARTIN objects. See ediFabric .NET.
ediFabric Native
Native supports X12 today, and EDIFACT is coming. When it's available, map version D13A to this Native model with set_map to parse PARTIN files to JSON from Python, Java, C or C#. See ediFabric Native.
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 PARTIN classes in Python, Java, Node.js, Go, Rust or C
The OpenEDI file describes each PARTIN as JSON. To work with PARTIN data as typed objects, generate classes from the OpenEDI file in your language; the root class is TSPARTIN. The classes keep the loops, segments, lengths and code lists, but not the EDI data formats. Read more in Generate a class from OpenEDI.
Python: datamodel-code-generator. Node.js: openapi-typescript. Java, Go, Rust and C: OpenAPI Generator.
PARTIN structure
Loops and segments of the standard PARTIN, with their usage and maximum repeats.
| ID | Name | Usage | Max use |
|---|---|---|---|
| UNH | UNH | Mandatory | 1 |
| BGM | BGM | Mandatory | 1 |
| DTM | DTM | Mandatory | 5 |
| FII | FII | Optional | 10 |
| FTX | FTX | Optional | 5 |
| Loop RFF | RFF | Optional | 5 |
| RFF | RFF | Mandatory | 1 |
| DTM | DTM | Optional | 1 |
| Loop NAD | NAD | Optional | 2 |
| NAD | NAD | Mandatory | 1 |
| Loop CTA | CTA | Optional | 5 |
| CTA | CTA | Mandatory | 1 |
| COM | COM | Optional | 5 |
| UNS | UNS | Mandatory | 1 |
| Loop NAD | NAD | Optional | 200000 |
| NAD | NAD | Mandatory | 1 |
| DTM | DTM | Optional | 5 |
| FII | FII | Optional | 10 |
| IDE | IDE | Optional | 9 |
| FTX | FTX | Optional | 9 |
| TAX | TAX | Optional | 9 |
| HYN | HYN | Optional | 9 |
| Loop LOC | LOC | Optional | 99 |
| LOC | LOC | Mandatory | 1 |
| DTM | DTM | Optional | 2 |
| Loop RFF | RFF | Optional | 15 |
| RFF | RFF | Mandatory | 1 |
| DTM | DTM | Optional | 1 |
| Loop CTA | CTA | Optional | 5 |
| CTA | CTA | Mandatory | 1 |
| COM | COM | Optional | 5 |
| Loop SCC | SCC | Optional | 10 |
| SCC | SCC | Mandatory | 1 |
| DTM | DTM | Optional | 2 |
| Loop TOD | TOD | Optional | 1 |
| TOD | TOD | Mandatory | 1 |
| LOC | LOC | Optional | 1 |
| Loop PAI | PAI | Optional | 999 |
| PAI | PAI | Mandatory | 1 |
| PYT | PYT | Optional | 1 |
| CUX | CUX | Optional | 2 |
| DTM | DTM | Optional | 9 |
| PCD | PCD | Optional | 9 |
| MOA | MOA | Optional | 9 |
| Loop RCS | RCS | Optional | 999 |
| RCS | RCS | Mandatory | 1 |
| MOA | MOA | Optional | 9 |
| QTY | QTY | Optional | 9 |
| Loop CCI | CCI | Optional | 999 |
| CCI | CCI | Mandatory | 1 |
| MOA | MOA | Optional | 9 |
| QTY | QTY | Optional | 9 |
| CAV | CAV | Optional | 9 |
| DTM | DTM | Optional | 9 |
| MEA | MEA | Optional | 9 |
| Loop PRC | PRC | Optional | 999 |
| PRC | PRC | Mandatory | 1 |
| DTM | DTM | Optional | 9 |
| Loop LIN | LIN | Optional | 999 |
| LIN | LIN | Mandatory | 1 |
| NAD | NAD | Mandatory | 1 |
| Loop DOC | DOC | Mandatory | 99 |
| DOC | DOC | Mandatory | 1 |
| DTM | DTM | Optional | 9 |
| UNT | UNT | Mandatory | 1 |