校园调用SaaS创建商品
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| tenantNum | String | 必须 | 880005 | 租户号 | |
| barcode | String | 必须 | 690000000001 | 商品69码 | |
| title | String | 必须 | 中性原子币 | 商品名称 | |
| storeId | Number | 必须 | 813904016 | 门店编码 | |
| status | Number | 必须 | 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 |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| 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 |