文档中心 > API类目 > 天猫校园零售

qimen.tmall.campus.retail.item.create (SaaS商品创建接口)

校园调用SaaS创建商品

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tenantNum String 必须 880005 租户号
barcode String 必须 690000000001 商品69码
title String 必须 中性原子币 商品名称
storeId Number 必须 813904016 门店编码
status Number 必须 0
  • 默认值:0
  • 状态,0正常,目前只支持0
    price Number 必须 100 门店售价(分)
    saleMode String 必须 1 销售模式:
    1:经销
    5:代销
    6:门店联营
    7:联营管库存
    8:租赁
    9:A进A出生鲜
    10:A进B出生鲜
    11:生鲜原料
    12:生鲜归集
    默认8:租赁 |
    meaUnit String 可选 计量单位,默认个
    referPrice Number 可选 100 参考售价(分):默认为门店售价
    purchPrice Number 可选 100 参考进价(分):默认为门店售价
    mesureProperty Number 可选 0 计量属性,0标准品,1计量品,2称重品,默认0
    categoryId String 可选 112 类目id
    categoryName String 可选 饮料 类目名称
    brandId String 可选 11301 品牌id
    brandName String 可选 百世 品牌名称
    goodCode String 可选 LSP000001 商品编码,默认LSP000001
    boxGauge String 可选 1
  • 默认值:1
  • 箱规,默认1

    响应参数

    名称 类型 示例值 描述
    success Boolean true 接口调用是否成功
    errCode String 0 错误码
    errMsg String none 错误信息

    请求示例

    {"brandName":"百世","saleMode":"1","tenantNum":"880005","title":"中性原子币","storeId":813904016,"boxGauge":"1","mesureProperty":0,"categoryName":"饮料","referPrice":100,"meaUnit":"个","price":100,"brandId":"11301","purchPrice":100,"barcode":"690000000001","goodCode":"LSP000001","categoryId":"112","status":0}

    响应示例

    {
        "success":true,
        "errCode":"0",
        "errMsg":"none"
    }

    验签示例

    {"success":"不等于true","errCode":"sign-check-failure","errMsg":"Illegal request"}

    错误码解释

    错误码 错误描述 解决方案
    isp.http-connection-timeout

    API工具

    FAQ

    返回
    顶部