简要描述:

  • 盲盒-预下单

请求域名:

  • http://xx.com

请求URL:

POST:route=plugin.blind-box.api.buy

参数:

参考商城立即购买下单:https://wiki.yunzmall.com/docs/show/1369

新增参数 是否必须 类型 说明
activity_id int 活动id

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "成功",
	"data": {
		"amount_items": [
			{
				"code": "total_goods_price",
				"name": "订单总金额",
				"amount": "20.00"
			},
			{
				"code": "total_dispatch_price",
				"name": "总运费",
				"amount": "0.00"
			}
		],
		"discount_amount_items": [],
		"fee_items": [],
		"service_fee_items": [],
		"total_price": "20.00",
		"orders": [
			{
				"plugin_id": 107,
				"dispatch_type_id": 0,
				"mark": "",
				"goods_price": "20.00",
				"price": "20.00",
				"order_goods_price": "20.00",
				"cost_amount": "0.00",
				"discount_price": "0.00",
				"fee_amount": "0.00",
				"service_fee_amount": "0.00",
				"deduction_price": "0.00",
				"dispatch_price": "0.00",
				"goods_total": 1,
				"is_virtual": false,
				"no_refund": 1,
				"order_sn": "SN20210312091130CC",
				"create_time": "2021-03-12 09:11:30",
				"note": null,
				"shop_name": "芸信商城11",
				"need_address": false,
				"invoice_type": null,
				"rise_type": null,
				"collect_name": null,
				"company_number": null,
				"pre_id": "8d7ce4e838b3030ab7b552e0d236dd74",
				"order_settings": [],
				"order_invoice": {
					"uniacid": "1",
					"email": null,
					"collect_name": "",
					"company_number": ""
				},
				"order_address": {
					"street_id": 0,
					"zipcode": "",
					"mobile": null,
					"province_id": null,
					"city_id": null,
					"district_id": null,
					"address": "   ",
					"realname": null
				},
				"order_goods": [
					{
						"goods_option_id": 0,
						"goods_option_title": "",
						"comment_status": 0,
						"goods_id": 187,
						"total": 1,
						"uid": 164934,
						"uniacid": 1,
						"title": "盲盒活动1",
						"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5de29eb8a5fdceef7a172a68709478a7.jpg",
						"goods_sn": "",
						"product_sn": "",
						"goods_price": "20.00",
						"price": "20.00",
						"goods_cost_price": "0.00",
						"goods_market_price": "0.00",
						"coupon_price": "0.00",
						"need_address": 0,
						"payment_amount": "20.00",
						"pre_id": "187-0",
						"goods_option": null,
						"order_goods_deductions": {
							"0": {
								"name": "123",
								"code": "love",
								"uid": 164934,
								"usable_amount": "0.00",
								"usable_coin": "0.00",
								"used_amount": "0.00",
								"used_coin": "0.00"
							},
							"1": {
								"name": "积分",
								"code": "point",
								"uid": 164934,
								"usable_amount": "0.00",
								"usable_coin": "0.00",
								"used_amount": "0.00",
								"used_coin": "0.00"
							},
							"3": {
								"name": "消费积分",
								"code": "integral",
								"uid": 164934,
								"usable_amount": "0.00",
								"usable_coin": "0.00",
								"used_amount": "0.00",
								"used_coin": "0.00"
							}
						},
						"order_goods_discounts": []
					}
				],
				"order_coupons": [],
				"order_discounts": [],
				"order_deductions": [],
				"order_fees": [],
				"order_service_fees": []
			}
		],
		"discount": {
			"whether_show_coupon": "1",
			"coupon_show": null,
			"member_coupons": []
		},
		"dispatch": {
			"delivery_method": [],
			"default_member_address": null
		}
	}
}

返回data参数说明:

备注: