Fetch
TIP
Payload
FetchPayload
source
enum<string>
required
Allowed values:
categorieslatestrelatedbrandsjsonsearchtagsselectedofferslanding-page
sourceValue
string | number | object | array
required
filters
object
optional
limit
number
optional
includes
array[string]
optional
["options"]
, which uses the "salla.product.api.fetchOptions"
API to include the products' options for each fetched productsResponse
Success
Error
product.fetch.success
success
boolean
success
status
enum<number>
status
Allowed values:
200201202
data
array[object (ProductDetail) {51}]
Data is available when the success is `true`
id
number
optional
promotion
object
optional
sku
string
optional
mpn
string
optional
gtin
string
optional
type
string
optional
name
string
optional
short_link_code
string
optional
urls
object
optional
price
object
optional
taxed_price
object
optional
pre_tax_price
object
optional
tax
object
optional
description
string
optional
quantity
string
optional
status
string
optional
is_available
boolean
optional
views
string
optional
sale_price
object
optional
sale_end
string
optional
require_shipping
boolean
optional
cost_price
string
optional
weight
number
optional
weight_type
string
optional
weight_label
string
optional
with_tax
boolean
optional
included_tax
boolean
optional
url
string
optional
main_image
string
optional
images
array[object (images)]
optional
show_purchase_count
string
optional
sold_quantity
number
optional
sold_quantity_desc
string
optional
rating
object
Rating
favorite
string
optional
has_special_price
boolean
optional
regular_price
object
optional
features
object
optional
maximum_quantity_per_order
number
optional
show_in_app
boolean
optional
has_size_guide
boolean
optional
notify_quantity
string
optional
hide_quantity
boolean
optional
unlimited_quantity
boolean
optional
managed_by_branches
boolean
optional
services_blocks
object
optional
calories
string
optional
customized_sku_quantity
boolean
optional
options
array[object (Option) {17}]
optional
skus
array [object {14}]
optional
tags
array [object]
optional
Usage
categories
and a source_value property of an array [1, 2, 3]
. We then call the fetch()
method of the salla.product object and pass in the query parameters as an argument.
Events
onProductListFetchSucceeded
onProductListFetchFailed
Modified at 2025-03-04 12:54:02