A step-by-step guide to building, saving, and running field mappings without writing any code. The Visual Mapping GUI is available to Developer accounts only.
The mapper has three panels side by side:
| Panel | What it does |
|---|---|
| Source (left) | Paste or upload your input document. Click Parse Source Fields to extract its fields. |
| Field Mappings (center) | Build rules that connect source fields to target fields, with optional transforms and conditional logic. |
| Converted Output (right) | Click Convert Now to run your mapping rules and see the result. Save to your Document Vault from here. |
Before loading a document, configure the four toolbar dropdowns at the top of the page:
| Control | What to pick |
|---|---|
| Source | The format your input document is in — X12, JSON, XML, or CSV |
| Target | The format you want the output in — any of the four formats above |
| Industry | Your trading partner's industry (Retail, Automotive, Healthcare, etc.) — used to populate the Tx Set list |
| Tx Set | The X12 transaction type (e.g. 850 — Purchase Order). Only appears after selecting an Industry. |
The Direction toggle (Inbound / Outbound) tells x12port whether you're receiving or sending this document type — it affects how the parsed field tree is labeled.
In the Source Document panel on the left you have two options:
.edi, .x12, .json, .xml, .csv, or .txt file.Once your document is in, click Parse Source Fields. The parser will extract every field it finds and list them below the text area with their keys (e.g. BEG.03 or order.header.po_number). Use the filter box to search by name.
Each row in the center panel is one mapping rule: a source field → a target field, with an optional transform.
850 → JSON | 856 → JSON | 810 → JSON | JSON → 850Each rule has a Transform dropdown that modifies the source value before writing it to the target:
| Transform | What it does |
|---|---|
| Direct | Copies the value as-is (default) |
| Uppercase | Converts the value to ALL CAPS |
| Lowercase | Converts the value to all lowercase |
| Trim | Strips leading and trailing whitespace |
| Strip Zeros | Removes leading zeros (e.g. 00123 → 123) |
| Date→ISO | Converts YYYYMMDD X12 date format to ISO 8601 (2024-03-15) |
Click the ⚡ IF button on any rule to add qualifier logic. This lets you write rules like: "Map BEG.03 to order_id only IF BEG.02 equals 'SA'".
Common operators: equals, not equals, contains, starts with, is empty, is not empty.
BY (buyer) and one with ST (ship-to). An IF rule lets you route each segment to the right target field.
Once your rules are set and your source document is loaded, click ⚡ Convert Now in the right panel. The output appears in the panel immediately.
Click the map name bar at the top (it says Untitled Map — click to name) and give your project a name. Then click 💾 Save Map in the toolbar. Saved maps are stored to your account and reusable across sessions.
To reload a saved map, click 📂 Maps in the toolbar. The Maps browser shows all your saved projects with their last-modified date. Click a map to load its rules back into the center panel. You can also delete maps from the browser.
| Format | Parsed field key format | Example |
|---|---|---|
| X12 | SEGMENT.ELEMENT_INDEX | BEG.03, PO1.02 |
| JSON | Dot-path to key | order.header.po_number |
| XML | XPath-style tag path | Order/Header/PONumber |
| CSV | Column header name | PO_Number, Ship_Date |
AI Suggest costs 1 credit per run. Your current credit balance is shown in the toolbar badge next to the AI Suggest button. Buy more credits from Billing — available in packs of 50, 150, and 500.
/mapping. If you need mapping built for a client's EDI connection, see our recommended integration partner CJC Technologies.