OPPO保修查询 激活日期、保修、是否官换机

  • OPPO / 一加

请求参数

参数位置必填
keyheaderkey
snurlIMEI/序列号

key in request header or url

返回示例

{
	"code": 0,
	"data": {
		"imei": "867094041527230",  //IMEI
		"sn": "",  //序列号
		"brand": "OPPO",  //品牌
		"model": "OPPO Reno Z",  //型号
		"description": "PCDM10",  //型号描述
		"configuration": "OPPO Reno Z(CN)",  //配置
		"capacity": "8GB+128GB",  //容量
		"color": "极夜黑",  //颜色
		"activated": true,  //激活状态
		"purchase": {
			"date": "2020-04-01",  //激活日期
			"country": "China"  //购买地点
		},
		"coverage": {
			"status": "Out Of Warranty",  //保修状态
			"description": "已激活电子保卡",  //保障情况
			"date": "2021-04-01"  //保修结束日期
		},
		"oppocare": "No",  //OPPO保障服务
		"replacement": "No",  //是否官换机
		"refurbished": "No",  //是否官翻机
		"manufacture": {
			"date": "2019-07-23 23:28:34",  //生产日期
		},
		"image": "https://image.oppo.com/content/dam/oppo/common/support/self-service/products/default/001.png"  //设备图片
	},
	"source": "m-a",
	"cost": 0.8,
	"balance": 3023
}

接口错误码所有接口错误码一致

400Bad Request请求参数错误
404Not Found无效或不存在
502Bad Gateway不支持或查询失败
503Service Unavailable繁忙或者临时维护,请稍后重试
410Gone接口已失效/下线

code = 错误码 (int),message = 错误信息 (string)
查询成功:code===0
每次请求均会返回 cost(扣费) 和 balance(余额),方便随时记录和监控
错误(400)和无效(404)扣费 0.02 元,其他错误不扣费

用户错误码

401Unauthorized密钥无效
402Payment Required余额不足
403Forbidden无权限(IP白名单限制)

接口具体错误信息见 message
如果前端需要返回错误信息,请直接返回 message 的内容