第三方应用开发 服务端API 接口调用许可 订单管理 获取订单详情
获取订单详情
最后更新:2023/04/04
可联系渠道经理采购或代理智慧硬件接口已支持设备 联系渠道经理
获取订单详情
最后更新:2023/04/04

查询某个订单的详情,包括订单的状态、基础账号个数、互通账号个数、账号购买时长等。注意,该接口不返回订单中的账号激活码列表或者续期的账号成员列表,请调用获取订单中的账号列表接口以获取账号列表。

此接口不支持获取多企业订单详情,多企业订单请调用获取多企业订单详情

请求方式: POST(HTTPS
请求地址: https://qyapi.weixin.qq.com/cgi-bin/license/get_order?provider_access_token=ACCESS_TOKEN

请求包体:

{
	"order_id":"xxxxx"
}

参数说明:

参数是否必须说明
provider_access_token应用服务商的接口调用凭证,获取方法参见服务商的凭证
order_id订单id

 

返回结果:

{
	"errcode": 0,
	"errmsg": "ok",
	"order":{
		"order_id":"xxxxx",
		"order_type":1,
		"order_status":1,
		"corpid":"wpxxxx",
		"price":10000,
		"account_count":{
	  	   "base_count":100,
      	   "external_contact_count":100
	     },
		 "account_duration":
 	     {
	   	  	"months":2,
	   	  	"days":20
	   	  	//"new_expire_time":1700000000
   	 	 },
		"create_time":150000000,
	    "pay_time":1550000000
	}
}

参数说明:

参数说明
errcode错误码
errmsg错误码说明
order订单详情
order.order_id订单号
order.order_type订单类型,1:购买账号,2:续期账号,5:应用版本付费迁移订单,6:历史合同迁移订单
order.order_status订单状态,0:待支付,1:已支付,2:已取消(未支付,订单已关闭)3:未支付,订单已过期,4:申请退款中,5:退款成功,6:退款被拒绝,7:订单已失效(将企业从服务商测试企业列表中移除时会将对应测试企业的所有测试订单置为已失效)
order.corpid客户企业id,返回加密的corpid
order.price订单金额,单位分
order.account_count订单的账号数详情
order.account_count.base_count基础账号个数
order.account_count.external_contact_count互通账号个数
order.account_duration账号购买时长
order.account_duration.months购买的月数,每个月按照31天计算。下单购买账号下单续期账号中指定月份数时返回
order.account_duration.days购买的天数,下单购买账号中指定天数时返回
order.account_duration.new_expire_time下单续期账号中指定新过期时间时返回
order.create_time创建时间
order.pay_time支付时间。迁移订单不返回该字段
上一篇
获取订单列表
下一篇
获取订单中的账号列表