GET
/
transactions
/
{transactionId}
/
fragments
/
{fragmentIndex}
/
output

There are no size restrictions on documents when fetching from this endpoint, however they are generally smaller and consumable because they are fragments.

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 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.

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

Authorizations

Authorization
string
headerrequired

A Stedi API Key for authentication.

Path Parameters

transactionId
string
required

A unique identifier for the processed transaction within Stedi. This ID is included in the transaction processed event, or you can retrieve it manually from the transaction's details page within the Stedi app.

fragmentIndex
number
required

The identifier for a specific fragment within a processed transaction. This ID is included in the fragment processed event, or you can retrieve it manually from the transaction's details page within the Stedi app.

Response

302 - application/json
documentDownloadUrl
string

A URL to download the document. This URL is available for 60 minutes.

Was this page helpful?