Skip to main content

Category

Get product category

HTTP Request

[GET] /api/v6/products/categories

Query Parameters

Fields

FieldsTypeDescription
idintegerIdentifier
category_namestringCategory name
category_codestringCategory code
descriptionstringDescription
is_defaultboolIs default
parent_idintegerParent category
levelintegerCategory level

Filtering

FieldsSupportTypeDescription
ideq,inintegerIdentifier
validis,inintegerValid or not

Sort

Sort (field)Direction
idasc,desc

Limit & Offset

TypeDescription
LimitintegerNumber of records to retrieve
OffsetintegerNumber of records to skip

Example

HTTP Request

GET api/v6/products/categories?fields=category_name&limit=1&offset=0&filtering[id]=4 HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json

Status

200 OK

Response

{
"data": [
{
"id": 4,
"category_name": "TEST PRODUCT CATEGORY API"
}
],
"has_more": false,
"offset": 0,
"limited": 1
}