Pobierz produkty po ID (wersja uproszczona)
POST
/api/products/v3/productsByIdsLight
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v3/productsByIdsLight';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-pim-api.enterprise.sellrocket.pl/api/products/v3/productsByIdsLight \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ids": [ 1 ] }'Zwraca podstawowe dane produktów oraz ich pola złożone z definicjami; lżejsza alternatywa dla pełnego pobierania produktów.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
ids
Array<integer>
Examplegenerated
{ "ids": [ 1 ]}object
ids
Array<integer>
Examplegenerated
{ "ids": [ 1 ]}object
ids
Array<integer>
Examplegenerated
{ "ids": [ 1 ]}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Array<object>
object
id
integer format: int64
parentId
integer format: int64
isParent
boolean
catalogId
integer format: int64
manufacturerId
integer format: int64
name
string
vat
number format: double
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
complexFields
Array<object>
object
id
string
name
string
value
string
definition
object
id
integer format: int64
name
string
type
string
description
string
caption
string
options
Array<string>
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
Array<object>
object
id
integer format: int64
parentId
integer format: int64
isParent
boolean
catalogId
integer format: int64
manufacturerId
integer format: int64
name
string
vat
number format: double
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
complexFields
Array<object>
object
id
string
name
string
value
string
definition
object
id
integer format: int64
name
string
type
string
description
string
caption
string
options
Array<string>
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
Examplegenerated
[ { "id": 1, "parentId": 1, "isParent": true, "catalogId": 1, "manufacturerId": 1, "name": "example", "vat": 1, "ean": "example", "sku": "example", "weight": 1, "width": 1, "height": 1, "length": 1, "categoryId": 1, "isBundle": true, "isAsteriskMarked": true, "complexFields": [ { "id": "example", "name": "example", "value": "example", "definition": { "id": 1, "name": "example", "type": "example", "description": "example", "caption": "example", "options": [ "example" ] } } ], "additionalEans": [ { "id": "example", "ean": "example", "quantity": 1, "description": "example" } ] }]Array<object>
object
id
integer format: int64
parentId
integer format: int64
isParent
boolean
catalogId
integer format: int64
manufacturerId
integer format: int64
name
string
vat
number format: double
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
complexFields
Array<object>
object
id
string
name
string
value
string
definition
object
id
integer format: int64
name
string
type
string
description
string
caption
string
options
Array<string>
additionalEans
Array<object>
object
id
string
ean
string
quantity
integer format: int32
description
string
Examplegenerated
[ { "id": 1, "parentId": 1, "isParent": true, "catalogId": 1, "manufacturerId": 1, "name": "example", "vat": 1, "ean": "example", "sku": "example", "weight": 1, "width": 1, "height": 1, "length": 1, "categoryId": 1, "isBundle": true, "isAsteriskMarked": true, "complexFields": [ { "id": "example", "name": "example", "value": "example", "definition": { "id": 1, "name": "example", "type": "example", "description": "example", "caption": "example", "options": [ "example" ] } } ], "additionalEans": [ { "id": "example", "ean": "example", "quantity": 1, "description": "example" } ] }]
