Pobierz listę produktów
GET
/api/products/v4/products
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v4/products?sortBy=Stock&sortOrder=desc&availability=Available&pageSize=100&pageNumber=0&searchOperator=AND';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v4/products?sortBy=Stock&sortOrder=desc&availability=Available&pageSize=100&pageNumber=0&searchOperator=AND' \ --header 'Authorization: Bearer <token>'Zwraca stronicowaną listę produktów z filtrami (katalog, magazyn, kategoria, nazwa, EAN, SKU i in.); dopasowania w wariantach są zwijane do produktu nadrzędnego. Odpowiednik getInventoryProductsList w BaseLinker.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”catalogId
integer format: int64
warehouseId
integer format: int64
warehouseIds
Array<integer>
priceGroupId
integer format: int64
productId
integer format: int64
productIds
Array<integer>
categoryId
integer format: int64
productName
string
ean
string
eans
Array<string>
sku
string
skus
Array<string>
vat
number format: double
quantityFrom
integer format: int32
quantityTo
integer format: int32
priceFrom
number format: double
priceTo
number format: double
weightFrom
number format: double
weightTo
number format: double
widthFrom
number format: double
widthTo
number format: double
heightFrom
number format: double
heightTo
number format: double
lengthFrom
number format: double
lengthTo
number format: double
sortBy
string
andFilters
Array<string>
excludedIds
Array<integer>
includedIds
Array<integer>
sortOrder
string
availability
string
productConnections
Array<string>
excludedProductConnections
Array<string>
hasNoProductConnections
boolean
pageSize
integer format: int32
Max value : 1000
pageNumber
integer format: int32
isBundle
boolean
strictFilter
boolean
searchInVariants
boolean
searchOperator
string
includes.includeCatalog
boolean
includes.includeManufacturer
boolean
includes.includeCategory
boolean
includes.includeStocks
boolean
includes.includeProperties
boolean
includes.includeProductLinks
boolean
includes.includeComplexFields
boolean
includes.includeVariants
boolean
includes.includeBundleItems
boolean
includes.includeTranslations
boolean
location
string
categoriesIds
Array<integer>
manufacturersIds
Array<integer>
externalProductId
string
productPropertyExternalId
string
language
string
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
object
totalRecords
integer format: int32
totalPages
integer format: int32
data
Array<object>
object
id
integer format: int64
name
string
parentId
integer format: int64
isParent
boolean
variantsCount
integer format: int32
nameWithParentName
string
catalogId
integer format: int64
vat
number format: double
ean
string
sku
string
weight
number format: double
width
number format: double
height
number format: double
length
number format: double
isBundle
boolean
createdAt
string format: date-time
updatedAt
string format: date-time
isAsteriskMarked
boolean
catalog
object
id
integer format: int64
name
string
description
string
languages
Array<string>
isDefault
boolean
reservations
boolean
defaultWarehouseId
integer format: int64
defaultPriceGroupId
integer format: int64
category
object
id
integer format: int64
name
string
parentId
integer format: int64
catalogId
integer format: int64
manufacturer
object
id
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
createdAt
string format: date-time
updatedAt
string format: date-time
productPriceGroups
Array<object>
object
id
string
productId
string
priceGroupId
integer format: int64
catalogId
integer format: int64
price
number format: double
currency
string
createdAt
string format: date-time
updatedAt
string format: date-time
properties
Array<object>
object
id
string
name
string
value
string
externalId
string
productLinks
Array<object>
object
id
string
productId
string
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
complexFields
Array<object>
object
name
string
value
string
bundleItems
Array<object>
object
id
integer format: int64
bundleItemProductId
integer format: int64
quantity
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
createdAt
string format: date-time
updatedAt
string format: date-time
translations
object
key
additional properties
object
name
string
descriptionComplexFields
Array<object>
object
name
string
description
string
productProperties
Array<object>
object
name
string
value
string
object
totalRecords
integer format: int32
totalPages
integer format: int32
data
Array<object>
object
id
integer format: int64
name
string
parentId
integer format: int64
isParent
boolean
variantsCount
integer format: int32
nameWithParentName
string
catalogId
integer format: int64
vat
number format: double
ean
string
sku
string
weight
number format: double
width
number format: double
height
number format: double
length
number format: double
isBundle
boolean
createdAt
string format: date-time
updatedAt
string format: date-time
isAsteriskMarked
boolean
catalog
object
id
integer format: int64
name
string
description
string
languages
Array<string>
isDefault
boolean
reservations
boolean
defaultWarehouseId
integer format: int64
defaultPriceGroupId
integer format: int64
category
object
id
integer format: int64
name
string
parentId
integer format: int64
catalogId
integer format: int64
manufacturer
object
id
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
createdAt
string format: date-time
updatedAt
string format: date-time
productPriceGroups
Array<object>
object
id
string
productId
string
priceGroupId
integer format: int64
catalogId
integer format: int64
price
number format: double
currency
string
createdAt
string format: date-time
updatedAt
string format: date-time
properties
Array<object>
object
id
string
name
string
value
string
externalId
string
productLinks
Array<object>
object
id
string
productId
string
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
complexFields
Array<object>
object
name
string
value
string
bundleItems
Array<object>
object
id
integer format: int64
bundleItemProductId
integer format: int64
quantity
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
createdAt
string format: date-time
updatedAt
string format: date-time
translations
object
key
additional properties
object
name
string
descriptionComplexFields
Array<object>
object
name
string
description
string
productProperties
Array<object>
object
name
string
value
string
Example
{ "data": [ { "productPriceGroups": [ { "currency": "None" } ] } ]}object
totalRecords
integer format: int32
totalPages
integer format: int32
data
Array<object>
object
id
integer format: int64
name
string
parentId
integer format: int64
isParent
boolean
variantsCount
integer format: int32
nameWithParentName
string
catalogId
integer format: int64
vat
number format: double
ean
string
sku
string
weight
number format: double
width
number format: double
height
number format: double
length
number format: double
isBundle
boolean
createdAt
string format: date-time
updatedAt
string format: date-time
isAsteriskMarked
boolean
catalog
object
id
integer format: int64
name
string
description
string
languages
Array<string>
isDefault
boolean
reservations
boolean
defaultWarehouseId
integer format: int64
defaultPriceGroupId
integer format: int64
category
object
id
integer format: int64
name
string
parentId
integer format: int64
catalogId
integer format: int64
manufacturer
object
id
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
createdAt
string format: date-time
updatedAt
string format: date-time
productPriceGroups
Array<object>
object
id
string
productId
string
priceGroupId
integer format: int64
catalogId
integer format: int64
price
number format: double
currency
string
createdAt
string format: date-time
updatedAt
string format: date-time
properties
Array<object>
object
id
string
name
string
value
string
externalId
string
productLinks
Array<object>
object
id
string
productId
string
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
complexFields
Array<object>
object
name
string
value
string
bundleItems
Array<object>
object
id
integer format: int64
bundleItemProductId
integer format: int64
quantity
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
createdAt
string format: date-time
updatedAt
string format: date-time
translations
object
key
additional properties
object
name
string
descriptionComplexFields
Array<object>
object
name
string
description
string
productProperties
Array<object>
object
name
string
value
string
Example
{ "data": [ { "productPriceGroups": [ { "currency": "None" } ] } ]}
