Táirgí · Comhaid táirge
Tar éis upload_id a chruthú, uaslódáil na comhaid mar multipart/form-data agus ceangail leis an táirge iad. Teastaíonn comhartha Bearer agus cead do category chun íoslódáil; bíonn bearta an chomhaid sa fhreagra, gan seoladh poiblí ná pasfhocal. Riail rochtana shainráite don chomhad comhroinnte. new_purchases / recent_and_new / selected / all_purchasers.
GET
/api/v1/products/{product_id}/filesIarratas cURL
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'
Freagra
{
"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"
}
}
Ceadanna riachtanacha
- Fíordheimhniú
- Comhartha rochtana
- Ar fáil ó
- STANDARD
- Ceadanna riachtanacha
Ceadanna breise do réimsí roghnaithe
category=internal: Comhaid táirge a fheiceáil · Comhaid inmheánachacatalog.product_file:read_internalcategory=customer_document: Comhaid táirge a fheiceáil · Doiciméid do chustaiméirícatalog.product_file:read_customer_documentcategory=digital: Comhaid táirge a fheiceáil · Táirgí digiteachacatalog.product_file:read_digital