Skip to main content
You can customize an EDI file’s Interchange (ISA) and Group (GS) headers - also known as the envelope - using the Create Outbound Interchange endpoint.
If you don’t need to customize the envelope, we strongly recommend generating EDI files with the Create Outbound Transaction endpoint instead because it is simpler and easier to use.

Interchange overrides

You can customize the following elements in the ISA header:
  • Interchange Authorization values (ISA01 to ISA04): Some trading partners require additional information in these elements to verify the transaction.
  • Interchange Version Control Number Code (ISA12): Stedi defaults to using the X12 release number of the guide associated with the transaction. However, some partners require a different release for the ISA envelope.
  • Acknowledgment Requested Code (ISA14): This code indicates whether you are requesting a TA1 Interchange Acknowledgments.
  • Interchange Usage Indicator Code (ISA15): This code indicates whether data is test, production, or information. Stedi defaults to P for production data, but you may need to set this to T when sending test data.
Visit the Create Outbound Transaction documentation for more details.

Group overrides

By default, Stedi generates EDI files using the application IDs (GS-02 and GS-03 elements) configured for each profile within the partnership. However, some partners use multiple application IDs to route files to different locations. To set custom application IDs, set the localApplicationId and the partnerApplicationId properties in the override object. These values are optional; you should only send them when you need to override the application IDs configured within each profile. You can include multiple overrides objects to customize the application IDs for each transaction group in the file.

Call the Interchange API

The Create Outbound Interchange endpoint can generate fully-formed EDI files containing multiple transactions and even multiple transaction types.

Request data

The API uses the following data to generate and deliver an EDI file.

Sample request and response

The following example shows a cURL request and response. The API returns the full X12 EDI file in the response. The response also includes an artifactId (equivalent to the file name) and a globally unique fileExecutionId that you can use to locate the generated file.