상품 · 디지털 릴리스
upload_id를 만든 뒤 multipart/form-data로 파일을 전송하고 상품에 연결합니다. 다운로드에는 Bearer 토큰과 category 권한이 필요하며, 응답에는 공개 주소나 비밀번호 없이 파일 바이트가 포함됩니다. 공유 판매 파일의 명시적 접근 규칙. new_purchases / recent_and_new / selected / all_purchasers.
GET
/api/v1/products/{product_id}/file-releasescURL 요청
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/file-releases \
--header 'Authorization: Bearer EXAMPLE_ACCESS_TOKEN'
응답
{
"data": {
"current_release_id": "00000000-0000-4000-8000-000000000001",
"product_version": 2,
"releases": [
{
"changelog": "Manual update",
"files": [
{
"file_id": "00000000-0000-4000-8000-000000000001",
"sort_order": 0,
"version_id": "00000000-0000-4000-8000-000000000001"
}
],
"id": "00000000-0000-4000-8000-000000000001",
"manifest_sha256": "1111111111111111111111111111111111111111111111111111111111111111",
"published_at": null,
"release_sequence": null,
"state": "active",
"version_label": "1.0",
"withdrawn_at": null
}
],
"update_days": 365,
"update_mode": "period",
"update_months": null
},
"meta": {
"pagination": {
"has_more": false,
"limit": 50,
"next_cursor": null
},
"request_id": "example"
}
}