九医云商城对外文档

九医云商城对外文档


5.2 创建订单接口

5.2 创建订单接口

> - Url路径:api/order/submit

5.2.1 接口请求模型

参数代码                     参数类型参数类型               参数长度 代码标识说明 是否非空 说明                                          
onlineOrderId               string                         100                     Y         平台订单号                                    

5.2.2 接口返回模型

参数名称 参数类型 必填 说明        
orderNo   string   Y     生成订单编号

Demo:

Request:

{
    "appKey": "NepHealth",
    "nonce": "793d4171-183b-4a80-8c00-fd8d70954a38",
    "timestamp": 1639121594,
    "sign": "45e3cc54d144e513ef3999a06e4cf22aae9782a4",
    "input": {
        {
            "addressUuid": "8a69c4b78948baa6018949009a200003",
            "couponUuid": "",
            "deliverType": "1",
            "drugUserUuid": "",
            "deliverExchange": "1",
            "items": [{
                "count": 1,
                "uuid": "8a69c51e82a0ccc40182a0d613dc0000",
                "price": 440,
                "hasGift": false,
                "hasGroup": false,
                "isNew": false
            }],
            "notes": "",
            "storeUuid": "2c9ee16779ebb9590179ee9dec570033",
            "drugUsageInfo": null,
            "useIntegral": true,
            "discountsAmount": 0,
            "hallCouponUuid": "",
            "additionalProducts": [],
            "reduceDiscountAmount": "0",
            "lastActivityType": "",
            "groups": [],
            "timeBuyProducts": []
        }
}

Response:

{
    "code": 200,
    "msg": "ok",
    "nonce": "793d4171-183b-4a80-8c00-fd8d70954a38",
    "output": {
        "orderNo": "ZT2023013100007"
    }
}

页面列表

ITEM_HTML