ISA
) and Group (GS
) headers - also known as the envelope - using the Create Outbound Interchange endpoint.
ISA
header:
ISA01
to ISA04
): Some trading partners require additional information in these elements to verify the transaction.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.ISA14
): This code indicates whether you are requesting a TA1
Interchange Acknowledgments.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.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.
Data | Required | Description |
---|---|---|
partnershipId | Yes | Include this ID within the API route to identify the associated partnership. You can find this ID on the Trading partners page under Partnership identifier. |
transactionGroups | Yes | The Generate API accepts multiple arrays of transactions in a single API call, allowing you to send multiple transactions or even multiple functional groups in a single file. If you only plan to send a single type of transaction (such as a Purchase Order), then your API request should have one transaction group. |
transactionGroups.transactionSettingId | Yes | This ID specifies the outbound transaction setting Stedi should use to validate the transaction data and generate the file. To find this ID, go to the partnership, find the outbound transaction setting, and copy its Transaction Setting ID. |
transactionGroups.transactions | Yes | This object contains the transaction data. It must conform to the Guide JSON format for the specified transaction setting. |
filename | Specify the name of the generated EDI file. Stedi overwrites files with the same name, so we recommend making the filename unique by including a timestamp or other identifier. If you do not specify a filename, Stedi autogenerates a unique name using a UUID. | |
Envelope overrides | You can use several optional parameters to customize aspects of the EDI envelope - both the ISA header and GS header. |
artifactId
(equivalent to the file name) and a globally unique fileExecutionId
that you can use to locate the generated file.