Pobierz listę kategorii
GET
/api/categories/v2/categories
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/categories/v2/categories?noCatalogs=false';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/categories/v2/categories?noCatalogs=false' \ --header 'Authorization: Bearer <token>'Zwraca listę kategorii produktów wraz z przypisaniem do katalogów. Odpowiednik getInventoryCategories w BaseLinker.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”noCatalogs
boolean
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Array<object>
object
id
integer format: int64
name
string
parentId
string
catalogId
string
children
Array<object> recursive
Array<object>
object
id
integer format: int64
name
string
parentId
string
catalogId
string
children
Array<object> recursive
Examplegenerated
[ { "id": 1, "name": "example", "parentId": "example", "catalogId": "example", "children": [] }]Array<object>
object
id
integer format: int64
name
string
parentId
string
catalogId
string
children
Array<object> recursive
Examplegenerated
[ { "id": 1, "name": "example", "parentId": "example", "catalogId": "example", "children": [] }]
