Skip to main content

CategoryList

Function

Get a list of category.

Endpoint

  • /v1/category/list

HTTP Method

  • POST

Request Headers

  • Authorization: Bearer {token}
  • X-App-Key: {appKey}

Request Payload

{
"pageNo": 1,
"pageSize": 10
}

Request Parameters

FieldRequiredTypeRemarkSample
pageNoNointegerPagination page number, 0 represents the first page1
pageSizeNointegerNumber of entries per page, maximum 20010

Response Payload

{
"status": 1,
"errorCode": 0,
"message": "success",
"morePage":true,
"pageNo": 1,
"pageSize": 1,
"items": [
{
"categoryId": "01hdmxx74gh75ykw03203hpxvq",
"categoryNameEn": "Name (EN)",
"categoryNameSc": "Name (SC)",
"categoryNameTc": "Name (TC)",
"categoryStatus": "Active"
}
]
}

Response Parameters

FieldRequiredTypeRemarkSample
statusYesstringstatus code of the api call
messageYesstringdetail message of the api call
errorCodeNostring
morePageYesbooleanWhether has more page. If this value is true, you may want to continue to check next pagetrue
pageNoYesintegerPagination page number, 0 represents the first page1
pageSizeYesintegerNumber of entries per page, maximum 20010
itemsYesobject[]
categoryIdYesstringCategory Id01hdmxx74gh75ykw03203hpxvq
categoryNameEnYesstringEnglish NameName (EN)
categoryNameScYesstringSimplified Chinese NameName (SC)
categoryNameTcYesstringTraditional Chinese NameName (TC)
categoryStatusYesstringActive 、 InactiveActive

Response Headers

Error Codes

CodeDescription
1Internal Error