Create Store Downloadables
DevelopingPOST
v1/downloadables-library/This endpoint allows the creation of downloadable files associated with a specific store. The client uploads a file, and the endpoint returns details about the newly created downloadable item, including its identifier, file name, and size.
Request
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
A unique identifier for the newly created downloadable file.
The file path in the storage system where the file is stored.
The user-friendly name of the uploaded file.
The ID of the store to which the file is linked.
The size of the uploaded file in bytes.
{
"id": "657a0e17-3917-464e-b491-38412adfbabe",
"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
}