1. Product Management - Products
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 - Products

Set Product On/Off Shelf (Batch)

POST
/api.php
Set one or multiple products on or off shelf. 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/product/batch_status' \
--header 'Authorization: Bearer <token>' \
--data-urlencode 'CLIENT_API=' \
--data-urlencode 'openid=' \
--data-urlencode 'data={"product_ids":[2535],"status":0}'

Responses

🟢200
application/json
Successful response
Body

Example
{
    "error": "0",
    "message": "success"
}
Modified at 2026-04-14 03:43:47
Previous
Upload Product Image
Next
Batch Update Product Stock
Built with