Nông sản Bưu điện Open API
  • 🧑‍🔧Merchant
    • About
    • Products
    • Image Product
    • Order
    • Categories
    • Area
    • User
Powered by GitBook
On this page
  1. Merchant

Categories

  • Danh sách toàn bộ ngành hàng

GET apis/v1/merchant/categories/all

{
    "code": 200,
    "message": "Thành công",
    "result": [
        {
            "gc_id": 782,
            "gc_name": "Thực Phẩm - Đặc sản",
            "gc_image": "",
            "type_id": 12,
            "type_name": "Thực phẩm257",
            "gc_parent_id": 0,
            "commis_rate": 0,
            "gc_sort": 1,
            "gc_virtual": 0,
            "gc_title": null,
            "gc_keywords": "",
            "gc_description": "",
            "gc_show": 1,
            "gc_image_url": "http://buudienvn.test/uploads/home/common/default_image.png"
        },
        {
            "gc_id": 783,
            "gc_name": "Nhà Cửa và Đời Sống",
            "gc_image": "",
            "type_id": 11,
            "type_name": "NCĐS1",
            "gc_parent_id": 0,
            "commis_rate": 0,
            "gc_sort": 2,
            "gc_virtual": 0,
            "gc_title": null,
            "gc_keywords": "",
            "gc_description": "",
            "gc_show": 1,
            "gc_image_url": "http://buudienvn.test/uploads/home/common/default_image.png"
        },
        {
            "gc_id": 784,
            "gc_name": "Điện tử  - Công nghệ",
            "gc_image": "",
            "type_id": 0,
            "type_name": "",
            "gc_parent_id": 0,
            "commis_rate": 0,
            "gc_sort": 3,
            "gc_virtual": 0,
            "gc_title": null,
            "gc_keywords": "",
            "gc_description": "",
            "gc_show": 1,
            "gc_image_url": "http://buudienvn.test/uploads/home/common/default_image.png"
        }
    ],
    "requestMethod": ""
}

+ Mô tả: Respone 200

Key
Bắt buộc
Mô tả

gc_id

x

ID của ngành hàng

gc_name

x

Tên ngành hàng

gc_image

Ảnh của ngành hàng

type_id

x

ID loại ngành hàng

type_name

x

Tên loại ngành hàng

gc_parent_id

x

ID ngành hàng cha

commis_rate

x

Tỷ lệ hoa hồng

gc_sort

x

Thứ tự ngành hàng

gc_virtual

Ngành hàng có sản phẩm ảo

gc_title

Tiêu đề ngành hàng

gc_keywords

Kí tự viết tắt của ngành hàng

gc_description

Mô tả về ngành hàng

gc_show

x

Chế độ hiển thị của ngành hàng

gc_image_url

Đường dẫn ảnh Danh mục

  • Ngành hàng của Cửa hàng

GET /apis/v1/merchant/categories/store

Query Parameters

Name
Type
Description

goods_id

String

Mã của sản phẩm

{
    "code":200,
    "message":"Thành công",
    "result":{
            "1":{
                "storegc_id":1,
                "store_id":1,
                "storegc_name":"Tủ lạnh",
                "storegc_parent_id":0,
                "storegc_state":1,
                "storegc_sort":255,
                "child":[
                    {
                    "storegc_id":3,
                    "store_id":1,
                    "storegc_name":"Tủ lạnh đứng",
                    "storegc_parent_id":1,
                    "storegc_state":1,
                    "storegc_sort":0
                },
                    {
                    "storegc_id":5,
                    "store_id":1,
                    "storegc_name":"tủ khá lạnh",
                    "storegc_parent_id":1,
                    "storegc_state":1,
                    "storegc_sort":12
                }
            ]
        },
        "4":{
        "storegc_id":4,
        "store_id":1,
        "storegc_name":"Nhu yếu phẩm",
        "storegc_parent_id":0,
        "storegc_state":1,
        "storegc_sort":0
        }
    },
    "requestMethod":""
}

+ Mô tả respones 200

Key
Bắt buộc
Mô tả

storegc_id

x

ID danh mục ngành hàng của cửa hàng

store_id

x

ID cửa hàng

storegc_name

x

Tên ngành hàng của cửa hàng

storegc_parent_id

x

ID ngành hàng cha của cửa hàng

storegc_state

x

Trạng thái của ngành hàng

storegc_sort

x

Thứ tự của ngành hàng của gian hàng

child

x

Ngành hàng con

Last updated 1 month ago

🧑‍🔧