简要描述:

初进订单统计页面获取所有统计数据

请求URL:

GET/plugin.shop-statistics.backend.order.get-order-statistic

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"cumulative_data": {
			"cumulative_turnover": "234020.74",
			"pay_order_count": "436",
			"member_count": 171,
			"pay_member_count": 143,
			"wait_pay": "36",
			"wait_pay_price": "42703.00",
			"wait_send": "223",
			"refund_success_price": "838.91"
		},
		"order_statistic": [
			{
				"name": "营业额",
				"x_axis": [
					"07/16",
					"07/17",
					"07/18",
					"07/19",
					"07/20",
					"07/21",
					"07/22"
				],
				"y_axis": [
					0,
					0,
					0,
					0,
					0,
					0,
					0
				],
				"search": 0
			},
			{
				"name": "订单数",
				"x_axis": [
					"07/16",
					"07/17",
					"07/18",
					"07/19",
					"07/20",
					"07/21",
					"07/22"
				],
				"y_axis": [
					0,
					0,
					0,
					0,
					0,
					0,
					0
				],
				"search": 0
			},
			{
				"name": "下单人数",
				"x_axis": [
					"07/16",
					"07/17",
					"07/18",
					"07/19",
					"07/20",
					"07/21",
					"07/22"
				],
				"y_axis": [
					0,
					0,
					0,
					0,
					0,
					0,
					0
				],
				"search": 0
			},
			{
				"name": "支付人数",
				"x_axis": [
					"07/16",
					"07/17",
					"07/18",
					"07/19",
					"07/20",
					"07/21",
					"07/22"
				],
				"y_axis": [
					0,
					0,
					0,
					0,
					0,
					0,
					0
				],
				"search": 0
			},
			{
				"name": "客单价",
				"x_axis": [
					"07/16",
					"07/17",
					"07/18",
					"07/19",
					"07/20",
					"07/21",
					"07/22"
				],
				"y_axis": [
					0,
					0,
					0,
					0,
					0,
					0,
					0
				],
				"search": 0
			}
		],
		"distribution_area": [],
		"browse_footprint": 1,
		"transaction_overview": {
			"cookie_count": 0,
			"order_count": 0,
			"pay_order_count": 0,
			"chart": [
				{
					"name": "下单转化率",
					"x_axis": [
						"07/16",
						"07/17",
						"07/18",
						"07/19",
						"07/20",
						"07/21",
						"07/22"
					],
					"y_axis": [
						0,
						0,
						0,
						0,
						0,
						0,
						0
					]
				},
				{
					"name": "支付转化率",
					"x_axis": [
						"07/16",
						"07/17",
						"07/18",
						"07/19",
						"07/20",
						"07/21",
						"07/22"
					],
					"y_axis": [
						0,
						0,
						0,
						0,
						0,
						0,
						0
					]
				}
			]
		}
	}
}

返回参数说明:

参数名 类型 说明
cumulative_data array 累计数据
cumulative_data.cumulative_turnover float 累计营业额
cumulative_data.pay_order_count int 累计已支付订单数
cumulative_data.member_count int 累计下单人数
cumulative_data.pay_member_count int 累计支付人数
cumulative_data.wait_pay float 累计待支付订单数
cumulative_data.wait_pay_price float 累计待支付订单金额
cumulative_data.wait_send int 累计待发货订单数
cumulative_data.refund_success_price float 累计已退款订单金额
order_statistic array 订单统计图数据
order_statistic.name string 订单统计类型名
order_statistic.x_axis array 订单统计类型的x轴数据
order_statistic.y_axis array 订单统计类型的y轴数据
order_statistic.search int/float 订单统计类型的搜索数据(即该类型在搜索日期时的数据值)
distribution_area array 订单分布数据
distribution_area.areaname string 地区名
distribution_area.order_count int 订单数
distribution_area.order_price int 订单金额
browse_footprint int 浏览轨迹插件开启状态,1开启,0关闭(关闭)这里开启了,订单交易概况才会开放显示
transaction_overview array 交易概况数据
transaction_overview.cookie_count int 访客数
transaction_overview.order_count int 下单人数
transaction_overview.pay_order_count int 支付人数
transaction_overview.chart array 统计图数据