1. Product Management - Categories
Gokoo Third-Party Integration API
  • Start Readme Channel API Guide
  • Authentication
    • Channel Partner Authorization Login
      GET
    • Get Channel Partner AccessToken
      GET
    • Get Merchant OpenID
      GET
  • Product Management - Categories
    • Create Category
      POST
    • Edit Category
      POST
    • Delete Category
      POST
    • Get Category Detail
      POST
    • List Categories (Management)
      POST
    • List All Categories (For Product List)
      POST
    • Sort Categories
      POST
  • Product Management - Products
    • Create Product
      POST
    • Edit Product
      POST
    • Delete Product
      POST
    • Get Product Detail
      POST
    • List Products
      POST
    • Search Products
      POST
    • Upload Product Image
      POST
    • Set Product On/Off Shelf (Batch)
      POST
    • Batch Update Product Stock
      POST
    • Batch Sold Out (Clear Stock)
      POST
    • Sort Products
      POST
  • Delivery Orders
    • Accept Order
      POST
    • Cancel Order (Merchant Reject)
      POST
    • Mark Food Ready (Prepared)
      POST
    • Apply for Delivery / Merchant Start Self-Delivery
      POST
    • Merchant Self-Delivery Completed
      POST
    • Query Order by Pickup Code
      POST
    • Verify Pickup Order (Scan Code)
      POST
    • List Orders (By Status)
      POST
    • Get Order Detail
      POST
    • Get Order Financial Details
      POST
    • Reprint Receipt
      POST
  • Webhooks
    • Order Status Change Callback
  • Schemas
    • CommonBodyParams
    • SuccessResponse
    • ErrorResponse
    • TimeSlot
    • TimeSlotWithSeconds
    • CategoryItem
    • ProductItem
    • NormSpec
    • NormGroup
    • OrderProduct
    • ShowButtons
    • StaffInfo
  1. Product Management - Categories

List All Categories (For Product List)

POST
/api.php
Get all categories (used for product listing). Requires login.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Query Params

Body Params application/x-www-form-urlencodedRequired

Request Code 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 POST '/api.php?API=biz/product/newproduct/cates' \
--header 'Authorization: Bearer <token>' \
--data-urlencode 'CLIENT_API=' \
--data-urlencode 'openid='

Responses

🟢200
application/json
Successful response
Body

Example
{
    "data": [
        {
            "cate_id": "string",
            "title": "string",
            "childrens": [
                {
                    "cate_id": "string",
                    "parent_id": "string",
                    "title": "string",
                    "orderby": "string",
                    "show_type": "string",
                    "settime": [
                        {
                            "stime": "6:00",
                            "ltime": "18:00",
                            "stime_time": "21600",
                            "ltime_time": "64800"
                        }
                    ],
                    "childrens": [
                        {}
                    ]
                }
            ]
        }
    ],
    "error": "0",
    "message": "success"
}
Modified at 2026-04-14 03:43:47
Previous
List Categories (Management)
Next
Sort Categories
Built with