Split inbound EDI files with fragments
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:
- One
transaction.processed.v2
event for each unique transaction set that was included in the original file. - One or more
fragment.processed.v2
events. Each fragment contains several iterations of theLIN
loop (inventory items).
Ingest fragments
You have two options for ingesting fragments from processed inbound transactions into your downstream system.
Fragment processed events
Configure a webhook for fragment processed events. As Stedi emits these events, use the Get Fragment endpoint to retrieve each processed fragment from Stedi.
Transaction processed events
Configure a webhook for transaction processed events only. After you receive a transaction processed event, use the API to retrieve associated fragments in batches according to your system’s requirements.
The event payload includes a fragments
object 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?