This functionality is available in a Stedi module. Contact us for details.

Once you configure fragments for an inbound transaction setting, Stedi splits the translated transaction payload into chunks based on the selected segment.

Processing events

Stedi emits two types of events for inbound transactions with fragments enabled: transaction.processed.v2 and fragment.processed.v2.

For example, if you enable fragments on the LIN loop in an 846 Inventory Inquiry/Advice, Stedi will fragment a translated 846 file and emit the following events:

Ingest fragments

You have two options for ingesting fragments from processed inbound transactions into your downstream system.

Push-based

Configure a Destination webhook for fragment.processed.v2 events and ingest fragments as Stedi emits these events.

When you receive fragment.processed.v2 events through a Destination webhook, the payload contains the fragment as well as general information about the transaction.

Pull-based

Configure a Destination webhook for transaction.processed.v2 events only. After you receive a transaction.processed.v2 event, you can use the API to retrieve associated fragments in batches according to your system’s requirements.

When you receive a transaction.processed.v2 event through a Destination webhook, the transaction payload contains the fragment wrapper - the transaction with an an empty array in the position of the fragmented segment. Adjacent to that segment, the payload also includes an x-stedi-fragment-detail section with general information about the fragments that Stedi created.

Retrieve inbound transaction with fragments

Stedi does not store the complete transaction for inbound files with fragments enabled. When you use Stedi’s Get Transaction endpoint to retrieve inbound transactions with fragments, Stedi always returns the fragment wrapper (the transaction minus fragments).

You cannot retrieve the complete transaction with fragments included - you must use the Get Fragment endpoint to retrieve the fragments separately.

Was this page helpful?