Pobierz kategorię po ID
GET
/api/categories/v2/categories/{id}
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/categories/v2/categories/1';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/1 \ --header 'Authorization: Bearer <token>'Zwraca szczegóły pojedynczej kategorii.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”id
wymagane
integer format: int64
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
object
id
integer format: int64
name
string
parentId
integer format: int64
catalogId
integer format: int64
object
id
integer format: int64
name
string
parentId
integer format: int64
catalogId
integer format: int64
Examplegenerated
{ "id": 1, "name": "example", "parentId": 1, "catalogId": 1}object
id
integer format: int64
name
string
parentId
integer format: int64
catalogId
integer format: int64
Examplegenerated
{ "id": 1, "name": "example", "parentId": 1, "catalogId": 1}
