Pobierz produkty po identyfikatorach
POST
/api/PimProducts/GetProductsByIds
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/PimProducts/GetProductsByIds';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"ids":[1]}'};
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-sales-offers-allegro-api.enterprise.sellrocket.pl/api/PimProducts/GetProductsByIds \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ids": [ 1 ] }'Operacja odczytu.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
ids
wymagane
Array<integer>
Examplegenerated
{ "ids": [ 1 ]}object
ids
wymagane
Array<integer>
Examplegenerated
{ "ids": [ 1 ]}object
ids
wymagane
Array<integer>
Examplegenerated
{ "ids": [ 1 ]}Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
object
products
wymagane
Array<object>
object
id
wymagane
integer format: int64
parentId
integer format: int64
isParent
wymagane
boolean
variantsCount
wymagane
integer format: int32
variants
Array<object> recursive
catalogId
wymagane
integer format: int64
manufacturerId
wymagane
integer format: int64
name
string
nameWithParentName
string
vat
wymagane
number format: double
vatSymbol
string
ean
string
sku
string
weight
wymagane
number format: double
width
wymagane
number format: double
height
wymagane
number format: double
length
wymagane
number format: double
categoryId
integer format: int64
isBundle
boolean
isAsteriskMarked
boolean
catalog
object
id
wymagane
integer format: int64
name
string
description
string
languages
Array<string>
isDefault
wymagane
boolean
reservations
wymagane
boolean
defaultWarehouseId
wymagane
integer format: int64
defaultPriceGroupId
wymagane
integer format: int64
category
object
id
wymagane
integer format: int64
name
string
parentId
wymagane
integer format: int64
catalogId
wymagane
integer format: int64
manufacturer
object
id
wymagane
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
wymagane
integer format: int64
quantity
wymagane
integer format: int32
locationName
string
vatAmount
wymagane
number format: double
productPriceGroups
Array<object>
object
priceGroupId
wymagane
integer format: int64
currency
wymagane
string
price
number format: double
properties
Array<object>
object
id
string
name
string
value
string
externalId
string
productLinks
Array<object>
object
id
wymagane
integer format: int64
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
wymagane
integer format: int64
complexFields
Array<object>
object
id
wymagane
integer format: int64
name
string
value
string
bundleItems
Array<object>
object
id
wymagane
integer format: int64
bundleItemProductId
wymagane
integer format: int64
quantity
wymagane
integer format: int32
name
string
stocks
Array<object>
object
id
string
warehouseId
wymagane
integer format: int64
quantity
wymagane
integer format: int32
locationName
string
vatAmount
wymagane
number format: double
additionalEans
Array<object>
object
id
string
ean
string
quantity
wymagane
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
object
products
wymagane
Array<object>
object
id
wymagane
integer format: int64
parentId
integer format: int64
isParent
wymagane
boolean
variantsCount
wymagane
integer format: int32
variants
Array<object> recursive
catalogId
wymagane
integer format: int64
manufacturerId
wymagane
integer format: int64
name
string
nameWithParentName
string
vat
wymagane
number format: double
vatSymbol
string
ean
string
sku
string
weight
wymagane
number format: double
width
wymagane
number format: double
height
wymagane
number format: double
length
wymagane
number format: double
categoryId
integer format: int64
isBundle
boolean
isAsteriskMarked
boolean
catalog
object
id
wymagane
integer format: int64
name
string
description
string
languages
Array<string>
isDefault
wymagane
boolean
reservations
wymagane
boolean
defaultWarehouseId
wymagane
integer format: int64
defaultPriceGroupId
wymagane
integer format: int64
category
object
id
wymagane
integer format: int64
name
string
parentId
wymagane
integer format: int64
catalogId
wymagane
integer format: int64
manufacturer
object
id
wymagane
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
wymagane
integer format: int64
quantity
wymagane
integer format: int32
locationName
string
vatAmount
wymagane
number format: double
productPriceGroups
Array<object>
object
priceGroupId
wymagane
integer format: int64
currency
wymagane
string
price
number format: double
properties
Array<object>
object
id
string
name
string
value
string
externalId
string
productLinks
Array<object>
object
id
wymagane
integer format: int64
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
wymagane
integer format: int64
complexFields
Array<object>
object
id
wymagane
integer format: int64
name
string
value
string
bundleItems
Array<object>
object
id
wymagane
integer format: int64
bundleItemProductId
wymagane
integer format: int64
quantity
wymagane
integer format: int32
name
string
stocks
Array<object>
object
id
string
warehouseId
wymagane
integer format: int64
quantity
wymagane
integer format: int32
locationName
string
vatAmount
wymagane
number format: double
additionalEans
Array<object>
object
id
string
ean
string
quantity
wymagane
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
{ "products": [ { "productPriceGroups": [ { "currency": "None" } ] } ]}object
products
wymagane
Array<object>
object
id
wymagane
integer format: int64
parentId
integer format: int64
isParent
wymagane
boolean
variantsCount
wymagane
integer format: int32
variants
Array<object> recursive
catalogId
wymagane
integer format: int64
manufacturerId
wymagane
integer format: int64
name
string
nameWithParentName
string
vat
wymagane
number format: double
vatSymbol
string
ean
string
sku
string
weight
wymagane
number format: double
width
wymagane
number format: double
height
wymagane
number format: double
length
wymagane
number format: double
categoryId
integer format: int64
isBundle
boolean
isAsteriskMarked
boolean
catalog
object
id
wymagane
integer format: int64
name
string
description
string
languages
Array<string>
isDefault
wymagane
boolean
reservations
wymagane
boolean
defaultWarehouseId
wymagane
integer format: int64
defaultPriceGroupId
wymagane
integer format: int64
category
object
id
wymagane
integer format: int64
name
string
parentId
wymagane
integer format: int64
catalogId
wymagane
integer format: int64
manufacturer
object
id
wymagane
integer format: int64
name
string
stocks
Array<object>
object
id
string
warehouseId
wymagane
integer format: int64
quantity
wymagane
integer format: int32
locationName
string
vatAmount
wymagane
number format: double
productPriceGroups
Array<object>
object
priceGroupId
wymagane
integer format: int64
currency
wymagane
string
price
number format: double
properties
Array<object>
object
id
string
name
string
value
string
externalId
string
productLinks
Array<object>
object
id
wymagane
integer format: int64
externalProductId
string
externalVariantId
string
externalConnectionId
string
connectionId
wymagane
integer format: int64
complexFields
Array<object>
object
id
wymagane
integer format: int64
name
string
value
string
bundleItems
Array<object>
object
id
wymagane
integer format: int64
bundleItemProductId
wymagane
integer format: int64
quantity
wymagane
integer format: int32
name
string
stocks
Array<object>
object
id
string
warehouseId
wymagane
integer format: int64
quantity
wymagane
integer format: int32
locationName
string
vatAmount
wymagane
number format: double
additionalEans
Array<object>
object
id
string
ean
string
quantity
wymagane
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
{ "products": [ { "productPriceGroups": [ { "currency": "None" } ] } ]}
