Danh mục sản phẩm

  • API này dùng để lấy danh mục sản phẩm.

  • Danh mục sản phẩm thường rất ít khi bị thay đổi, bạn có thể lấy dữ liệu và cache khoảng 24h (và có chức năng để user có thể xóa cache, để lấy dữ liệu mới nhất khi cần) giúp giảm tải việc gọi API.

Request

curl --location 'https://pos.open.nhanh.vn/v3.0/product/category?appId={{appId}}&businessId={{businessId}}' \
--header 'Authorization: {{accessToken}}' \
--header 'Content-Type: application/json'
--data '{
    "filters": {
        "status": 1
    },
    "paginator": {
        "size": 50
    }
}'

Filters

Key
Type
Description

name

string

Tên danh mục

code

string

Mã danh mục

status

int

Trạng thái danh mục (1 = Active 2 = Inactive)

Response

Failed response

Successful response

Last updated