- Overview
- Getting Started
- Common Errors
- API
- Config
- Product
- Product Inventory
- Order
- Shipment
- Shipment Inbound
- Courier
- Address Directory
- Status
- Webhooks
List category
Developing
GET
/api/v1/public/products/category/list
Last modified:2024-08-08 10:23:06
Request
Query Params
page
string
optional
Example:
1
page_size
string
optional
Example:
5
Header Params
Authorization
string
optional
Default:
6pGkII/faXeTxkNR1wOXRKZniSG25HgtPoDr3dLcuAcegBUKinCDkkdpxeSULdtPE0I7P8nM7dWTPRUyhzgtvQ==
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://stg-oms.nandh.vn/api/v1/public/products/category/list?page=1&page_size=5' \
--header 'Authorization: 6pGkII/faXeTxkNR1wOXRKZniSG25HgtPoDr3dLcuAcegBUKinCDkkdpxeSULdtPE0I7P8nM7dWTPRUyhzgtvQ=='
Responses
🟢200OK
application/json
Body
status_code
integer
required
data
array [object {4}]
required
id
integer
required
name
string
required
list_id
array [object {3}]
required
child
array [object {5}]
required
error
boolean
required
error_code
null
required
log_id
null
required
messages
string
required
total
integer
required
Example
{
"status_code": 0,
"data": [
{
"id": 0,
"name": "string",
"list_id": [
{
"id": 0,
"name": "string",
"parent_id": null
}
],
"child": [
{
"id": 0,
"name": "string",
"parent_id": 0,
"list_id": [
{
"id": 0,
"name": "string",
"parent_id": 0
}
],
"child": [
{
"id": 0,
"name": "string",
"parent_id": 0,
"list_id": [
{
"id": 0,
"name": "string",
"parent_id": 0
}
],
"child": [
{
"id": 0,
"name": "string",
"parent_id": 0,
"list_id": [
{
"id": 0,
"name": "string",
"parent_id": 0
}
],
"child": [
"string"
]
}
]
}
]
}
]
}
],
"error": true,
"error_code": null,
"log_id": null,
"messages": "string",
"total": 0
}
Modified at 2024-08-08 10:23:06