# 会员及用户中心接口
# 会员登录
调用地址 | https://demo.dbshop.net/shop-api/user (opens new window) |
---|---|
请求方法 | index 或者为空 |
请求类型 | post |
参数 | 必填 | 参数说明 |
---|---|---|
loginAccount | 是 | 登录账户,如果开启了邮箱和手机登录,可以是手机号和邮箱 |
loginPassword | 是 | 登录账户密码 |
appType | 否 | 登录的端类型,如 weChatMini |
{
"status": "success",
"code": 200,
"result": {
"userName": "222222",
"userAvatar": "https://demo.dbshop.net/upload/common/default_user_avatar.png?v=1635936455",
"userToken": "LxW5Xzq8QSmFB0wJ"
}
}
# 微信登录
调用地址 | https://demo.dbshop.net/shop-api/user/loginWeChat (opens new window) |
---|---|
请求方法 | loginWeChat |
请求类型 | post |
参数 | 必填 | 参数说明 |
---|---|---|
code | 是 | 微信小程序传递过来的code |
userName | 是 | 小程序用户名 |
userAvatar | 是 | 小程序头像 |
userSex | 是 | 小程序性别 |
{
"status": "success",
"code": 200,
"result": {
"userName": "222222",
"userAvatar": "https://demo.dbshop.net/upload/common/default_user_avatar.png?v=1635936455",
"userToken": "LxW5Xzq8QSmFB0wJ"
}
}
# 手机登录
# 会员注册项
# 手机地区区号
调用地址 | https://demo.dbshop.net/shop-api/user/phoneRegisterAreaCode (opens new window) |
---|---|
请求方法 | phoneRegisterAreaCode |
请求类型 | get |
type 分为hidden和select,为select时,则是多个地区区号
{
"status": "success",
"code": 200,
"result": {
"name": "areaCode",
"type": "hidden",
"value": "CN"
}
}
# 注册协议
调用地址 | https://demo.dbshop.net/shop-api/user/agreement (opens new window) |
---|---|
请求方法 | agreement |
请求类型 | get |
{
"status": "success",
"code": 200,
"result": {
"agreementBody": "<p>这是注册协议 在后台 客户设置->客户协议 设置内容</p>"
}
}
# 会员注册
# 手机号码注册
# 会员登录状态
调用地址 | https://demo.dbshop.net/shop-api/user/userLoginState (opens new window) |
---|---|
请求方法 | userLoginState |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": []
}
# 会员退出
调用地址 | https://demo.dbshop.net/shop-api/user/loginOut (opens new window) |
---|---|
请求方法 | loginOut |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": []
}
# 会员中心配置
调用地址 | https://demo.dbshop.net/shop-api/user/homeConfig (opens new window) |
---|---|
请求方法 | homeConfig |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
userToken | 是 | 登录标记 |
获知充值和提现是否启用。
{
"status": "success",
"code": 200,
"result": {
"customerConfig": {
"recharge_state": "0",
"withdraw_state": "0"
}
}
}
# 收货地址列表
调用地址 | https://demo.dbshop.net/shop-api/user/userAddress (opens new window) |
---|---|
请求方法 | userAddress |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": [
{
"addressId": 3,
"trueName": "张三",
"regionId": 5,
"regionValue": "北京 朝阳区",
"addressInfo": "测试地址信息",
"postCode": "100000",
"areaCode": "CN",
"phone": "17334027662",
"addrDefault": 1,
"userId": 11
}
]
}
# 收货地址详情
调用地址 | https://demo.dbshop.net/shop-api/user/addressInfo (opens new window) |
---|---|
请求方法 | addressInfo |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
addressId | 是 | 收货地址id |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": {
"addressId": 3,
"trueName": "张三",
"regionId": 5,
"regionValue": "北京 朝阳区",
"addressInfo": "测试地址信息",
"postCode": "100000",
"areaCode": "CN",
"phone": "17334027662",
"addrDefault": 1,
"userId": 11
}
}
# 保存收货地址
调用地址 | https://demo.dbshop.net/shop-api/user/saveAddress (opens new window) |
---|---|
请求方法 | saveAddress |
请求类型 | post |
参数 | 必填 | 参数说明 |
---|---|---|
addressId | 是 | 收货地址id,0为新添加收货地址,大于0为编辑对应的收货地址 |
trueName | 是 | 收货人名称 |
phone | 是 | 电话号码 |
regionId | 是 | 地区id |
regionValue | 是 | 地区内容 |
addressInfo | 是 | 详细地址 |
postCode | 否 | 邮政编码 |
addrDefault | 是 | 默认收货地址,0 否,1 是 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": []
}
# 删除收货地址
调用地址 | https://demo.dbshop.net/shop-api/user/delAddress (opens new window) |
---|---|
请求方法 | delAddress |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
addressId | 是 | 收货地址id |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": []
}
# 会员信息
调用地址 | https://demo.dbshop.net/shop-api/user/userInfo (opens new window) |
---|---|
请求方法 | userInfo |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": {
"userId": 11,
"userGroupId": 1,
"userName": "111111",
"userAvatar": "https://demo.dbshop.net/upload/common/default_user_avatar.png?v=1635938537",
"userPassword": "have",
"payPassword": "",
"userEmail": "1111@12121.com",
"userSex": 3,
"userBirthday": null,
"areaCode": null,
"userPhone": null,
"userStatus": 1,
"userAddTime": 1635849291,
"userMoney": 0,
"integralType1Num": 0,
"integralType2Num": 0,
"userEmailAuditCode": null,
"userGroupName": "普通会员"
}
}
# 会员编辑
调用地址 | https://demo.dbshop.net/shop-api/user/userEdit (opens new window) |
---|---|
请求方法 | userEdit |
请求类型 | post |
参数 | 必填 | 参数说明 |
---|---|---|
userSex | 是 | 性别,1 男,2 女,3 保密 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": []
}
# 会员登录密码修改
调用地址 | https://demo.dbshop.net/shop-api/user/editUserLoginPassword (opens new window) |
---|---|
请求方法 | editUserLoginPassword |
请求类型 | post |
参数 | 必填 | 参数说明 |
---|---|---|
originalPassword | 否 | 原始密码 当存在登录密码时,必填。如果是微信登录,登录密码是不存在的 |
userPassword | 是 | 新密码 |
userComPassword | 是 | 新确认密码 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": []
}
# 会员支付密码修改
调用地址 | https://demo.dbshop.net/shop-api/user/editUserPayPassword (opens new window) |
---|---|
请求方法 | editUserPayPassword |
请求类型 | post |
参数 | 必填 | 参数说明 |
---|---|---|
originalPassword | 否 | 当存在支付密码时,必填 |
payPassword | 是 | 新支付密码 |
payComPassword | 是 | 新支付确认密码 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": []
}
# 会员电子邮箱修改
调用地址 | https://demo.dbshop.net/shop-api/user/editUserEmail (opens new window) |
---|---|
请求方法 | editUserEmail |
请求类型 | post |
参数 | 必填 | 参数说明 |
---|---|---|
userEmail | 是 | 电子邮箱 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": []
}
# 会员电话号码修改
调用地址 | https://demo.dbshop.net/shop-api/user/editUserPhone (opens new window) |
---|---|
请求方法 | editUserPhone |
请求类型 | post |
参数 | 必填 | 参数说明 |
---|---|---|
userPhone | 是 | 电话号码 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": []
}
# 退换货列表
调用地址 | https://demo.dbshop.net/shop-api/user/returnChangeList (opens new window) |
---|---|
请求方法 | returnChangeList |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
page | 否 | 分页页数,默认为1 |
qty | 否 | 每页数量,默认为10 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": [
{
"returnId": 6,
"orderId": 71,
"orderSn": "20083052916743806693",
"userId": 1,
"userName": "111111",
"orderGoodsId": 70,
"returnType": "退款(不退货)",
"returnReason": "三无产品",
"returnAmount": "1.00",
"returnInfo": "个防盗防的",
"refundPayType": "balancePay",
"refundPayName": "",
"refundUser": "",
"refundAccount": "",
"returnState": "审核通过",
"addTime": 1599927157,
"reviewInfo": "大范甘迪发",
"reviewTime": 1599932547,
"goodsName": "又一个测试商品",
"goodsImage": "https://demo.dbshop.net/upload/order/image/4/0c4bbc095f841429ee0be516545ab540_5e6f8bca95a885_81738049_thumb.jpg",
"inSpecGoodsStr": "年代:1984",
"showAddTime": "2020-09-13 00:12:37",
"showReviewTime": "2020-09-13 01:42:27"
},
{
"returnId": 5,
"orderId": 72,
"orderSn": "20083058861952803007",
"userId": 1,
"userName": "111111",
"orderGoodsId": 72,
"returnType": "退款(不退货)",
"returnReason": "质量问题",
"returnAmount": "1.00",
"returnInfo": "说的",
"refundPayType": "otherPay",
"refundPayName": "1212",
"refundUser": "23232",
"refundAccount": "343434",
"returnState": "驳回申请",
"addTime": 1599809320,
"reviewInfo": "sdfsdf",
"reviewTime": 1599819881,
"goodsName": "又一个测试商品",
"goodsImage": "https://demo.dbshop.net/upload/order/image/4/0c4bbc095f841429ee0be516545ab540_5e6f8bca95a885_81738049_thumb.jpg",
"inSpecGoodsStr": "年代:1984",
"showAddTime": "2020-09-11 15:28:40",
"showReviewTime": "2020-09-11 18:24:41"
},
{
"returnId": 4,
"orderId": 72,
"orderSn": "20083058861952803007",
"userId": 1,
"userName": "111111",
"orderGoodsId": 71,
"returnType": "退款(不退货)",
"returnReason": "质量问题",
"returnAmount": "2.00",
"returnInfo": "1212",
"refundPayType": "balancePay",
"refundPayName": "",
"refundUser": "",
"refundAccount": "",
"returnState": "审核通过",
"addTime": 1599809275,
"reviewInfo": "sdffdd",
"reviewTime": 1599819798,
"goodsName": "还是一个测试商品",
"goodsImage": "https://demo.dbshop.net/upload/order/image/3/deda4df4e927116dbc2b76a2e9b493f7_5e6f8bd634bc06_86354147_thumb.jpg",
"inSpecGoodsStr": "年代:1861",
"showAddTime": "2020-09-11 15:27:55",
"showReviewTime": "2020-09-11 18:23:18"
}
]
}
# 退换货详情
调用地址 | https://demo.dbshop.net/shop-api/user/returnInfo (opens new window) |
---|---|
请求方法 | returnInfo |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
returnId | 是 | 退换货id |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": {
"returnId": 4,
"orderId": 72,
"orderSn": "20083058861952803007",
"userId": 1,
"userName": "111111",
"orderGoodsId": 71,
"returnType": 2,
"returnReason": "质量问题",
"returnAmount": "¥2.00",
"returnInfo": "1212",
"refundPayType": "balancePay",
"refundPayName": "",
"refundUser": "",
"refundAccount": "",
"returnState": "审核通过",
"addTime": 1599809275,
"reviewInfo": "sdffdd",
"reviewTime": 1599819798,
"showReturnType": "退款(不退货)",
"showAddTime": "2020-09-11 15:27:55",
"showRefundPayType": "退款到余额",
"showReviewTime": "2020-09-11 18:23:18",
"goodsName": "还是一个测试商品",
"goodsImage": "https://demo.dbshop.net/upload/order/image/3/deda4df4e927116dbc2b76a2e9b493f7_5e6f8bd634bc06_86354147_thumb.jpg",
"inSpecGoodsStr": "年代:1861"
}
}
# 商品收藏列表
调用地址 | https://demo.dbshop.net/shop-api/user/favoritesGoods (opens new window) |
---|---|
请求方法 | favoritesGoods |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
page | 否 | 分页页数,默认为1 |
qty | 否 | 每页数量,默认为10 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": [
{
"goodsFavoritesId": 3,
"goodsId": 7,
"userId": 11,
"favoritesTime": 1635939789,
"goodsName": "索尼(SONY)KD-55X8000E 55英寸 4K超高清",
"goodsImage": "https://demo.dbshop.net/upload/goods/image/c534950c4a79ea20293e483fd4ed4aff_thumb.jpg"
},
{
"goodsFavoritesId": 2,
"goodsId": 8,
"userId": 11,
"favoritesTime": 1635939788,
"goodsName": "小米(MI)电视4A标准版 L55M5-AZ/L55M5-AD 55英寸",
"goodsImage": "https://demo.dbshop.net/upload/goods/image/2094d0cd98ddee55b1a5696434f43483_thumb.jpg"
}
]
}
# 积分记录列表
调用地址 | https://demo.dbshop.net/shop-api/user/userIntegralList (opens new window) |
---|---|
请求方法 | userIntegralList |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
type | 是 | 1 消费积分,2 等级积分 |
page | 否 | 分页页数,默认为1 |
qty | 否 | 每页数量,默认为10 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": [
{
"integralLogId": 1,
"userId": 11,
"userName": "111111",
"integralLogInfo": "测试",
"changeIntegralNum": 1,
"integralNum": 1,
"integralTypeId": 1,
"integralLogTime": 1635940059,
"adminName": "admin",
"integralType": "消费积分",
"showIntegralLogTime": "2021-11-03 19:47:39"
}
]
}
# 余额记录列表
调用地址 | https://demo.dbshop.net/shop-api/user/userBalanceList (opens new window) |
---|---|
请求方法 | userBalanceList |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
page | 否 | 分页页数,默认为1 |
qty | 否 | 每页数量,默认为10 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": {
"balanceList": [
{
"balanceLogId": 2,
"userId": 11,
"userName": "111111",
"balanceChangeType": 1,
"balanceChangeNum": "6.00",
"balanceChangedAmount": "6.00",
"balanceChangeTime": 1635940385,
"balanceChangeInfo": "测试添加余额",
"adminId": 1,
"adminName": "admin",
"showBalanceChangeTime": "2021-11-03 19:53:05",
"showBalanceChangeType": "后台操作"
}
],
"defaultCurrency": {
"id": 1,
"name": "人民币",
"code": "CNY",
"symbol": "¥",
"decimal": 2,
"rate": "1.00",
"state": 1
},
"baseCurrency": {
"id": 1,
"name": "人民币",
"code": "CNY",
"symbol": "¥",
"decimal": 2,
"rate": "1.00",
"state": 1
}
}
}
# 现金充值提交
调用地址 | https://demo.dbshop.net/shop-api/user/saveRecharge (opens new window) |
---|---|
请求方法 | saveRecharge |
请求类型 | post |
参数 | 必填 | 参数说明 |
---|---|---|
rechargeNum | 是 | 充值金额 |
payCode | 是 | 充值支付方式 |
code | 是 | 小程序code |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": {
appId: "wxe5288943bxxxxxx"
nonceStr: "V6oB6382LQxxxx"
package: "prepay_id=wx0318365411264015e60bxxxxxxx"
paySign: "93A1BC816823A402231450E1xxxxxx"
signType: "MD5"
timeStamp: "1635935813"
}
}
# 充值码充值
调用地址 | https://demo.dbshop.net/shop-api/user/saveRechargeCode (opens new window) |
---|---|
请求方法 | saveRechargeCode |
请求类型 | post |
参数 | 必填 | 参数说明 |
---|---|---|
rechargeCode | 是 | 充值码 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": []
}
# 提现列表
调用地址 | https://demo.dbshop.net/shop-api/user/userWithdrawList (opens new window) |
---|---|
请求方法 | userWithdrawList |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
page | 否 | 分页页数,默认为1 |
qty | 否 | 每页数量,默认为10 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": [
{
"withdrawId": 1,
"userId": 11,
"userName": "111111",
"moneyChangeNum": "2.00",
"currencyCode": "CNY",
"bankName": "支付宝",
"bankAccount": "北京珑大钜商科技有限公司",
"bankCardNumber": "payment@loongdom.cn",
"withdrawInfo": null,
"addWithdrawTime": 1635946097,
"withdrawState": 1,
"withdrawFinishTime": null,
"adminId": 0,
"adminName": "",
"showAddWithdrawTime": "2021-11-03 21:28:17",
"showWithdrawFinishTime": "",
"showWithdrawState": "处理中"
}
]
}
# 提现申请
调用地址 | https://demo.dbshop.net/shop-api/user/addUserWithdraw (opens new window) |
---|---|
请求方法 | addUserWithdraw |
请求类型 | post |
参数 | 必填 | 参数说明 |
---|---|---|
moneyChangeNum | 是 | 提现金额 |
bankName | 是 | 支付名称/开户银行/第三方支付名称 |
bankAccount | 是 | 账户名称/开户名称 |
bankCardNumber | 是 | 必填 账号/卡号 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": []
}
# 会员优惠券列表
调用地址 | https://demo.dbshop.net/shop-api/user/userCoupon (opens new window) |
---|---|
请求方法 | userCoupon |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
page | 否 | 分页页数,默认为1 |
qty | 否 | 每页数量,默认为10 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": [
{
"userCouponId": 1,
"couponUseState": 1,
"userId": 11,
"userName": "111111",
"usedOrderId": 0,
"usedOrderSn": null,
"usedTime": 0,
"getOrderId": 0,
"getOrderSn": null,
"getTime": 1635929282,
"couponId": 1,
"couponTitle": "满100减1元",
"couponInfo": "满100减1元,优惠不断",
"couponUseStartTime": 0,
"couponUseEndTime": 0,
"couponStartAndEndTime": "长期有效",
"showCouponUseState": "可用",
"couponUse": 0
}
]
}
# 订单列表
调用地址 | https://demo.dbshop.net/shop-api/user/orderList (opens new window) |
---|---|
请求方法 | orderList |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
orderStatus | 否 | 订单状态,-1 所有订单、10 代付款、19-40 待发货、50 待收货、60-80 已完成、0 无效单 |
orderSn | 否 | 订单编号 |
page | 否 | 分页页数,默认为1 |
qty | 否 | 每页数量,默认为10 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": {
"orderList": [
{
"orderId": 14,
"orderSn": "21110332996850254705",
"outTradeNo": null,
"orderAmount": "5199.00",
"baseOrderAmount": "5199.00",
"goodsAmount": "5199.00",
"orderStatus": 10,
"paymentType": "OnlinePay",
"paymentCode": null,
"paymentName": null,
"paymentCertification": null,
"paymentFinishTime": null,
"deliveryType": "delivery",
"deliveryMode": 0,
"deliveryId": null,
"deliveryName": null,
"expressNumber": null,
"shippingFee": "0.00",
"expressTime": null,
"currencyCode": "CNY",
"currencySymbol": "¥",
"orderWeightAmount": 0,
"orderReturnType": 0,
"orderMessage": null,
"userId": 11,
"userName": "111111",
"orderAddTime": 1635932996,
"orderFinishTime": null,
"showOrderStatus": "待付款",
"showOrderAddTime": "2021-11-03 17:49",
"orderGoodsList": [
{
"orderGoodsId": 14,
"orderId": 14,
"goodsId": 7,
"goodsName": "索尼(SONY)KD-55X8000E 55英寸 4K超高清",
"goodsItem": "DBS000007",
"goodsPrice": "5199.00",
"goodsImage": "https://demo.dbshop.net/upload/order/image/7/c534950c4a79ea20293e483fd4ed4aff_thumb.jpg",
"inSpecGoodsStr": null,
"inSpecGoodsId": null,
"goodsType": "1",
"buyNum": 1,
"baseGoodsAmount": "5199.00",
"goodsAmount": "5199.00",
"goodsWeightAmount": 0,
"deliveryId": null,
"deliveryName": null,
"goodsStatus": 0,
"expressNumber": null,
"expressTime": null,
"evaluationStatus": 0,
"userId": 11,
"order": {}
}
]
}
]
}
}
# 订单详情
调用地址 | https://demo.dbshop.net/shop-api/user/showOrder (opens new window) |
---|---|
请求方法 | showOrder |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
orderId | 是 | 订单id |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": {
"orderId": 14,
"orderSn": "21110332996850254705",
"outTradeNo": null,
"orderAmount": "5199.00",
"baseOrderAmount": "5199.00",
"goodsAmount": "5199.00",
"orderStatus": 10,
"paymentType": "OnlinePay",
"paymentCode": null,
"paymentName": null,
"paymentCertification": null,
"paymentFinishTime": null,
"deliveryType": "delivery",
"deliveryMode": 0,
"deliveryId": null,
"deliveryName": null,
"expressNumber": null,
"shippingFee": "0.00",
"expressTime": null,
"currencyCode": "CNY",
"currencySymbol": "¥",
"orderWeightAmount": 0,
"orderReturnType": 0,
"orderMessage": null,
"userId": 11,
"userName": "111111",
"orderAddTime": 1635932996,
"orderFinishTime": null,
"showPaymentType": "在线支付",
"showDeliveryType": "商家配送",
"showOrderStatus": "待付款",
"showOrderAddTime": "2021-11-03 17:49",
"orderGoods": [
{
"orderGoodsId": 14,
"orderId": 14,
"goodsId": 7,
"goodsName": "索尼(SONY)KD-55X8000E 55英寸 4K超高清",
"goodsItem": "DBS000007",
"goodsPrice": "5199.00",
"goodsImage": "https://demo.dbshop.net/upload/order/image/7/c534950c4a79ea20293e483fd4ed4aff_thumb.jpg",
"inSpecGoodsStr": null,
"inSpecGoodsId": null,
"goodsType": "1",
"buyNum": 1,
"baseGoodsAmount": "5199.00",
"goodsAmount": "5199.00",
"goodsWeightAmount": 0,
"deliveryId": null,
"deliveryName": null,
"goodsStatus": 0,
"expressNumber": null,
"expressTime": null,
"evaluationStatus": 0,
"userId": 11,
"order": {}
}
],
"orderDeliveryAddress": {
"orderAddressId": 13,
"trueName": "张三",
"regionValue": "北京 朝阳区",
"addressInfo": "测试地址信息",
"postCode": "100000",
"areaCode": "CN",
"phone": "17334027662",
"deliveryTimeInfo": null,
"orderId": 14
},
"orderStatusLog": [
{
"statusId": 25,
"orderStatus": 10,
"operateUser": "111111",
"orderId": 14,
"statusInfo": "订单提交",
"statusTime": 1635932996,
"showStatusTime": "2021-11-03 17:49",
"showOrderStatus": "待付款"
}
],
"deliveryIdState": false,
"returnConfig": {
"order_return": "1",
"order_return_limit": "7",
"delivery_time_state": "1",
"delivery_time": "周一至周五送货\r\n周六、周日送货",
"order_return_cause": "质量问题\r\n三无产品\r\n卖家发错货\r\n收到商品少件/破损等\r\n其他",
"timeState": false
},
"deliveryApiState": "0",
"orderExtend": null
}
}
# 订单确认收货
调用地址 | https://demo.dbshop.net/shop-api/user/receiptOrder (opens new window) |
---|---|
请求方法 | receiptOrder |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
orderId | 是 | 订单id |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": []
}
# 取消订单
调用地址 | https://demo.dbshop.net/shop-api/user/cancelOrder (opens new window) |
---|---|
请求方法 | cancelOrder |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
orderId | 是 | 订单id |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": []
}
# 删除订单
调用地址 | https://demo.dbshop.net/shop-api/user/delOrder (opens new window) |
---|---|
请求方法 | delOrder |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
orderId | 是 | 订单id |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": []
}
# 商品评价 提交与显示
调用地址 | https://demo.dbshop.net/shop-api/user/goodsEvaluation (opens new window) |
---|---|
请求方法 | goodsEvaluation |
请求类型 | post |
参数 | 必填 | 参数说明 |
---|---|---|
evaluationStar | 是 | 评价星数 1、2、3、4、5 |
evaluationBody | 是 | 评价内容 |
orderGoodsId | 是 | 订单商品id |
userToken | 是 | 登录标记 |
当已经评价后,则显示评价内容
{
"status": "success",
"code": 200,
"result": []
}
# 物流轨迹信息
调用地址 | https://demo.dbshop.net/shop-api/user/orderExpressTrack (opens new window) |
---|---|
请求方法 | orderExpressTrack |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
orderId | 是 | 订单id |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": {
content: 'html字符串内容'
}
}
# 订单信息
调用地址 | https://demo.dbshop.net/shop-api/user/orderInfo (opens new window) |
---|---|
请求方法 | orderInfo |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
orderId | 是 | 订单id |
userToken | 是 | 登录标记 |
单一订单信息,不涉及订单商品显示
{
"status": "success",
"code": 200,
"result": {
"orderId": 14,
"orderSn": "21110332996850254705",
"outTradeNo": null,
"orderAmount": "5199.00",
"baseOrderAmount": "5199.00",
"goodsAmount": "5199.00",
"orderStatus": 10,
"paymentType": "OnlinePay",
"paymentCode": null,
"paymentName": null,
"paymentCertification": null,
"paymentFinishTime": null,
"deliveryType": "delivery",
"deliveryMode": 0,
"deliveryId": null,
"deliveryName": null,
"expressNumber": null,
"shippingFee": "0.00",
"expressTime": null,
"currencyCode": "CNY",
"currencySymbol": "¥",
"orderWeightAmount": 0,
"orderReturnType": 0,
"orderMessage": null,
"userId": 11,
"userName": "111111",
"orderAddTime": 1635932996,
"orderFinishTime": null,
"orderGoods": {},
"showOrderAddTime": "2021-11-03 17:49:56"
}
}
# 订单商品信息
调用地址 | https://demo.dbshop.net/shop-api/user/orderGoodsInfo (opens new window) |
---|---|
请求方法 | orderGoodsInfo |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
orderGoodsId | 是 | 订单商品id |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": {
"orderGoodsId": 14,
"orderId": 14,
"goodsId": 7,
"goodsName": "索尼(SONY)KD-55X8000E 55英寸 4K超高清",
"goodsItem": "DBS000007",
"goodsPrice": "5199.00",
"goodsImage": "https://demo.dbshop.net/upload/order/image/7/c534950c4a79ea20293e483fd4ed4aff_thumb.jpg",
"inSpecGoodsStr": null,
"inSpecGoodsId": null,
"goodsType": "1",
"buyNum": 1,
"baseGoodsAmount": "5199.00",
"goodsAmount": "5199.00",
"goodsWeightAmount": 0,
"deliveryId": null,
"deliveryName": null,
"goodsStatus": 0,
"expressNumber": null,
"expressTime": null,
"evaluationStatus": 0,
"userId": 11
}
}
# 虚拟商品列表
调用地址 | https://demo.dbshop.net/shop-api/user/virtualGoodsList (opens new window) |
---|---|
请求方法 | virtualGoodsList |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
page | 否 | 分页页数,默认为1 |
qty | 否 | 每页数量,默认为10 |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": [
{
"orderGoodsId": 243,
"orderId": 225,
"goodsId": 22,
"goodsName": "12121",
"goodsItem": "DBS000022",
"goodsPrice": "36.00",
"goodsImage": "http://localhost/github/ZF3DBSHOP/public/upload/order/image/22/20210608145436_615178a2882e57_95579118_thumb.jpg",
"inSpecGoodsStr": null,
"inSpecGoodsId": null,
"goodsType": "2",
"buyNum": 2,
"baseGoodsAmount": "24.00",
"goodsAmount": "72.00",
"goodsWeightAmount": 0,
"deliveryId": null,
"deliveryName": null,
"goodsStatus": 50,
"expressNumber": null,
"expressTime": 1635584561,
"evaluationStatus": 0,
"userId": 1,
"orderSn": "21103084537475225863"
},
{
"orderGoodsId": 242,
"orderId": 224,
"goodsId": 22,
"goodsName": "12121",
"goodsItem": "DBS000022",
"goodsPrice": "12.00",
"goodsImage": "http://localhost/github/ZF3DBSHOP/public/upload/order/image/22/20210608145436_615178a2882e57_95579118_thumb.jpg",
"inSpecGoodsStr": null,
"inSpecGoodsId": null,
"goodsType": "2",
"buyNum": 1,
"baseGoodsAmount": "12.00",
"goodsAmount": "12.00",
"goodsWeightAmount": 0,
"deliveryId": null,
"deliveryName": null,
"goodsStatus": 50,
"expressNumber": null,
"expressTime": 1634901302,
"evaluationStatus": 1,
"userId": 1,
"orderSn": "21102201286703858167"
}
]
}
# 虚拟商品详情
调用地址 | https://demo.dbshop.net/shop-api/user/viewVirtualGoods (opens new window) |
---|---|
请求方法 | viewVirtualGoods |
请求类型 | get |
参数 | 必填 | 参数说明 |
---|---|---|
orderGoodsId | 是 | 订单商品id |
userToken | 是 | 登录标记 |
{
"status": "success",
"code": 200,
"result": {
"orderSn": "21102201286703858167",
"virtualGoodsInfo": {
"orderGoodsId": 242,
"orderId": 224,
"goodsId": 22,
"goodsName": "12121",
"goodsItem": "DBS000022",
"goodsPrice": "12.00",
"goodsImage": "upload/order/image/22/20210608145436_615178a2882e57_95579118_thumb.jpg",
"inSpecGoodsStr": null,
"inSpecGoodsId": null,
"goodsType": "2",
"buyNum": 1,
"baseGoodsAmount": "12.00",
"goodsAmount": "12.00",
"goodsWeightAmount": 0,
"deliveryId": null,
"deliveryName": null,
"goodsStatus": 50,
"expressNumber": null,
"expressTime": 1634901302,
"evaluationStatus": 1,
"userId": 1
},
"virtualGoodsList": [
{
"virtualGoodsId": 94,
"virtualGoodsAccount": "U20211022559698",
"virtualGoodsAccountType": 2,
"virtualGoodsPassword": "qp16349013024875",
"virtualGoodsPasswordType": 2,
"virtualGoodsEndTime": null,
"virtualGoodsState": 2,
"orderSn": "21102201286703858167",
"orderId": 224,
"goodsId": 22,
"userId": 1,
"userName": "111111"
}
]
}
}