Themes built on the Twig templating engine are now deprecated and require migration to Vitrin to ensure continued support and compatibility with Zid.
nameAr
(string): Product name in ArabicnameEn
(string): Product name in Englishprice
(number): Product priceisDraft
(boolean, optional): Whether product is draft (default: true)language
(string): Response language (en or ar)
productId
(string): The unique identifier of the product for which to generate the upload URLlanguage
(string): Response language (en or ar)
productId
(string): The unique identifier of the product to associate the downloadable file withfile
(string): The storage key/path of the uploaded file (obtained from generate-upload-url)displayName
(string): The name of the file as it should appear to the end usersaveToLibrary
(boolean, optional): Whether the downloadable file should be saved to the store's library for future use (default: true)language
(string): Response language (en or ar)
productId
(string): The unique identifier of the product to retrieve downloadable files forlanguage
(string): Response language (en or ar)
productId
(string): The unique identifier of the productdownloadableId
(string): The unique identifier of the downloadable file to deletelanguage
(string): Response language (en or ar)
displayName
(string, optional): A search keyword to filter files by their display nameordering
(string, optional): Determines the sorting order - 'file_size' orders by size, 'created_at' orders by creation datelanguage
(string): Response language (en or ar)
file
(string): The storage key/path of the uploaded filedisplayName
(string): The name of the file as it should appear in the librarylanguage
(string): Response language (en or ar)
downloadableId
(string): The unique identifier of the downloadable file to deletelanguage
(string): Response language (en or ar)
Tool Name | Purpose/Use Case | Key Parameters |
---|---|---|
Create Downloadable Product | Create new digital product | nameAr, nameEn, price, isDraft |
Generate Upload URL | Create secure file upload URL | productId |
Create Product Downloadable | Associate file with product | productId, file, displayName, saveToLibrary |
Get Product Downloadables | List files for a product | productId |
Delete Product Downloadable | Remove file from product | productId, downloadableId |
Get Store Downloadables | List all store digital files | displayName, ordering |
Create Store Downloadable | Add file to store library | file, displayName |
Delete Store Downloadable | Remove file from store library | downloadableId |