How to Translate EDI Files

Translating resources with the HTTP POST Method

In order to translate from EDI or translate to EDI use the following resources with the POST method:

  1. Read EDI file into JSON

    You can read two resources, X12 files and EDIFACT files/streams. To do so, execute HTTP POST to the resource URL, with the request body being the file to translate included as form-data content.

    X12 EDIFACT
    1. URL: https://api.edination.com/v2/x12/read
    2. Request: X12 file as form-data
    3. Response: Array of X12Interchange

    The response will contain an array of EDI interchanges, encoded in application/json format.

  2. Write JSON to EDI file

    Again, you can write out two resources, X12 and EDIFACT. Execute HTTP POST to the resource URL, the request body must contain a single EDI interchange, included as application/json content.

    X12 EDIFACT
    1. URL: https://api.edination.com/v2/x12/write
    2. Request: X12Interchange
    3. Response: X12 file as application/octet-stream

    The response will contain an EDI interchange, encoded in application/octet-stream format.

Was this article helpful?
0 out of 0 found this helpful