接口 cabinet.create.product.model

建模流程

Alt text

接口说明

自取柜发起商品建模申请

业务参数

参数名称 类型 是否必须 说明
name string Y 商品名称
categoryId string Y 分类 id
imageUrl string Y 商品预览图片(需要先调用去除底图接口获取新图片地址:cabinet.remove.image.background)
isNoneBarCode boolean N 是否无条码
barcode string N 商品 barcode
fiveWeight int N 5 个商品重量和(单位:克)
imageUrlList string[] Y 建模图片(5 张图必须)

返回示例

{
    "error_code": 0,
    "error_msg": "SUCCESS",
    "sub_error_code": null,
    "sub_error_msg": null,
    "data": {
        "id": "xxxxxxx", // 建模申请id
    }
}

错误码: ERR_PROVIDER_PRODUCT_MODEL_IS_EXIST 模型已经存在 ERR_BARCODE_ALREADY_SUBMITED 已经提交过建模 ERR_CREATE_FAILED 创建建模申请失败

Copyright © YoPoint.com 2019 all right reserved,powered by Gitbook该文件修订时间: 2024-01-04 16:21:22

results matching ""

    No results matching ""