Inbound and Outbound file processing flow

Once you add a trading partner, you can start exchanging EDI files.

Inbound processing flow

You don’t need to call an API to process inbound files from your trading partner. When a new EDI file arrives over a connection, Stedi automatically:

  1. Confirms that the information in the file’s ISA headers matches the corresponding partnership. If not, the file will error, and you can retry after creating the required configuration.
  2. Identifies all available transaction sets in the file and validates them against the transaction settings for the partnership, either using the specified guide or the base X12 specification.
  3. Translates the EDI transaction into Guide JSON, using the JSON Schema defined by the guide.
  4. Sends the translated transaction data to any configured Destination webhooks.
  5. Persists the original EDI file and the Guide JSON for review and retrieval and displays the transaction set data in the UI for inspection.

Stedi can also route non-EDI files, such as CSV, XML, and JSON to your business system for further processing. Learn more

Outbound processing flow

When you use the API to generate EDI files, Stedi automatically:

  1. Validates the Guide JSON transaction payload against the guide attached to the outbound transaction setting for the partnership. The API returns an error if validation is not successful.
  2. Generates an EDI document that conforms to outbound transaction setting.
  3. Persists the JSON payload and resulting EDI file.
  4. Delivers the EDI file to your trading partner through the configured connection.
  5. Displays the generated file on the Files page in the Stedi app for review.
  6. Emits a file.delivered.v2 event and one or more transaction.processed.v2 events.