200 Mortgage Credit Report (004030)
This is the standard X12 004030 spec, with 22 loops and 116 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 200 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 200 files into TS200 objects. See ediFabric .NET.
ediFabric Native
Map version 004030 to the Native model with set_map, then parse 200 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 200 classes in Python, Java, Node.js, Go, Rust or C
ediFabric Native returns each 200 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 TS200. 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.
200 structure
Loops and segments of the standard 200, with their usage and maximum repeats.
| ID | Name | Usage | Max use |
|---|---|---|---|
| ST | Transaction Set Header | Optional | 1 |
| BGN | Beginning Segment | Mandatory | 1 |
| CRO | Credit Report Order Details | Mandatory | 1 |
| AAA | Request Validation | Optional | 5 |
| DTP | Date or Time or Period | Optional | 5 |
| REF | Reference Identification | Optional | >1 |
| AMT | Monetary Amount | Optional | 3 |
| NX1 | Property or Entity Identification | Optional | 1 |
| NX2 | Location ID Component | Optional | 10 |
| Loop N1 | Name | Mandatory | 20 |
| N1 | Name | Mandatory | 1 |
| N2 | Additional Name Information | Optional | 2 |
| N3 | Address Information | Optional | 2 |
| N4 | Geographic Location | Optional | 1 |
| REF | Reference Identification | Optional | 3 |
| PER | Administrative Communications Contact | Optional | 5 |
| Loop LX | Assigned Number | Mandatory | 2 |
| LX | Assigned Number | Mandatory | 1 |
| REF | Reference Identification | Optional | 1 |
| Loop IN1 | Individual Identification | Mandatory | 15 |
| IN1 | Individual Identification | Mandatory | 1 |
| IN2 | Individual Name Structure Components | Optional | 10 |
| DMG | Demographic Information | Optional | 1 |
| N10 | Quantity and Description | Optional | 1 |
| PER | Administrative Communications Contact | Optional | 3 |
| QTY | Quantity | Optional | 15 |
| YNQ | Yes/No Question | Optional | 1 |
| NTE | Note/Special Instruction | Optional | 20 |
| Loop NX1 | Property or Entity Identification | Mandatory | 10 |
| NX1 | Property or Entity Identification | Mandatory | 1 |
| NX2 | Location ID Component | Optional | 10 |
| DTP | Date or Time or Period | Optional | 1 |
| N10 | Quantity and Description | Optional | 1 |
| ARS | Applicant Residence Specifics | Optional | 1 |
| YNQ | Yes/No Question | Optional | 1 |
| NTE | Note/Special Instruction | Optional | 20 |
| Loop N1 | Name | Optional | 20 |
| N1 | Name | Mandatory | 1 |
| N2 | Additional Name Information | Optional | 2 |
| N3 | Address Information | Optional | 2 |
| N4 | Geographic Location | Optional | 1 |
| REF | Reference Identification | Optional | 1 |
| PER | Administrative Communications Contact | Optional | 4 |
| DTP | Date or Time or Period | Optional | 1 |
| YNQ | Yes/No Question | Optional | 1 |
| NTE | Note/Special Instruction | Optional | 20 |
| Loop SOI | Source of Income | Optional | 5 |
| SOI | Source of Income | Mandatory | 1 |
| EMS | Employment Position | Optional | 1 |
| DTP | Date or Time or Period | Optional | 1 |
| N10 | Quantity and Description | Optional | 1 |
| YNQ | Yes/No Question | Optional | 1 |
| Loop AIN | Income | Optional | 7 |
| AIN | Income | Mandatory | 1 |
| YNQ | Yes/No Question | Optional | 1 |
| Loop TLN | Tradeline | Optional | 1000 |
| TLN | Tradeline | Mandatory | 1 |
| N1 | Name | Mandatory | 1 |
| N2 | Additional Name Information | Optional | 2 |
| N3 | Address Information | Optional | 2 |
| N4 | Geographic Location | Optional | 1 |
| REF | Reference Identification | Optional | 1 |
| PER | Administrative Communications Contact | Optional | 4 |
| DTP | Date or Time or Period | Optional | 7 |
| TBI | Trade Line Bureau Identifier | Optional | 5 |
| PPD | Payment Pattern Details | Optional | 15 |
| NTE | Note/Special Instruction | Optional | 20 |
| YNQ | Yes/No Question | Optional | 10 |
| Loop AMT | Monetary Amount | Optional | 6 |
| AMT | Monetary Amount | Mandatory | 1 |
| NTE | Note/Special Instruction | Optional | 20 |
| Loop RO | Public Record or Obligation | Optional | 500 |
| RO | Public Record or Obligation | Mandatory | 1 |
| CDS | Case Description | Optional | 1 |
| TBI | Trade Line Bureau Identifier | Optional | 5 |
| DTP | Date or Time or Period | Optional | 10 |
| NTE | Note/Special Instruction | Optional | 20 |
| YNQ | Yes/No Question | Optional | 10 |
| Loop AMT | Monetary Amount | Optional | 6 |
| AMT | Monetary Amount | Mandatory | 1 |
| NTE | Note/Special Instruction | Optional | 20 |
| Loop N1 | Name | Mandatory | 5 |
| N1 | Name | Mandatory | 1 |
| N2 | Additional Name Information | Optional | 2 |
| N3 | Address Information | Optional | 2 |
| N4 | Geographic Location | Optional | 1 |
| Loop CCI | Credit Counseling Information | Optional | 5 |
| CCI | Credit Counseling Information | Mandatory | 1 |
| DTP | Date or Time or Period | Optional | 3 |
| MSG | Message Text | Optional | 4 |
| Loop INQ | Credit Inquiry Details | Optional | 100 |
| INQ | Credit Inquiry Details | Mandatory | 1 |
| TBI | Trade Line Bureau Identifier | Optional | 5 |
| N1 | Name | Optional | 1 |
| N2 | Additional Name Information | Optional | 2 |
| N3 | Address Information | Optional | 2 |
| N4 | Geographic Location | Optional | 1 |
| PER | Administrative Communications Contact | Optional | 2 |
| DTP | Date or Time or Period | Optional | 1 |
| YNQ | Yes/No Question | Optional | 10 |
| NTE | Note/Special Instruction | Optional | 20 |
| Loop VAR | Credit File Variation | Optional | 25 |
| VAR | Credit File Variation | Mandatory | 1 |
| NTE | Note/Special Instruction | Optional | 50 |
| IN1 | Individual Identification | Optional | 1 |
| IN2 | Individual Name Structure Components | Optional | 10 |
| DMG | Demographic Information | Optional | 1 |
| N10 | Quantity and Description | Optional | 1 |
| Loop NX1 | Property or Entity Identification | Optional | 10 |
| NX1 | Property or Entity Identification | Mandatory | 1 |
| NX2 | Location ID Component | Optional | 10 |
| Loop N1 | Name | Optional | >1 |
| N1 | Name | Mandatory | 1 |
| N2 | Additional Name Information | Optional | 2 |
| N3 | Address Information | Optional | 2 |
| N4 | Geographic Location | Optional | 1 |
| REF | Reference Identification | Optional | 1 |
| PER | Administrative Communications Contact | Optional | 2 |
| EMS | Employment Position | Optional | 1 |
| DTP | Date or Time or Period | Optional | 2 |
| Loop SCM | Credit Score Model | Optional | >1 |
| SCM | Credit Score Model | Mandatory | 1 |
| SCS | Credit Score | Optional | 5 |
| Loop LS | Loop Header | Optional | 1 |
| LS | Loop Header | Mandatory | 1 |
| Loop NTE | Note/Special Instruction | Optional | 20 |
| NTE | Note/Special Instruction | Mandatory | 1 |
| TBI | Trade Line Bureau Identifier | Optional | 5 |
| MSG | Message Text | Optional | >1 |
| LE | Loop Trailer | Mandatory | 1 |
| Loop LS | Loop Header | Optional | 1 |
| LS | Loop Header | Mandatory | 1 |
| Loop REF | Reference Identification | Optional | >1 |
| REF | Reference Identification | Mandatory | 1 |
| G32 | Survey Question Response | Mandatory | >1 |
| NTE | Note/Special Instruction | Optional | 1 |
| LE | Loop Trailer | Mandatory | 1 |
| SE | Transaction Set Trailer | Optional | 1 |