Download Enrollment Document

Returns a pre-signed URL to download the specified enrollment document.

GET/documents/{documentId}/download

This endpoint returns a pre-signed URL that you can use to download a PDF document related to the specified transaction enrollment.

  1. Call this endpoint with the document ID for the PDF document you want to download. The document ID is returned in the responses for the Retrieve Enrollment and List Enrollments endpoints.

  2. The endpoint returns a pre-signed URL that you can use to download the specified PDF document.

  3. Use a GET request to download the PDF document from the pre-signed URL.

    curl --request GET \
    --url "<downloadUrl>" \
    --output /path/to/file.pdf

You can also download enrollment documents manually from the enrollment's details page in the Stedi portal.

Authorization
RequiredHeader

A Stedi API Key for authentication.

Path Parameters

The document ID for the PDF document you want to download. The document ID is returned in the responses for the Retrieve Enrollment and List Enrollments endpoints.

Response

application/json

CreateEnrollmentDocumentDownload 200 response

documentId
StringRequired

The document ID for the PDF document associated with the downloadUrl.

downloadUrl
StringRequired

The pre-signed URL to download the document.