The Get list of product categories method returns the list of product categories of the current reseller or any of its downstream resellers.
GET {base_url}/api/v3/customer_store/resellers/{reseller_id}/product_categories
Arguments
Response model
|
Name |
Data type |
Description |
|||||
|---|---|---|---|---|---|---|---|
|
data |
array of objects |
Response data |
|||||
|
|
id |
string |
Product category ID |
||||
|
|
type |
string |
Data type |
||||
|
|
attributes |
object |
Product category information |
||||
|
|
|
created_at |
string |
Date and time of the product category creation |
|||
|
|
|
updated_at |
string |
Date and time when the product category was updated |
|||
|
|
|
key |
string |
Product category key |
|||
|
|
|
name |
string |
Product category name |
|||
|
|
|
description |
string |
Description of the product category |
|||
|
|
|
priority |
integer |
Product category priority |
|||
|
|
|
public |
bool |
Indicates whether a product category is displayed in Reseller Store (see Главная страница and Каталог ), Storefront of Customer Store (see
and
), and all related public products are available for ordering via the Customer Control Panel (see d etails in
) |
|||
|
|
|
logo |
string |
Link to the product category logo file |
|||
Request example
GET /api/v3/customer_store/resellers/1/product_categories
Host: https://test.activeplatform.com
Content-Type: application/vnd.api+json
X-Api-Token: vY5fwetestK3gJXZH5uHCw
Accept: application/vnd.api+json
Response example
{
"data": [
{
"id": "5",
"type": "product_categories",
"attributes": {
"created_at": "2017-07-11T10:58:21.037+03:00",
"updated_at": "2017-07-13T13:01:24.431+03:00",
"key": "default",
"name": "default",
"description": "",
"priority": 1,
"public": false,
"logo": null
}
},
{
"id": "6",
"type": "product_categories",
"attributes": {
"created_at": "2017-07-11T10:58:35.864+03:00",
"updated_at": "2017-07-13T13:01:33.474+03:00",
"key": "new",
"name": "new",
"description": "000",
"priority": 2,
"public": true,
"logo": null
}
}
]
}