Home /  API Reference / 
You’re viewing an older version of this specification. Switch to latest version

EDI Core

EDI Core API

Download OpenAPI

Translate EDI

POST/translate
Translate between X12 EDI and JEDI, in either direction. JEDI is a JSON representation of EDI.
Request body

application/json

OptionalAny

The data you want to translate. If input_format is set to edi, this must be a string. If input_format is jedi@1.0 or jedi2.0 this must be a JSON object.

Optionalobject
Options that tell the translator how to format the output.
object object.

Requiredstring

The format you want to translate to.

FormatDescription
ediX12 EDI
jedi@1.0A JSON representation of EDI, with keys that closely match X12 EDI's entity codes. This format is supported for backward compatibility, but if you can, we recommend you use jedi@2.0 instead.
jedi@2.0A JSON representation of EDI, with human-readable keys.

Possible values

edi jedi@1.0 jedi@2.0

Optionalobject
Options that tell the translator how to do validation.
object object.

Requiredstring

The format of the input.

FormatDescription
ediX12 EDI
jedi@1.0A JSON representation of EDI, with keys that closely match X12 EDI's entity codes. This format is supported for backward compatibility, but if you can, we recommend you use jedi@2.0 instead.
jedi@2.0A JSON representation of EDI, with human-readable keys.

Possible values

edi jedi@1.0 jedi@2.0

Example

POST
https://edi-core.stedi.com/2021-06-05/translate