Skip to content

Keeta Menu Management API (v.1.0.0)

This API provides comprehensive menu management capabilities for Keeta platform integration, including menu synchronization, product status management, and real-time notifications.

Download OpenAPI description
Overview
Keeta Developer Website

https://developers.mykeeta.com/

Languages
Servers

https://open.mykeeta.com/api/open/

Operations
Webhooks
Operations

Adjust products order in a ShopCategory(in batch)

Request

  1. Adjust all products' sequence in a specific ShopCategory.
  2. 0 < sequence <= number of spus.
  3. Please make sure spuSequenceDTOList contains all Spu in the ShopCategory, otherwise it will fail.

Rate limit: 10 QPS by appId dimension.

Bodyapplication/jsonrequired
shopIdinteger(int64)required

store id in KeeTa

shopCategoryIdinteger(int64)required

ShopCategory id

spuSequenceDTOListArray of objects(OpenSpuSequenceDTO)required

Spu sequence data model

spuSequenceDTOList[].​spuIdinteger(int64)

Unique identifier for the SPU, generated by Keeta system.

spuSequenceDTOList[].​sequenceinteger

Determines the sorting position of the SPU in menu displays. Uses 1-based indexing (1 = first position). Lower numbers appear before higher numbers.

curl -i -X POST \
  https://open.mykeeta.com/api/open/product/spu/batchupdatesequence \
  -H 'Content-Type: application/json' \
  -d '{
    "shopId": 0,
    "shopCategoryId": 0,
    "spuSequenceDTOList": [
      {
        "spuId": 0,
        "sequence": 0
      }
    ]
  }'

Responses

Request executed successfully

Bodyapplication/json
codeintegerrequired

A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.

Enum ValueDescription
0

The request was executed successfully.

Non-zero value

The request execution failed. Specific error details can be viewed in the message field.

Example: 0
messagestringrequired

Text description corresponding to the status code, explaining the operation result or error cause to users.

Example: "Success"
Response
application/json
{ "code": 0, "message": "Success" }

Adjust products order in a Shop(in batch)

Request

  1. Mostly like 3.3.9 but support multiple ShopCategories.

Rate limit: 10 QPS by appId dimension.

Bodyapplication/jsonrequired
shopIdinteger(int64)required

store id in KeeTa

shopCategoryId2SpuSeqMapobjectrequired

key: ShopCategory.id value: Spu sequence data model

shopCategoryId2SpuSeqMap.​property name*Array of objects(OpenSpuSequenceDTO)additional property
curl -i -X POST \
  https://open.mykeeta.com/api/open/product/spu/batchupdateallsequence \
  -H 'Content-Type: application/json' \
  -d '{
    "shopId": 0,
    "shopCategoryId2SpuSeqMap": {
      "property1": [
        {
          "spuId": 0,
          "sequence": 0
        }
      ],
      "property2": [
        {
          "spuId": 0,
          "sequence": 0
        }
      ]
    }
  }'

Responses

Batch update all sequence result.

Bodyapplication/json
codeintegerrequired

A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.

Enum ValueDescription
0

The request was executed successfully.

Non-zero value

The request execution failed. Specific error details can be viewed in the message field.

Example: 0
messagestringrequired

Text description corresponding to the status code, explaining the operation result or error cause to users.

Example: "Success"
dataArray of integers(int64)

Successful ShopCategory id

errorListArray of objects(ErrorShopCategory)

failed ShopCategory informations

Response
application/json
{ "code": 0, "message": "Success", "data": [ 0 ], "errorList": [ {} ] }

Batch bind Spus picture(support other image urls)

Request

  1. Noticed this is an Asynchronous API, if you want to subscribe error messages, please configure webhook with 「eventId=1201」;
  2. Make sure all spuIds are belong to shopId;
  3. Image requirements:
    1. Image url can be access directly. We only support HTTP/HTTPS protocol for default port (80/tcp or 443/tcp), please don't use other ports;
    2. Image size cannot exceed 5M, the minimum aspect of image is 600px * 450px;
    3. In image url's header field, the Content-Type can only be "image/jpeg" or "image/png";

Rate limit: 10 QPS by appId dimension.

Bodyapplication/jsonrequired
shopIdinteger(int64)required

store id in KeeTa

Example: 123
spuPictureListArray of objects(SpuPicture)required
spuPictureList[].​spuIdinteger(int64)

Unique identifier for the SPU, generated by Keeta system.

spuPictureList[].​urlListArray of strings

List of external image URLs associated with the product.

curl -i -X POST \
  https://open.mykeeta.com/api/open/product/spupicture/batchbind \
  -H 'Content-Type: application/json' \
  -d '{
    "shopId": 123,
    "spuPictureList": [
      {
        "spuId": 0,
        "urlList": [
          "string"
        ]
      }
    ]
  }'

Responses

Batch bind pictures task submitted.

Bodyapplication/json
codeintegerrequired

A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.

Enum ValueDescription
0

The request was executed successfully.

Non-zero value

The request execution failed. Specific error details can be viewed in the message field.

Example: 0
messagestringrequired

Text description corresponding to the status code, explaining the operation result or error cause to users.

Example: "Success"
datainteger(int64)

taskId of this invocation

Response
application/json
{ "code": 0, "message": "Success", "data": 0 }
Operations