Get Execution Output
This endpoint retrieves an execution’s output document.
This endpoint retrieves a file execution’s output document, which is the result after Stedi has finished translating and mapping the input document. For example, if you send an 834 Benefit Enrollment to a payer, the output document will be an X12 EDI 834 Benefit Enrollment transaction.
There are no size restrictions on documents when fetching from this endpoint.
You can only call this endpoint for outbound files that you send to your trading partner. If you call the API for an inbound file, the endpoint returns a 404
Not Found response.
Response
This endpoint returns a 302
Temporary redirect to the document download URL. Many HTTP clients will automatically follow this redirect, or have a simple follow redirects configuration to set. For example, the -L
or --location
flags in cURL requests will automatically follow the redirect. In this case, the response will contain the full output document.
In the event you cannot, or chose not to automatically follow the redirect, the body of the response contains a JSON object with a single key documentDownloadUrl
that contains a temporary URL to download the document. This URL is available for 60 minutes.
Authorizations
A Stedi API Key for authentication.
Path Parameters
A unique identifier for the file execution within Stedi. This ID is included in the file delivered event, or you can retrieve it manually from the file's details page within the Stedi app.
Response
A URL to download the document. This URL is available for 60 minutes.