簡要描述
請求url
https://www.商城域名.com/index.php?s=/api/bargain.checkout/order
請求方式
是否需授權登錄
請求header
參數名 |
類型 |
是否必須 |
示例值 |
說明 |
storeId |
int |
必填 |
10001 |
商城ID |
platform |
string |
必填 |
H5 |
當前請求的客戶端(APP、小程序、H5等) |
Access-Token |
string |
選填 |
- |
當前登錄用戶的 Token |
請求參數
參數名 |
類型 |
是否必須 |
示例值 |
說明 |
mode |
string |
必填 |
bargain |
結算模式(bargain砍價活動) |
delivery |
int |
必填 |
10 |
配送方式(10快遞配送 20上門自提) |
shopId |
int |
必填 |
0 |
自提門店ID |
couponId |
int |
必填 |
0 |
優惠券ID |
isUsePoints |
int |
必填 |
0 |
是否使用積分抵扣(1使用 0不使用) |
taskId |
int |
必填 |
10026 |
砍價任務ID |
返回示例
{
"status": 200,
"message": "success",
"data": {
"order": {
"goodsList": [
{
"goods_id": 10018,
"goods_name": "簡約風條紋客廳沙發臥室床頭抱枕靠墊套",
"goods_no": "",
"video_id": 0,
"video_cover_id": 0,
"selling_point": "",
"spec_type": 10,
"goods_price_min": "48.90",
"goods_price_max": "48.90",
"line_price_min": "129.00",
"line_price_max": "129.00",
"stock_total": 80003,
"delivery_id": 10001,
"is_points_gift": 1,
"is_points_discount": 1,
"is_alone_points_discount": 0,
"points_discount_config": "",
"is_enable_grade": 1,
"is_alone_grade": 0,
"alone_grade_equity": [],
"status": 10,
"is_ind_dealer": 0,
"dealer_money_type": 10,
"first_money": "0.00",
"second_money": "0.00",
"third_money": "0.00",
"goods_image": "http://static.yoshop.xany6.com/10001/20210316/41cdb778199f99ebebb6090680f382fc.png",
"goods_sales": 160,
"is_user_grade": false,
"skuInfo": {
"id": 10662,
"goods_sku_id": "0",
"goods_id": 10018,
"image_id": 0,
"goods_sku_no": "",
"goods_price": "49.90",
"line_price": "129.00",
"stock_num": 80003,
"goods_weight": 0.8,
"goods_props": null,
"spec_value_ids": null,
"store_id": 10001,
"create_time": "2022-02-28 14:34:39",
"update_time": "2022-02-28 14:34:39"
},
"goods_price": "39.22",
"total_num": 1,
"goods_sku_id": "0",
"total_price": "39.22",
"grade_ratio": 0,
"grade_goods_price": 0,
"grade_total_money": 0,
"coupon_money": 0,
"max_points_num": 0,
"pointsNum": 0,
"points_money": 0,
"total_pay_price": "39.22",
"expressPrice": 0,
"points_bonus": "1"
}
],
"orderTotalNum": 1,
"couponList": [],
"hasError": false,
"errorMsg": "",
"delivery": 10,
"address": {
"address_id": 10052,
"name": "test",
"phone": "13212341234",
"province_id": 1,
"city_id": 2,
"region_id": 3,
"detail": "125125",
"user_id": 10125,
"region": {
"province": "北京",
"city": "北京市",
"region": "東城區"
}
},
"existAddress": true,
"expressPrice": "0.00",
"isIntraRegion": true,
"extractShop": [],
"isAllowPoints": false,
"isUsePoints": "0",
"pointsMoney": 0,
"pointsBonus": 1,
"lastExtract": {
"linkman": "陳鋒",
"phone": "13212341234"
},
"orderTotalPrice": "39.22",
"couponId": 0,
"couponMoney": 0,
"orderPrice": "39.22",
"orderPayPrice": "39.22"
},
"personal": {
"user_id": 10125,
"balance": "91560.22",
"points": 64,
"address_id": 10052
},
"setting": {
"deliveryType": [
10,
20
],
"points_name": "積分",
"points_describe": "a) 積分不可兌現、不可轉讓,僅可在本平臺使用;\nb) 您在本平臺參加特定活動也可使用積分,詳細使用規則以具體活動時的規則為準;\nc) 積分的數值精確到個位(小數點后全部舍棄,不進行四舍五入)\nd) 買家在完成該筆交易(訂單狀態為“已簽收”)后才能得到此筆交易的相應積分,如購買商品參加店鋪其他優惠,則優惠的金額部分不享受積分獲取;"
}
}
}
返回參數
參數名 |
類型 |
示例值 |
說明 |
status |
int |
200 |
請求狀態(200:請求成功;500:請求錯誤/失敗) |
message |
string |
success |
請求結果的信息,默認為 success |
data |
object |
- |
返回的業務數據 |
data 參數
參數名 |
類型 |
示例值 |
說明 |
order |
object |
- |
訂單信息;可參考 “訂單結算信息” API |