Product - AquilaCMS/aquila-connector GitHub Wiki

/src/api/product/index.js

Functions

Get product's data

getProduct(postBody, preview, lang)
  • postBody - any? : request body overload - Optional
  • preview - string? : Preview ID - Optionnal
  • lang - string? : current language ("fr" is the default value) - Optional

Get product's datas by ID

getProductById(id, lang)
  • id - string : Product ID
  • lang - string? : current language ("fr" is the default value) - Optional

Get a list of products

getProducts(withFilters, postBody, lang)
  • withFilters - boolean? : true for return filters data (false is the default value) - Optional
  • postBody - any? : request body overload - Optional
  • lang - string? : current language ("fr" is the default value) - Optional

Download free virtual product

downloadFreeVirtualProduct(productId)
  • productId - string : Product ID

Download virtual product

downloadVirtualProduct(itemId)
  • itemId - string : Product ID in items order list