Authored by chenjian

Update third-order-trade.md

... ... @@ -455,25 +455,17 @@ http://127.0.0.1:8094/extendstore/?method=third.trade.compute&tradeNo=5016679404
}
```
## method=third.trade.submit (提交订单)
## method=extend.trade.userinfo (延展个人信息)
### 请求参数
| 参数 | 类型 | 是否必填 |描述 | 示例值 |
| :-- | :-- | :-- | :-- | :-- | :-- |
| tradeNo | String | 必填 | 有货订单号 | 123456789|
| yohoCoinMode | int | 非必填 | 是否使用有货币 | 0:不使用;1:使用 |
| couponCode | String | 非必填 | 使用的优惠券 | offlinegree002 |
| storeId | int | 必填 | 门店id | 66 |
| uid | int | 必填 |用户id | 8041876|
| udid | String | 是 | |ipad唯一标志 | |
| isNeedInvoice | String | 非必填 | 是否开发票 | "Y":是; "N":否 |
| invoiceTitle | String | 非必填 | 发票抬头 | |
| invoiceMobile | String | 非必填 | 手机号 | |
| buyerTaxNumber | String | 非必填 | 是否开发票 | |
| shop_type | int | 必填 | 延展店类型 | 1:咖啡;2:绿植;3:摄影 ||
| uid | int | 必填 | 用户ID ||
请求示例
http://127.0.0.1:8094/extendstore/?method=third.trade.submit&tradeNo=501667940472204&uid=50001698&yohoCoinMode=1&couponCode=offlinegree002&storeId=12&udid=13423
http://127.0.0.1:8094/extendstore/?method=extend.trade.userinfo&shop_type=0&uid=12345
响应成功JSON格式如下所示:
```json
... ... @@ -481,12 +473,24 @@ http://127.0.0.1:8094/extendstore/?method=third.trade.submit&tradeNo=50166794047
"alg": "SALT_MD5",
"code": 200,
"data": {
"outerNo": "0002020117080200001",
"payAmount": 248,
"tradeNo": "501667940472204",
"tradeStatus": "WAIT_BUYER_PAY"
"uid": 12345,
"会员等级":2, //取值:0,1,2,3
"cousume_amount": 1248.01, //消费金额
"cousume_num": 7, //消费次数
"credit_points": 208, //会员积分
"coupons_num": 5, //优惠券数量
"coupons": [
{
"coupon_code": "abc123", //优惠券标识
"coupon_name": "线下店推送咖啡券", //优惠券名称
"coupon_type": 0, //0:现金券;1:满减券
"coupon_amount": 50.00, //优惠券金额
"use_limit": "满299使用", //优惠券使用限制
"validate_date":"2017.8.1-2017.8.30" //有效期
}
]
},
"md5": "036e49ad6c43596a98df27b10aa8f8b3",
"message": "操作成功"
}
```
```
\ No newline at end of file
... ...