订单验证v2
POST
/v2/order/check请求参数
Body 参数application/json
cart_id
array[string]
购物车id
address_id
integer
用户收货地址id
takes
array[integer]
必需
选择自提收货的店铺id
use_coupon
object
必需
商户使用的优惠券id
${mer_id}
array[integer]
商户id
商户id=>[优惠券id]
use_integral
boolean
是否使用积分抵扣
示例
{
"cart_id": [
"string"
],
"address_id": 0,
"takes": [
0
],
"use_coupon": {
"${mer_id}": [
0
]
},
"use_integral": true
}
示例代码
返回响应
success(200)
fail(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
integer
必需
message
string
必需
data
object
必需
order_type
integer
必需
订单类型,0:普通商品.1:秒杀订单,2:预售订单,3:助力订单,4:拼团订单
order_model
integer
必需
0:实物,1:虚拟商品
order_extend
object
自定义表单数据
order_total_postage
string
订单总运费金额
order_price
string
订单支付金额
total_price
string
订单商品总价
platformCoupon
array [object {19}]
平台优惠券列表
enabledPlatformCoupon
boolean
订单是否可用平台券
usePlatformCouponId
integer
使用的平台券id
order_total_integral
string
必需
积分抵扣使用的积分数
order_total_integral_price
string
积分抵扣的金额
order_total_give_integral
string
订单赠送的积分
order_svip_discount
string
优惠价商品优惠金额
total_platform_coupon_price
string
平台券优惠金额
total_coupon
string
总优惠金额
order_coupon_price
string
商户券优惠金额
order
array [object {13}]
订单信息
status
string
数据是否可以下单
address
object
收货地址
openIntegral
boolean
积分抵扣是否可用
useIntegral
boolean
是否使用积分抵扣
key
string
订单唯一值
allow_address
boolean
必需
是否需要选择收货地址
order_delivery_status
boolean
订单是否可以发货
示例
成功示例
{
"status": 200,
"message": "success",
"data": {
"order_type": 0,
"order_model": 0,
"order_extend": [],
"order_total_postage": "0.00",
"order_price": "401.30",
"total_price": "635.00",
"platformCoupon": [
{
"coupon_user_id": 10182,
"coupon_id": 124,
"mer_id": 0,
"uid": 26338,
"coupon_title": "test",
"coupon_price": "100.00",
"use_min_price": "0.00",
"create_time": "2023-05-08 14:40:08",
"start_time": "2023-05-08 14:40:08",
"end_time": "2023-05-10 14:40:08",
"use_time": null,
"type": "receive",
"send_id": 0,
"status": 0,
"is_fail": 0,
"checked": true,
"disabled": false,
"product": [],
"coupon": {
"coupon_id": 124,
"type": 10,
"send_type": 0
}
}
],
"enabledPlatformCoupon": true,
"usePlatformCouponId": 10182,
"order_total_integral": "120",
"order_total_integral_price": "119.70",
"order_total_give_integral": "802",
"order_svip_discount": "0.00",
"total_platform_coupon_price": "100.00",
"total_coupon": "233.70",
"order_coupon_price": "14.00",
"order": [
{
"mer_id": 65,
"mer_name": "初识服装工作室",
"mer_state": 1,
"mer_avatar": "http://mer.crmeb.net/uploads/def/20200816/068bfc185a89296f3a973e5cb219091d.jpg",
"delivery_way": [
"2",
"1"
],
"commission_rate": "10.0000",
"category_id": 22,
"coupon": [
{
"coupon_user_id": 10181,
"coupon_id": 30,
"mer_id": 65,
"uid": 26338,
"coupon_title": "测试",
"coupon_price": "14.00",
"use_min_price": "0.00",
"create_time": "2023-05-08 14:40:00",
"start_time": "2023-05-08 14:39:59",
"end_time": "2023-06-07 14:39:59",
"use_time": null,
"type": "receive",
"send_id": 0,
"status": 0,
"is_fail": 0,
"product": [],
"coupon": {
"coupon_id": 30,
"type": 0
},
"checked": true,
"disabled": false
},
{
"coupon_user_id": 10183,
"coupon_id": 120,
"mer_id": 65,
"uid": 26338,
"coupon_title": "店铺券11",
"coupon_price": "10.00",
"use_min_price": "100.00",
"create_time": "2023-05-08 14:40:10",
"start_time": "2023-05-08 14:40:09",
"end_time": "2023-05-15 14:40:09",
"use_time": null,
"type": "receive",
"send_id": 0,
"status": 0,
"is_fail": 0,
"product": [],
"coupon": {
"coupon_id": 120,
"type": 0
},
"checked": false,
"disabled": false
},
{
"coupon_user_id": 10157,
"coupon_id": 61,
"mer_id": 65,
"uid": 26338,
"coupon_title": "111",
"coupon_price": "1.00",
"use_min_price": "0.00",
"create_time": "2023-05-08 09:54:21",
"start_time": "2023-05-08 09:54:21",
"end_time": "2023-05-09 09:54:21",
"use_time": null,
"type": "receive",
"send_id": 0,
"status": 0,
"is_fail": 0,
"product": [],
"coupon": {
"coupon_id": 61,
"type": 0
},
"checked": false,
"disabled": false
}
],
"merchantCategory": {
"merchant_category_id": 22,
"commission_rate": "0.0400",
"category_name": "一类经销商",
"create_time": "2022-06-28 15:34:10"
},
"openReceipt": "1",
"list": [
{
"cart_id": 2206,
"uid": 26338,
"mer_id": 65,
"product_type": 0,
"product_id": 1300,
"product_attr_unique": "7c01fd7377d0",
"cart_num": 4,
"create_time": "2023-05-08 14:41:06",
"source": 0,
"source_id": 0,
"is_pay": 0,
"is_del": 0,
"is_new": 0,
"is_fail": 0,
"spread_id": 0,
"allow_take": false,
"allow_delivery": true,
"total_price": "236.00",
"postage_price": "0.00",
"svip_discount": 0,
"svip_coupon_merge": 1,
"allow_price": "236.00",
"temp_number": 4,
"undelivered": false,
"coupon_price": "14.00",
"true_price": "186.30",
"platform_coupon_price": "35.70",
"integral": null,
"product": {
"product_id": 1300,
"cate_id": 651,
"image": "https://mer.crmeb.net/uploads/attach/2022/02/09/ad075d11b254d405e7f660e3026f67ca.jpg",
"store_name": "焙印 咖啡杯便携随行杯外带随手奶茶简约随身杯tritan创意个性潮流水杯子 浅灰色",
"is_show": 1,
"status": 1,
"is_del": 0,
"unit_name": "件",
"price": "59.00",
"mer_status": 1,
"temp_id": 351,
"give_coupon_ids": [],
"is_gift_bag": 0,
"is_used": 1,
"product_type": 0,
"old_product_id": 0,
"integral_rate": 0,
"delivery_way": "2",
"delivery_free": 0,
"type": 0,
"extend": "",
"pay_limit": 0,
"once_max_count": 0,
"once_min_count": 0,
"mer_svip_status": 1,
"svip_price_type": 0
},
"productAttr": {
"image": "",
"extension_one": "0.00",
"extension_two": "0.00",
"product_id": 1300,
"stock": 9998,
"price": "59.00",
"unique": "7c01fd7377d0",
"sku": "浅灰色",
"volume": "0.00",
"weight": "0.00",
"ot_price": "99.00",
"cost": "20.00",
"svip_price": "0.00",
"show_svip_price": false,
"bc_extension_one": 5.9,
"bc_extension_two": 2.95
}
}
],
"order": {
"true_price": "186.30",
"platform_coupon_price": "35.70",
"valid_total_price": "236.00",
"total_price": "236.00",
"final_price": 0,
"down_price": 0,
"coupon_price": "14.00",
"svip_coupon_merge": "1",
"postage_price": "0.00",
"isTake": 0,
"total_num": 4,
"enabledCoupon": true,
"useCouponIds": [
10181
],
"allow_take": false,
"allow_delivery": true,
"delivery_status": true,
"svip_discount": "0.00",
"use_svip": 0,
"order_type": 0,
"total_give_integral": "372",
"total_integral_price": 0,
"total_integral": 0,
"org_price": "186.30",
"pay_price": "186.30"
},
"take": {
"mer_integral_rate": 1,
"mer_integral_status": "1",
"mer_store_stock": 2,
"mer_take_address": "云南省昆明市西山区环城南路螺蛳湾中心B座1601",
"mer_take_day": [
1,
2,
3,
4,
5,
6,
7
],
"mer_take_location": [
"26.082521",
"119.304242"
],
"mer_take_name": "一品天下店",
"mer_take_phone": "15566668888",
"mer_take_status": "",
"mer_take_time": [
"09:00",
"09:00"
]
}
},
{
"mer_id": 55,
"mer_name": "西西里数码店",
"mer_state": 1,
"mer_avatar": "https://mer.crmeb.net/uploads/def/20211115/491ba35ea8d73a85bfdaf5c0ef5d1d24.jpg",
"delivery_way": [
"2",
"1"
],
"commission_rate": "0.0000",
"category_id": 16,
"coupon": [],
"merchantCategory": {
"merchant_category_id": 16,
"commission_rate": "0.0200",
"category_name": "茶叶",
"create_time": "2020-05-06 17:09:15"
},
"openReceipt": "0",
"list": [
{
"cart_id": 1594,
"uid": 26338,
"mer_id": 55,
"product_type": 0,
"product_id": 1844,
"product_attr_unique": "100b545db820",
"cart_num": 1,
"create_time": "2023-04-14 16:21:14",
"source": 0,
"source_id": 0,
"is_pay": 0,
"is_del": 0,
"is_new": 0,
"is_fail": 0,
"spread_id": 0,
"allow_take": true,
"allow_delivery": true,
"total_price": "399.00",
"postage_price": 0,
"svip_discount": 0,
"svip_coupon_merge": 1,
"allow_price": "399.00",
"temp_number": 1,
"undelivered": false,
"coupon_price": "0.00",
"true_price": "215.00",
"platform_coupon_price": "64.30",
"integral": {
"use": 120,
"price": "119.70"
},
"product": {
"product_id": 1844,
"cate_id": 1114,
"image": "https://mer.crmeb.net/uploads/attach/2022/11/26/f1f4d43e7d3dc44a21eae25816e1ee27.jpg",
"store_name": "苹果笔记本电脑保护壳新Macbook Pro13/13.3英寸配件壳子保护套奶油外壳帝伊工坊电脑壳A2289/A2251/A2338",
"is_show": 1,
"status": 1,
"is_del": 0,
"unit_name": "件",
"price": "399.00",
"mer_status": 1,
"temp_id": 350,
"give_coupon_ids": [],
"is_gift_bag": 0,
"is_used": 1,
"product_type": 0,
"old_product_id": 0,
"integral_rate": 30,
"delivery_way": "2,1",
"delivery_free": 0,
"type": 0,
"extend": "",
"pay_limit": 0,
"once_max_count": 0,
"once_min_count": 0,
"mer_svip_status": 1,
"svip_price_type": 0
},
"productAttr": {
"image": "http://img30.360buyimg.com/popWaterMark/jfs/t1/210068/4/1483/95054/614a276fE3e00ef2e/41238695aaef8ec4.jpg",
"extension_one": "0.00",
"extension_two": "0.00",
"product_id": 1844,
"stock": 9992,
"price": "399.00",
"unique": "100b545db820",
"sku": "熏衣蓝(配键盘膜+防尘塞),新Pro13 M1/M2(A2338/2289/2251)",
"volume": "0.00",
"weight": "0.00",
"ot_price": "599.00",
"cost": "299.00",
"svip_price": "0.00",
"show_svip_price": false,
"bc_extension_one": 39.9,
"bc_extension_two": 19.95
}
}
],
"order": {
"true_price": "215.00",
"platform_coupon_price": "64.30",
"valid_total_price": "399.00",
"total_price": "399.00",
"final_price": 0,
"down_price": 0,
"coupon_price": 0,
"svip_coupon_merge": "",
"postage_price": 0,
"isTake": true,
"total_num": 1,
"enabledCoupon": true,
"useCouponIds": [],
"allow_take": true,
"allow_delivery": true,
"delivery_status": true,
"svip_discount": "0.00",
"use_svip": 0,
"order_type": 0,
"total_give_integral": "430",
"total_integral_price": "119.70",
"total_integral": "120",
"org_price": "215.00",
"pay_price": "215.00"
},
"take": {
"mer_integral_rate": 0,
"mer_integral_status": "1",
"mer_store_stock": 10,
"mer_take_address": "西安启航时代",
"mer_take_day": [
1,
2,
3,
4,
5,
6,
7
],
"mer_take_location": [
"34.338333",
"108.945493"
],
"mer_take_name": "西西里数码手机店",
"mer_take_phone": "18192945061",
"mer_take_status": "",
"mer_take_time": [
"08:00",
"22:00"
]
}
}
],
"status": "finish",
"address": {
"address_id": 2604,
"uid": 26338,
"real_name": "杨大",
"phone": "13311111111",
"province": "陕西",
"province_id": 27,
"city": "咸阳市",
"city_id": 2402,
"district": "秦都区",
"district_id": 44320,
"street": "沣东街道",
"street_id": 56701,
"detail": "西咸大厦",
"post_code": 0,
"longitude": "0",
"latitude": "0",
"is_default": 1,
"is_del": 0,
"create_time": "2023-04-28 09:38:36"
},
"openIntegral": true,
"useIntegral": true,
"key": "8f07c058bec57a0db771f128fc3b256626338",
"allow_address": true,
"order_delivery_status": true
}
}
最后修改时间: 2 年前