Znajdź produkty po EAN lub SKU z Allegro
POST
/api/PimProducts/GetProductsIdsByAllegroEanOrAllegroSku
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/PimProducts/GetProductsIdsByAllegroEanOrAllegroSku';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"connectionId":"example","catalogId":1,"useEan":true,"useSku":true,"offersIds":["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-sales-offers-allegro-api.enterprise.sellrocket.pl/api/PimProducts/GetProductsIdsByAllegroEanOrAllegroSku \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "connectionId": "example", "catalogId": 1, "useEan": true, "useSku": true, "offersIds": [ "example" ] }'Zwraca identyfikatory produktów pasujących do EAN lub SKU ofert Allegro – operacja odczytu.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
connectionId
wymagane
string
catalogId
wymagane
integer format: int64
useEan
wymagane
boolean
useSku
wymagane
boolean
offersIds
wymagane
Array<string>
Examplegenerated
{ "connectionId": "example", "catalogId": 1, "useEan": true, "useSku": true, "offersIds": [ "example" ]}object
connectionId
wymagane
string
catalogId
wymagane
integer format: int64
useEan
wymagane
boolean
useSku
wymagane
boolean
offersIds
wymagane
Array<string>
Examplegenerated
{ "connectionId": "example", "catalogId": 1, "useEan": true, "useSku": true, "offersIds": [ "example" ]}object
connectionId
wymagane
string
catalogId
wymagane
integer format: int64
useEan
wymagane
boolean
useSku
wymagane
boolean
offersIds
wymagane
Array<string>
Examplegenerated
{ "connectionId": "example", "catalogId": 1, "useEan": true, "useSku": true, "offersIds": [ "example" ]}Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
object
pimProductIds
wymagane
Array<object>
object
offerId
wymagane
string
pimProduct
object
id
wymagane
integer format: int64
parentId
integer format: int64
isParent
wymagane
boolean
variantsCount
wymagane
integer format: int32
variants
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
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
pimProductIds
wymagane
Array<object>
object
offerId
wymagane
string
pimProduct
object
id
wymagane
integer format: int64
parentId
integer format: int64
isParent
wymagane
boolean
variantsCount
wymagane
integer format: int32
variants
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
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
{ "pimProductIds": [ { "pimProduct": { "productPriceGroups": [ { "currency": "None" } ] } } ]}object
pimProductIds
wymagane
Array<object>
object
offerId
wymagane
string
pimProduct
object
id
wymagane
integer format: int64
parentId
integer format: int64
isParent
wymagane
boolean
variantsCount
wymagane
integer format: int32
variants
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
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
{ "pimProductIds": [ { "pimProduct": { "productPriceGroups": [ { "currency": "None" } ] } } ]}
