v50

latestOpenAPI 3.0.2Proprietaryraw.githubusercontent.com2026-07-2730103305.1 KB

This endpoint generates and delivers fully-formed EDI files to your trading partners.

post/x12/partnerships/{partnershipId}/generate-edi

Path parameters

partnershipIdstring required

A unique ID for this partnership within Stedi. You can find this ID on the Trading partners page under Partnership identifier.

A unique ID for this partnership within Stedi. You can find this ID on the Trading partners page under Partnership identifier.

Headers

Idempotency-Keystring

A unique string to identify this request to the server. The key can be up to 255 characters. You can safely retry requests with the same idempotency key within 24 hours of making the first request. This prevents sending duplicate data to your trading partners in case of network errors or other intermittent failures. Learn more.

A unique string to identify this request to the server. The key can be up to 255 characters. You can safely retry requests with the same idempotency key within 24 hours of making the first request. This prevents sending duplicate data to your trading partners in case of network errors or other intermittent failures. Learn more.

Request body

characterSet'Basic' | 'Extended' | 'ExtendedHipaa'

When generating EDI, the character set determines the set of characters allowed in the EDI message. Characters outside of the specified set (after applying any repairs specified in RepairOptions) will result in an error.

filenamestring

Set a custom name for 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 an ID.

interchangeUsageIndicatorOverride'I' | 'T' | 'P'

Set ISA-15 to a different value. If not set, the default value is P (Production Data).

Response

GenerateEdi 200 response

edistring

The EDI Stedi generated from the JSON transaction data.

artifactIdstring required

An ID for the generated EDI file.

fileExecutionIdstring required

A ID for the process Stedi uses to generate the EDI file. This ID appears on the details page for this file execution in the Stedi portal. Internally, Stedi uses this ID to place the file in Stedi's outbound queue.