Get Store Downloadables Copy
DevelopingGET
v1/downloadables-library/This endpoint retrieves a list of downloadable files associated with a specific store. It supports searching by file name and ordering the results by file size or creation date. The response provides details about each downloadable file, including its ID, name, file size, and associated store.
Request
A search keyword to filter files by their display name.
Determines the sorting order of the results. Accepted values:
file_size: Orders the files by size in ascending order.
created_at: Orders the files by their creation date in ascending order.
The Authorization token is a unique key given to the third-party application (Partner) by Zid. It is used to authenticate the API requests made by the Partner application. The token verifies the partner's identity and ensures they have permission to access Zid's API but does not provide any specific user or store information. It should be included in the header of API requests when the partner application needs to access Zid's API.
Unique identifier of the store.
Preferred language for the response. Defaults to en
if not specified.
This token is used to authenticate and access information related to the store. It is obtained through an OAuth mechanism and is required to perform operations on the store's data. The X-Manager-Token
should be included in the header of API requests that require store-related information.
Role of the user.
The currency in which the data should be returned. This should be provided as an ISO 4217 currency code. For example, SAR for Saudi Riyal, USD for United States Dollar, KWD for Kuwaiti Dinar, etc.
Request samples
Responses
The total number of downloadable files available for the store.
URL to the next page of results, or null if there are no additional pages.
URL to the previous page of results, or null if there are no previous pages.
A list of downloadable file details.
Unique identifier for the downloadable file.
The file path in the storage system.
The user-friendly name of the file.
The ID of the store to which the file belongs.
The size of the file in bytes.
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": "fcbbbf6e-74d4-439b-8425-2e382452bfe0",
"file": "9fc92996-ffbe-4bca-9b8e-6682137fe7b6/product-downloadables/82a9062f-934c-4f05-933e-a0357f40c46d",
"display_name": "fundementals of data engineering.pdf",
"store_id": "9fc92996-ffbe-4bca-9b8e-6682137fe7b6",
"file_size": 8939064
},
{
"id": "7073e17c-183a-4903-ac37-6e7615162c7e",
"file": "9fc92996-ffbe-4bca-9b8e-6682137fe7b6/product-downloadables/8244389b-8fe3-47dc-85ae-2f8e9e95f899",
"display_name": "most-common-reasons-for-journal-rejections.pdf",
"store_id": "9fc92996-ffbe-4bca-9b8e-6682137fe7b6",
"file_size": 278103
}
]
}