荣耀保修查询 激活状态、保修、购买地点

请求参数

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

key in request header or url

返回示例

{
	"code": 0,
	"data": {
		"imei": "",
		"meid": "",
		"mac": "",
		"sn": "AMFU6R1716044850",
		"brand": "荣耀",
		"model": "荣耀50 SE 8GB+128GB 流光幻镜 双卡 全网通版 (JLH-AN00)",
		"description": "荣耀50 SE 8GB+128GB 全网通标配版 (JLH-AN00)",
		"modelnumber": "JLH-AN00",
		"identifier": "JuliaH-AN00A",
		"activated": true,
		"purchase": {
			"date": "2022/2/15",
			"country": "China"
		},
		"coverage": {
			"status": "Out Of Warranty",
			"date": "2023/2/16",
			"mode": "全维保"
		},
		"care": "No",
		"electronic-card": "2022/2/15",
		"manufacture": {
			"date": "20R1/7/16"
		},
		"pre-activated": "No",
		"refurbished": "No",
		"demo": "No",
		"services": [  //权益(除1年维保、7天退机、15天换机、保养服务外的额外服务)
			{
				"name": "荣耀AR贴膜保养服务2年2次",
				"date": "2025/7/29"
			}
		],
		"offering": "OFFE00189003",
		"item": "51096LGX",
		"sku": "51096LGX",
		"image": "https://selfservice-cn.hihonor.com/ccpcmd/services/dispatch/download/secured/CCPC/EN/ccpc/getProductInformationPicture/1?imageId=M1T5A71N612327970816974849"
	},
	"source": "m-a",
	"cost": 0.4,
	"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 的内容