Pobierz produkty po ID
POST
/api/products/v4/productsByIds
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v4/productsByIds';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"includes":{"includeCatalog":true,"includeManufacturer":true,"includeCategory":true,"includeStocks":true,"includeProperties":true,"includeProductLinks":true,"includeComplexFields":true,"includeVariants":true,"includeBundleItems":true,"includeTranslations":true},"ids":[1],"forUi":true}'};
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/v4/productsByIds \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "includes": { "includeCatalog": true, "includeManufacturer": true, "includeCategory": true, "includeStocks": true, "includeProperties": true, "includeProductLinks": true, "includeComplexFields": true, "includeVariants": true, "includeBundleItems": true, "includeTranslations": true }, "ids": [ 1 ], "forUi": true }'Zwraca dane wielu produktów o identyfikatorach przekazanych w treści żądania; zalecane przy dużej liczbie ID. Odpowiednik getInventoryProductsData w BaseLinker.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
includes
object
includeCatalog
boolean
includeManufacturer
boolean
includeCategory
boolean
includeStocks
boolean
includeProperties
boolean
includeProductLinks
boolean
includeComplexFields
boolean
includeVariants
boolean
includeBundleItems
boolean
includeTranslations
boolean
ids
Array<integer>
forUi
boolean
Examplegenerated
{ "includes": { "includeCatalog": true, "includeManufacturer": true, "includeCategory": true, "includeStocks": true, "includeProperties": true, "includeProductLinks": true, "includeComplexFields": true, "includeVariants": true, "includeBundleItems": true, "includeTranslations": true }, "ids": [ 1 ], "forUi": true}object
includes
object
includeCatalog
boolean
includeManufacturer
boolean
includeCategory
boolean
includeStocks
boolean
includeProperties
boolean
includeProductLinks
boolean
includeComplexFields
boolean
includeVariants
boolean
includeBundleItems
boolean
includeTranslations
boolean
ids
Array<integer>
forUi
boolean
Examplegenerated
{ "includes": { "includeCatalog": true, "includeManufacturer": true, "includeCategory": true, "includeStocks": true, "includeProperties": true, "includeProductLinks": true, "includeComplexFields": true, "includeVariants": true, "includeBundleItems": true, "includeTranslations": true }, "ids": [ 1 ], "forUi": true}object
includes
object
includeCatalog
boolean
includeManufacturer
boolean
includeCategory
boolean
includeStocks
boolean
includeProperties
boolean
includeProductLinks
boolean
includeComplexFields
boolean
includeVariants
boolean
includeBundleItems
boolean
includeTranslations
boolean
ids
Array<integer>
forUi
boolean
Examplegenerated
{ "includes": { "includeCatalog": true, "includeManufacturer": true, "includeCategory": true, "includeStocks": true, "includeProperties": true, "includeProductLinks": true, "includeComplexFields": true, "includeVariants": true, "includeBundleItems": true, "includeTranslations": true }, "ids": [ 1 ], "forUi": true}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>
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
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>
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
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
[ { "variants": [ { "productPriceGroups": [ { "currency": "None" } ] } ], "productPriceGroups": [ { "currency": "None" } ] }]Array<object>
object
id
integer format: int64
parentId
integer format: int64
isParent
boolean
variantsCount
integer format: int32
variants
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
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
[ { "variants": [ { "productPriceGroups": [ { "currency": "None" } ] } ], "productPriceGroups": [ { "currency": "None" } ] }]
