Skip to content
ShopentlyLearn

Products · Download · File

Upload files as multipart/form-data after creating upload_id, then assign them to a product. Downloads require a Bearer token and permission for category; the response contains file bytes, without a public address or password. Explicit access rule for the uploaded shared digital file. new_purchases / recent_and_new / selected / all_purchasers.

GET/api/v1/products/{product_id}/files/{file_id}/versions/{version_id}/content

cURL request

: "${SHOPENTLY_SHOP_URL:?}"

curl --disable --globoff --fail-with-body --silent --show-error \
  --proto '=https' --connect-timeout 5 --max-time 300 \
  --request GET \
  --header "Authorization: Bearer ${SHOPENTLY_ACCESS_TOKEN:?}" \
  --max-filesize 262144000 \
  --output "${SHOPENTLY_OUTPUT_FILE:?}" \
  --url "${SHOPENTLY_SHOP_URL%/}"'/api/v1/products/example/files/00000000-0000-4000-8000-000000000001/versions/00000000-0000-4000-8000-000000000001/content?category=digital'

Response

Content-Type: application/pdf
Content-Disposition: attachment; filename="manual.pdf"

Required permissions

Authentication
Access token
Available from
STANDARD
Required permissions
Additional permissions for selected fields
  • category=internal: View product files · Internal filescatalog.product_file:read_internal
  • category=customer_document: View product files · Customer documentscatalog.product_file:read_customer_document
  • category=digital: View product files · Digital productscatalog.product_file:read_digital