# Retrieve Transaction Output
Source: https://www.stedi.com/docs/healthcare/api-reference/get-transactions-output

***

title: Retrieve Transaction Output
sidebarTitle: "Transaction Output"
openapi: core get /transactions/{transactionId}/output
------------------------------------------------------

This endpoint retrieves a transaction's output document, which is the result after Stedi has finished translating and mapping the input document.

The output document can be in either X12 EDI or JSON format, depending on the direction of the transaction. For example, if a payer sends you an 835 ERA, the output document will be a JSON representation of the 835 ERA.

Note that when the output is X12 EDI, the document only includes the transaction information (`ST` to `SE` segments) and doesn't include the envelope.

There are no size restrictions on documents when fetching from this endpoint.

## 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, using the `-L` or `--location` flag in cURL will automatically follow the redirect. In this case, the response body will contain the full transaction 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` which contains a temporary URL to download the document. This URL is available for 60 minutes.