龙收银开放平台标准API接口文档

openapi


新增修改商品

简要描述:

  • 新增修改商品接口

请求URL:

  • http://192.168.12.86/s1saas/spos1/third/thirditem/insertorupdate

请求方式:

  • POST

请求类型:

  • application/json

    请求示例

  {
    "centerId": 2751,
    "itemList":[{
     "name":"克",
     "delflg":0,
     "itemCode":"2323",
     "itemSpec":"规格",
     "thirdClassId":"275100000000000001",
     "thirdUnitId":"275100000000000001",
     "isEnable":0,
     "stdPrice":3.53,
     "costPrice":5.23,
     "isMostUnit":true,
     "mainUnitFlag":0,
     "thirdParentId":"275100000000000001",
     "barList":[{
         "barCode":"23232323"
         },{
         "barCode":"232378"
         }],
    "imgList":[{
         "imgUrl":"https://wx-s1//0866.jpg",
         "imgType":0
         },{
         "imgUrl":"https://wx-s1//0866.jpg",
         "imgType":1
         }],
     "thirdCreatorId": "275100000000000001",
     "thirdModifierId": "275100000000000001",
     "thirdId":"275100000000000001",
     "thirdItemId":"GYL275100000000000001"
    },
    {
     "name":"克",
     "delflg":0,
     "itemCode":"2323",
     "itemSpec":"规格",
     "thirdClassId":"275100000000000001",
     "thirdUnitId":"275100000000000001",
     "isEnable":0,
     "stdPrice":3.53,
     "costPrice":5.23,
     "isMostUnit":true,
     "mainUnitFlag":0,
     "thirdParentId":"275100000000000001",
     "barList":[{
         "barCode":"23232323"
         },{
         "barCode":"232378"
         }],
    "imgList":[{
         "imgUrl":"https://wx-s1//0866.jpg",
         "imgType":0
         },{
         "imgUrl":"https://wx-s1//0866.jpg",
         "imgType":1
         }],
     "thirdCreatorId": "275100000000000001",
     "thirdModifierId": "275100000000000001",
     "thirdId":"275100000000000001",
     "thirdItemId":"GYL275100000000000001"
    }]
}

请求参数说明:

参数名 必选 类型 说明
centerId Integer 集团ID
itemList List<ThirdItemDetailCnd> 品项信息集合

ThirdItemDetailCnd请求参数说明:

参数名 必选 类型 说明
name String 单位名称
delflg Integer 是否删除
itemCode String 品项编码
itemSpec String 品项规格
thirdClassId String 第三方分类id
thirdUnitId Stirng 第三方单位id
isEnable Integer 是否启用 0:启用 1:停用
stdPrice BigDecimal 原价价格
costPrice BigDecimal 成本价格
isMostUnit Boolean 是否多单位
mainUnitFlag Boolean 是否主单位
thirdParentId String 第三方父单位主键id
barList List<ThirdBarDetailCnd> 条码集合
imgList List<ThirdImgDetailCnd> 图片集合
thirdCreatorId String 第三方创建人
thirdModifierId String 第三方修改人
thirdId String 第三方品项id
thirdItemId String 第三方业务主键id

ThirdBarDetailCnd请求参数说明:

参数名 必选 类型 说明
barCode String 条码

ThirdImgDetailCnd请求参数说明:

参数名 必选 类型 说明
imgUrl String 图片路径
imgType Integer 图片类型 0:静图 1:大图 2:动图 3:视频 4:副图

返回示例

{&quot;result&quot;:0,&quot;data&quot;:[
    {
        &quot;thirdId&quot;:&quot;275100000000000001&quot;,
        &quot;thirdItemId&quot;:&quot;275100000000000001&quot;,
        &quot;id&quot;:275100000000000001,
        &quot;code&quot;:&quot;001&quot;,
        &quot;name&quot;:&quot;商品名称&quot;,
        &quot;classId&quot;:275100000000000001,
        &quot;unitId&quot;:275100000000000001,
        &quot;unitName&quot;:&quot;克&quot;
    }
]}


 **返回对象** 

|参数名|类型|说明|
|:-----  |:-----|-----|
|thirdId | String | 第三方id
|thirdItemId | String | 第三方业务主键id
|id | Long |龙收银id  |
|code | String |龙收银系统品项编号 |
|name | String |品项名称 |
|classId | Long |分类id |
|unitId | Long |单位id |
|unitName | String |单位名称 |

 **备注** 

- 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML