Skip to content

Download an attachment

Request

Purpose

Downloads an attachment. For files stored in cloud storage the response is JSON with a short-lived presigned url - fetch the file from that URL with a plain GET (no Authorization header). Older attachments are streamed directly as application/octet-stream.

When to use

  • Retrieve a supporting document for review, audit or archiving.
Security
OneIdOAuth
Path
jeIdinteger, (int64)required

ID of the journal entry.

Example:10045
attachmentIdinteger, (int64)required

ID of the attachment.

Example:501
cURL
curl -i -X GET \
  https://one.zuora.com/revenue/services/v1/journal-entries/10045/attachments/501/download \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Presigned download URL (cloud-stored files)

Headers
traceIdstring

Identifier of the request. Quote it when you contact Zuora Support.

Body
urlstring or null, (uri)

Presigned HTTPS URL. Download with a plain GET without the Authorization header. The URL expires after a short time; request a new one if it has expired.

Example:"https://zr-attachments.s3.amazonaws.com/...&X-Amz-Signature=..."
Response
{ "url": "https://zr-attachments.s3.amazonaws.com/t1/je/10045/501?X-Amz-Expires=300&X-Amz-Signature=..." }