Wyszukaj produkty po właściwościach
POST
/api/products/v2/products/byProperties
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v2/products/byProperties';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"catalogId":1,"propertyFilterSearchValues":[[{"propertyName":"example","searchValue":"example"}]]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v2/products/byProperties \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "catalogId": 1, "propertyFilterSearchValues": [ [ { "propertyName": "example", "searchValue": "example" } ] ] }'Zwraca produkty pasujące do podanych wartości właściwości (np. SKU, EAN). To operacja odczytu.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
catalogId
integer format: int64
propertyFilterSearchValues
Array<Array<object>>
Examplegenerated
{ "catalogId": 1, "propertyFilterSearchValues": [ [ { "propertyName": "example", "searchValue": "example" } ] ]}object
catalogId
integer format: int64
propertyFilterSearchValues
Array<Array<object>>
Examplegenerated
{ "catalogId": 1, "propertyFilterSearchValues": [ [ { "propertyName": "example", "searchValue": "example" } ] ]}object
catalogId
integer format: int64
propertyFilterSearchValues
Array<Array<object>>
Examplegenerated
{ "catalogId": 1, "propertyFilterSearchValues": [ [ { "propertyName": "example", "searchValue": "example" } ] ]}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Array<object>
object
id
integer format: int64
parentId
integer format: int64
isParent
boolean
variantsCount
integer format: int32
variants
Array<object> recursive
catalogId
integer format: int64
manufacturerId
integer format: int64
name
string
nameWithParentName
string
vat
number format: double
vatSymbol
string
ean
string
sku
string
weight
number format: double
width
number format: double
height
number format: double
length
number format: double
categoryId
integer format: int64
isBundle
boolean
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
productPriceGroups
Array<object>
object
priceGroupId
integer format: int64
currency
string
price
number format: double
properties
Array<object>
object
id
string
name
string
value
string
externalId
string
productLinks
Array<object>
object
id
integer format: int64
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
integer format: int64
complexFields
Array<object>
object
id
integer format: int64
name
string
value
string
bundleItems
Array<object>
object
id
integer format: int64
bundleItemProductId
integer format: int64
quantity
integer format: int32
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
translations
object
key
additional properties
object
name
string
descriptionComplexFields
Array<object>
object
name
string
description
string
productProperties
Array<object>
object
name
string
value
string
Array<object>
object
id
integer format: int64
parentId
integer format: int64
isParent
boolean
variantsCount
integer format: int32
variants
Array<object> recursive
catalogId
integer format: int64
manufacturerId
integer format: int64
name
string
nameWithParentName
string
vat
number format: double
vatSymbol
string
ean
string
sku
string
weight
number format: double
width
number format: double
height
number format: double
length
number format: double
categoryId
integer format: int64
isBundle
boolean
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
productPriceGroups
Array<object>
object
priceGroupId
integer format: int64
currency
string
price
number format: double
properties
Array<object>
object
id
string
name
string
value
string
externalId
string
productLinks
Array<object>
object
id
integer format: int64
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
integer format: int64
complexFields
Array<object>
object
id
integer format: int64
name
string
value
string
bundleItems
Array<object>
object
id
integer format: int64
bundleItemProductId
integer format: int64
quantity
integer format: int32
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
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
[ { "productPriceGroups": [ { "currency": "None" } ] }]Array<object>
object
id
integer format: int64
parentId
integer format: int64
isParent
boolean
variantsCount
integer format: int32
variants
Array<object> recursive
catalogId
integer format: int64
manufacturerId
integer format: int64
name
string
nameWithParentName
string
vat
number format: double
vatSymbol
string
ean
string
sku
string
weight
number format: double
width
number format: double
height
number format: double
length
number format: double
categoryId
integer format: int64
isBundle
boolean
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
productPriceGroups
Array<object>
object
priceGroupId
integer format: int64
currency
string
price
number format: double
properties
Array<object>
object
id
string
name
string
value
string
externalId
string
productLinks
Array<object>
object
id
integer format: int64
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
integer format: int64
complexFields
Array<object>
object
id
integer format: int64
name
string
value
string
bundleItems
Array<object>
object
id
integer format: int64
bundleItemProductId
integer format: int64
quantity
integer format: int32
name
string
stocks
Array<object>
object
id
string
warehouseId
integer format: int64
quantity
integer format: int32
locationName
string
vatAmount
number format: double
vatSymbol
string
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
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
[ { "productPriceGroups": [ { "currency": "None" } ] }]
