Skip to content
ShopentlyLearn

Products · Product files

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

cURL request

curl --disable --globoff --fail-with-body --silent --show-error \
  --proto '=https' --connect-timeout 5 --max-time 30 \
  --request GET \
  --url 'https://shop.onshopently.com/api/v1/products/example/files?category=digital' \
  --header 'Authorization: Bearer EXAMPLE_ACCESS_TOKEN'

Response

{
  "data": {
    "files": [
      {
        "category": "digital",
        "created_at": "2026-01-01T12:00:00Z",
        "current_version_id": "00000000-0000-4000-8000-000000000001",
        "file_id": "00000000-0000-4000-8000-000000000001",
        "filename": "manual.pdf",
        "id": "00000000-0000-4000-8000-000000000001",
        "label": "Manual",
        "mime_type": "application/pdf",
        "sha256": "5cd2f1cb0e5532b397e7ab1887baf6000c49450fd80ae279eb047c06e4545ecd",
        "size_bytes": 46,
        "state": "active",
        "version_number": 1
      }
    ],
    "product_version": 2
  },
  "meta": {
    "pagination": {
      "has_more": false,
      "limit": 50,
      "next_cursor": null
    },
    "request_id": "example"
  }
}

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