Menu//
- Create products(in batch)
Query ShopCategory list
Create a ShopCategory
Modify a ShopCategory
Delete ShopCategories(in batch)
Adjust order of a ShopCategory
Adjust order of ShopCategories(in batch)
Query category attribute list
Query products list
Query a specific product
Modify products(in batch)
Modify the available and unavailable status(in batch)
Query conflict ChoiceGroup before unavailable (in batch)
Delete products(in batch)
Adjust order of a product(in a specific ShopCategory)
Adjust products order in a ShopCategory(in batch)
Adjust products order in a Shop(in batch)
Batch bind Spus picture(support other image urls)
Query ChoiceGroup list
Create ChoiceGroups(in batch)
Modify ChoiceGroups(in batch)
Batch query which products are using these ChoiceGroups
Delete ChoiceGroups(in batch)
Modify ChoiceGroupSkus available/unavailable status(in batch)
Create products(in batch)
- Product data that can be transmitted in one batch should not exceed 200. If there are more products, please create them in batches.
- The interface supports partial synchronization success and partial synchronization failure. However, if there is a parameter format error, all will fail.
- You can not create "ShopCategory" or "ChoiceGroup" through this interface, please make sure all the ShopCategory.id and ChoiceGroup.id are already exist in store.
- Regarding the product image related Field, please use the "Image upload API" to upload the image to the KeeTa system first, than get the image URL and pass into the Picture.url field.
- If it is a tobacco and alcohol product, please be sure to fill in the relevant attributes in the [Product Attributes] field to avoid regulatory issues.
- If a Spu contains only one Sku, then the Sku.spec field is allowed to remain empty, otherwise the Sku.spec in a specific Spu need to be filled.
- The Sku.price is required and supports up to two decimal places.
- Spu.avaliableTime is required.
- "Specialty" dish can not exceed 15 in a store.
Rate limit: 10 QPS by appId dimension.
- https://open.mykeeta.com/api/openhttps://open.mykeeta.com/api/open/product/spu/batchcreate
curl -i -X POST \
https://open.mykeeta.com/api/open/product/spu/batchcreate \
-H 'Content-Type: application/json' \
-d '{
"shopId": 25381,
"spuList": [
{
"id": 12345,
"name": "Spicy Chicken Burger",
"sourceLanguageType": "en",
"nameTranslation": "辣雞腿漢堡",
"targetLanguageType": "zh-HK",
"nameTranslateType": 1,
"status": 1,
"description": "Spicy Chicken Burger description",
"descSourceLanguageType": "en",
"descriptionTranslation": "辣雞腿漢堡描述",
"descTargetLanguageType": "zh-HK",
"descriptionTranslateType": 1,
"shopCategoryList": [
{
"id": 12345,
"name": "Happy Meal",
"sourceLanguageType": "en",
"nameTranslation": "開心樂園餐",
"targetLanguageType": "zh-HK",
"nameTranslateType": 1,
"type": 0,
"description": "Happy Meal description",
"descSourceLanguageType": "en",
"descriptionTranslation": "開心樂園餐描述",
"descTargetLanguageType": "zh-HK",
"descriptionTranslateType": 1,
"openItemCode": "SHOP_CATEGORY#10001",
"availableTime": {
"code": 0,
"values": [
"string"
],
"available": [
{}
]
}
}
],
"pictureList": [
{
"url": "string"
}
],
"propertyList": [
{
"propertyId": 9999,
"propertyType": 1,
"customizable": 0,
"propertyValueList": [
{
"valueId": 9999
}
]
}
],
"skuList": [
{
"id": 12345,
"spec": "Large",
"sourceLanguageType": "en",
"specTranslation": "大份",
"targetLanguageType": "zh-HK",
"specTranslateType": "1",
"price": "28.0",
"pickPrice": "28.0",
"canteenPrice": "28.0",
"currency": "HKD",
"choiceGroupList": [
{
"id": 0,
"name": "Sauces",
"sourceLanguageType": "en",
"nameTranslation": "選擇醬料",
"targetLanguageType": "zh-HK",
"nameTranslateType": 1,
"minNumber": 0,
"maxNumber": 3,
"choiceGroupSkuList": [
null
],
"openItemCode": "GROUP#10001",
"repeatable": 0
}
],
"openItemCode": "SKU#10001",
"choiceGroupOpenItemCodeList": [
"string"
],
"nutritionalInfo": {
"property1": 0,
"property2": 0
},
"allergens": [
"string"
],
"servingSize": 4,
"caffeine": 0.39
}
],
"availableTime": {
"code": 0,
"values": [
"string"
],
"available": [
{
"startTimestamp": 1735660800000,
"endTimestamp": 1736956799000
}
]
},
"isSpecialty": 0,
"openItemCode": "SPU#10001",
"shopCategoryOpenItemCodeList": [
"2$33419",
"3$34747"
],
"userGetModeList": [
"delivery",
"pickup"
]
}
]
}'Batch creation result.
A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.
| Enum Value | Description |
|---|---|
| 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
Text description corresponding to the status code, explaining the operation result or error cause to users.
Example:"Success"
Response
{ "code": 0, "message": "Success", "data": [ { … } ], "errorList": [ { … } ] }