1. Product Management - Products
Gokoo Third-Party Integration API
  • En
    • Start Readme Channel API Guide
    • Authentication
      • Channel Partner Authorization Login
      • Get Channel Partner AccessToken
      • Get Merchant OpenID
    • Product Management - Categories
      • Create Category
      • Edit Category
      • Delete Category
      • Get Category Detail
      • List Categories (Management)
      • List All Categories (For Product List)
      • Sort Categories
    • Merchant Management
      • Set delivery time
      • Business hours-set by day
      • Business hours setting
      • Modify business status
      • Set appointment days
      • Business hours management
    • 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
      • Cancel Order (Merchant Reject)
      • Mark Food Ready (Prepared)
      • Apply for Delivery / Merchant Start Self-Delivery
      • Merchant Self-Delivery Completed
      • Query Order by Pickup Code
      • Verify Pickup Order (Scan Code)
      • List Orders (By Status)
      • Get Order Detail
      • Get Order Financial Details
      • Reprint Receipt
      • Order financial details-for Thailand
      • Order financial details-for Malaysia
    • Webhooks
      • Order Status Change Callback
  • 中文
    • 接口说明 v1.0
    • 商品管理
      • 商品排序
      • 全部分类(商品列表用)
      • 添加分类
      • 分类管理列表
      • 删除分类
      • 商品图片上传
      • 商品上下架(含批量)
      • 分类详情
      • 添加商品
      • 商品列表(搜索)
      • 商品批量改库存
      • 删除商品
      • 商品详情
      • 修改商品
      • 商品批量沽清
      • 分类排序
      • 商品列表
      • 修改分类
    • 商户管理
      • 营业时间——按天设置
      • 设置配送时间
      • 营业时间设置
      • 修改营业状态
      • 营业时间管理
      • 设置预约天数
    • 账户部分
      • 渠道商授权获取AccessToken
      • 渠道商授权获取商户openid
      • 渠道商授权登录
    • 外卖订单
      • 重新打印小票
      • 订单状态变更回调
      • 扫码核销订单
      • 取消订单(商家拒单)
      • 自提码查询订单
      • 订单账目
      • 订单列表(各种状态的)
      • 订单详情
      • 订单财务明细-泰国
      • 订单财务明细-马来西亚
      • 沙箱-创建订单
      • 接单
      • 出餐
      • 申请配送_商家自己开始配送
      • 商家自配送完成
      • 沙箱-发送订单状态变更回调
  • Schemas
    • CommonBodyParams
    • CommonResponse
    • SuccessResponse
    • ErrorResponse
    • TimeSlot
    • TimeSlotWithSeconds
    • CategoryItem
    • ProductItem
    • NormSpec
    • NormGroup
    • OrderProduct
    • ShowButtons
    • StaffInfo
  1. Product Management - Products

Edit Product

POST
/api.php
their catalogues
** Request parameter details **
parameter namerequiredtypedescription
data.product_idisintcommodity id
data.titleisstringproduct name
data.unitisstringproduct unit
data.cate_idisstringClassification, multiple, separated by commas
data.priceisstringcommodity prices
data.spec.spec_namenostringspecification name
data.spec.pricenostringAdd specifications
data.spec.package_pricenostringSpecification packaging fee
data.spec.sale_skunointSpecification inventory
data.spec.max_skunointSpecifications Maximum Inventory
data.spec.start_sellingnointSpecifications starting sales quantity
data.spec.weightnointspecification weight
data.specification.keynostringproperty key values
data.specification.valnoarrayattribute value
data.nostringlabel
data.package_priceisstringpacking fee
data.sale_skuisstringinventory
data.max_skuisstringmaximum inventory
data.is_resetisstringWhether the inventory is full the next day 0 No 1 Yes
data.reset_timeisstringDaily full time (associated with is_reset)
data.is_mustisstringWhether it is a must-order product 0 No 1 Yes
data.is_hotisstringWhether it is a popular product 0 No 1 Yes
data.is_tuijianisstringWhether it is a recommended product 0 No 1 Yes
data.photoisstringProduct pictures, upload first request upload interface
data.introisstringproduct introduction
data.normsnoarraysafety section
data.norms.norms_idnointSpecification group id(for modification)
data.norms.norms_nameisstringSpecification group name
data.norms.max_spec_numisintIncrease the number of optional specifications, the same as the number of specifications added
data.norms.specsisarraySpecifications in specification group
data.norms.specs.nspec_idnointSpecification id(for modification)
data.norms.specs.nspec_nameisstringspecification name
data.norms.specs.priceisfloatspecification price
data.norms.specs.package_pricenofloatSpecification packaging fee, default 0
data.norms.specs.group_numnointPrice number, default 1
data.norms.specs.min_countisintMinimum number of copies
data.norms.specs.max_countisintMaximum number of copies
data.norms.specs.sale_skunointCurrent inventory, default 99999
data.norms.specs.max_skuisintMaximum inventory, default 99999

Request

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

Header 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 '/api.php?API=biz%2Fproduct%2Fproduct%2Fedit' \
--header 'Authorization: Bearer <token>' \
--data-urlencode 'CLIENT_API=' \
--data-urlencode 'CLIENT_API=BIZ' \
--data-urlencode 'openid=' \
--data-urlencode 'openid={{openid}}' \
--data-urlencode 'data={"product_id":"1497187","cate_id":"74880,75016","title":"Aqua Green Kael 75g.","unit":"portion","price":"22.00","package_price":"2.00","sale_sku":"67","max_sku":"132","is_reset":"0","reset_time":"","is_must":"0","is_hot":"1","is_tuijian":"0","photo":"https://example.com/photo.jpg","intro":"Test product"}'

Responses

🟢200
application/json
Successful response
Bodyapplication/json

Example
{
    "error": "0",
    "message": "success"
}
Modified at 2026-04-21 02:08:08
Previous
Create Product
Next
Delete Product
Built with