Pobierz katalogi po ID
POST
/api/catalogs/v2/products-catalogs/ByIds
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/catalogs/v2/products-catalogs/ByIds';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '[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/catalogs/v2/products-catalogs/ByIds \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '[ 1 ]'Zwraca katalogi o wskazanych identyfikatorach w jednym zapytaniu. To operacja odczytu.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”Array<integer>
Examplegenerated
[ 1]Array<integer>
Examplegenerated
[ 1]Array<integer>
Examplegenerated
[ 1]Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Array<object>
object
id
integer format: int64
name
string
description
string
isDefault
boolean
reservations
boolean
priceGroupIds
Array<integer>
warehouseIds
Array<integer>
languages
Array<string>
defaultLanguage
string
defaultPriceGroupId
integer format: int64
defaultWarehouseId
integer format: int64
Array<object>
object
id
integer format: int64
name
string
description
string
isDefault
boolean
reservations
boolean
priceGroupIds
Array<integer>
warehouseIds
Array<integer>
languages
Array<string>
defaultLanguage
string
defaultPriceGroupId
integer format: int64
defaultWarehouseId
integer format: int64
Examplegenerated
[ { "id": 1, "name": "example", "description": "example", "isDefault": true, "reservations": true, "priceGroupIds": [ 1 ], "warehouseIds": [ 1 ], "languages": [ "example" ], "defaultLanguage": "example", "defaultPriceGroupId": 1, "defaultWarehouseId": 1 }]Array<object>
object
id
integer format: int64
name
string
description
string
isDefault
boolean
reservations
boolean
priceGroupIds
Array<integer>
warehouseIds
Array<integer>
languages
Array<string>
defaultLanguage
string
defaultPriceGroupId
integer format: int64
defaultWarehouseId
integer format: int64
Examplegenerated
[ { "id": 1, "name": "example", "description": "example", "isDefault": true, "reservations": true, "priceGroupIds": [ 1 ], "warehouseIds": [ 1 ], "languages": [ "example" ], "defaultLanguage": "example", "defaultPriceGroupId": 1, "defaultWarehouseId": 1 }]
