生成-订单(结算页)
GET
/member/order/pre生成订单(即填写订单或结算页)
注意: 需要登录状态token携带
请求参数
[message.headerParameter]
Authorization
string
必需
Bearer token值: 例如: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ7XCJuYW1lXCI6XCLkvKDmmbrmlZnogrIrMVwiLFwiaWRcIjpcIjEzNjk1OTQ5NTQ3Mzk4NTk0NThcIixcInVzZXJuYW1lXCI6XCJ4aWFvdHV4aWFuMDAxXCJ9IiwiaWF0IjoxNjU2NzY2MzkwLCJleHAiOjE2NTcwMjU1OTB9.g-0SLjVSVh2A6Zt14enZsP1bsImxLhaQclfyItIFrAs
示例值:
{{ERABBIT_ACCESS_TOKEN}}
示例代码
[api.label.responses]
成功(200)
身份认证失败_小兔仙(401)
HTTP 状态码: 200
内容格式: JSONapplication/json
[response.label.jsonSchema]
code
string
业务状态码
1成功, 其他失败
msg
string
响应消息
result
object
响应结果
userAddresses
array [object {11}]
订单内用户地址列表
goods
array [object {10}]
订单商品集合
summary
object
订单总计信息
[api.label.example]成功示例
{
"code": "1",
"msg": "操作成功",
"result": {
"userAddresses": [
{
"id": "1540230291484839938",
"receiver": "龙龙酱",
"contact": "17265443216",
"provinceCode": "420000",
"cityCode": "420100",
"countyCode": "420111",
"address": "武昌首义学院",
"isDefault": 1,
"fullLocation": "湖北省武汉市洪山区",
"postalCode": null,
"addressTags": null
},
{
"id": "1539125179223904257",
"receiver": "阿朱",
"contact": "13966666666",
"provinceCode": "320000",
"cityCode": "320500",
"countyCode": "320508",
"address": "慕容山庄",
"isDefault": 1,
"fullLocation": "江苏省苏州市姑苏区",
"postalCode": "514688",
"addressTags": "姑苏慕容"
},
{
"id": "1527553797373562882",
"receiver": "张先生12",
"contact": "15236363232",
"provinceCode": "150000",
"cityCode": "150600",
"countyCode": "150625",
"address": "仙霞西路885弄",
"isDefault": 1,
"fullLocation": "内蒙古自治区鄂尔多斯市杭锦旗",
"postalCode": "100010",
"addressTags": "家"
},
{
"id": "1539126595464204290",
"receiver": "慕容复",
"contact": "13966666666",
"provinceCode": "320000",
"cityCode": "320500",
"countyCode": "320508",
"address": "慕容山庄",
"isDefault": 0,
"fullLocation": "江苏省苏州市姑苏区",
"postalCode": "415366",
"addressTags": "姑苏慕容"
}
],
"goods": [
{
"id": "3995844",
"name": "优质90%白鸭绒,儿童轻薄羽绒裤1-6岁",
"picture": "https://yanxuan-item.nosdn.127.net/f17d6260e7eb0cb805b796296f5f54b5.jpg",
"count": 5,
"skuId": "300247947",
"attrsText": "颜色:黑色 尺码:80cm(建议12-18个月) ",
"price": "129.00",
"payPrice": "129.00",
"totalPrice": "645.00",
"totalPayPrice": "645.00"
},
{
"id": "3997974",
"name": "入门首选,语音播报电子血压计",
"picture": "https://yanxuan-item.nosdn.127.net/8f0c15f981c5cbcb1aa17215a259fa62.png",
"count": 2,
"skuId": "300265327",
"attrsText": "规格:白色KD-5901 ",
"price": "109.00",
"payPrice": "109.00",
"totalPrice": "218.00",
"totalPayPrice": "218.00"
}
],
"summary": {
"goodsCount": 7,
"totalPrice": 863,
"totalPayPrice": 868,
"postFee": 5,
"discountPrice": 0
}
}
}
[updatedIn] 2 年前