5.1 预创建订单接口
5.1 预创建订单接口
> - Url路径:/api/order/pre
5.1.1 接口请求模型
参数代码 | 参数类型参数类型 | 参数长度 | 代码标识说明 | 是否非空 | 说明 |
---|---|---|---|---|---|
onlineOrderId | string | 100 | Y | 平台订单号 |
5.1.2 接口返回模型
参数名称 | 参数类型 | 必填 | 说明 |
---|---|---|---|
orderNo | string | Y | 生成订单编号 |
Demo:
Request:
{
"appKey": "NepHealth",
"nonce": "793d4171-183b-4a80-8c00-fd8d70954a38",
"timestamp": 1639121594,
"sign": "45e3cc54d144e513ef3999a06e4cf22aae9782a4",
"input": {
{
"addressUuid": "8a69c560899a83290189a4ee2c5e0003",
"couponUuid": "",
"deliverType": "1",
"drugUserUuid": "",
"items": [{
"count": 1,
"uuid": "1c99f86576b3475286dc11b109eab199",
"price": 70,
"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": "02000002057467745"
}
}