解码OAID(Open Addressee ID),返回收件人信息。该接口用于客户端直接查看订单隐私数据,解密数据不经过ISV服务器,且包含风控等安全检测。
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
sec_once_token | String | 必须 | abc123 | 安全令牌 | |
query_list | ReceiverQuery [] | 必须 |
|
解密请求列表,长度不要超过1(只能单笔解密,不支持批量解密)。 | |
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
receiver_list | Receiver [] | 收件人列表 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); TopOaidClientDecryptRequest req = new TopOaidClientDecryptRequest(); req.setSecOnceToken( "abc123" ); List<TopOaidClientDecryptRequest.ReceiverQuery> list2 = new ArrayList<TopOaidClientDecryptRequest.ReceiverQuery>(); TopOaidClientDecryptRequest.ReceiverQuery obj3 = new TopOaidClientDecryptRequest.ReceiverQuery(); list2.add(obj3); obj3.setTid( "12345678" ); obj3.setOaid( "xxxxxx" ); obj3.setScene( "1005" ); obj3.setSecretNoDays(30L); req.setQueryList(list2); TopOaidClientDecryptResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | < top_oaid_client_decrypt_response > < receiver_list > < receiver > < order_id >123456</ order_id > < oaid >xxxx</ oaid > < address_detail >淘宝城911号</ address_detail > < town >三墎镇</ town > < district >西湖区</ district > < city >杭州市</ city > < state >浙江省</ state > < country >中国</ country > < phone >010-12345678</ phone > < mobile >13012345678</ mobile > < name >张三</ name > < matched >true</ matched > < secret_no_expire_time >2022-09-01 00:00:00</ secret_no_expire_time > < desensitize_rule >DECRYPTION_DISABLED_BY_ORDERCLOSED</ desensitize_rule > </ receiver > </ receiver_list > </ top_oaid_client_decrypt_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isv.decryption-quota-exceeded | 当日解密订单数量已超过额度 | 请商家用主账号登录申请提额 https://myseller.taobao.com/home.htm/merchant-intimity-console ,申请路径:千牛卖家中心(WEB端网页版)->店铺管理-> 隐私保护-> 提额 (如商家未在千牛卖家中心后台找到“隐私保护”页面入口,可尝试点击千牛卖家中心(WEB端网页版)首页右上角“回到旧版”操作提额申请) |
isv.invalid-argument | ||
isv.tid-invalid | ||
isv.prohibit-subaccount | ||
isv.oaid-invalid | ||
isv.prohibit-masteraccount | ||
isv.tid-error | ||
isv.no-permission:oaid | ||
isv.app-decryption-disabled-by-seller | ||
isv.prohibit-application | ||
isv.decryption-disabled-by-seller | ||
isp.call-limited | ||
isv.prohibit-application-user | ||
isv.empty-parameter | ||
isv.error-parameter | ||
isv.lack-of-balance | ||
isv.concurrent-query | ||
isv.sec-token-invalid |