九医云商城对外文档

九医云商城对外文档


4.3 同步基础商品信息

4.3 同步基础商品信息

> - Url路径:[建议]setProducts

4.3.1 接口请求模型

参数代码     参数类型参数类型       参数长度 代码标识说明 是否非空 说明                
products     List<setProductsModel>                         Y         商品集合(最大200行)

4.3.2 接口返回模型

参数名称 参数类型 参数长度 代码标识 必填 说明                          
code     int       3         Y         Y     成功标识 200:成功 -1:失败/异常
msg       string   200                 Y     返回信息                      
output   object                             返回数据                      
nonce     string   200                 Y     请求时的nonce原样返回          

Demo:

Request:

{
    "appKey": "NepHealth",
    "input": {
        "pharmacyCode": "01",
        "products": [{
            "approvalNumber": "SC1135058201717",
            "barcode": "0011075",
            "brand": "102855",
            "category1": 101691,
            "category1Name": "农副及食品饮料",
            "category2": 101758,
            "category2Name": "休闲食品",
            "category3": 102184,
            "category3Name": "糖果、巧克力",
            "dosageForm": "预包装食品",
            "enterprise": "晋江市优度食品发展有限公司",
            "isHealthIsr": 0,
            "name": "怡爽,蜜炼草本枇杷糖(特强铁盒)  晋江优度  60G",
            "placeType": 1,
            "prescriptionType": 4,
            "price": 99.00,
            "sku": "盒",
            "spec": "60G",
            "status": 1,
            "upc": "6934982200049"
        }]
    },
    "nonce": "9e2419ac-c764-4a49-bd9e-69ede25ef609",
    "sign": "8248c0dc20614f7b52456a13b26fb58bde32d35d",
    "timestamp": 1646387440
}

Response:

{
    "code": 200,
    "msg": "操作成功",
    "nonce": "9e2419ac-c764-4a49-bd9e-69ede25ef609",
    "output": null
}

页面列表

ITEM_HTML