文档中心 > API类目 > 天猫国际API

tmall.traceplatform.inner.code.needcipher (码咨询是否需要暗码接口-内部应用如alipay调用)

内部接口,供内部应用如alipay等使用,来判断这个码是否需要输入暗码

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
source String 必须 tmall 来源
biz_type String 必须 WuChangRice 业务
code String 必须 60001500000010534984

响应参数

名称 类型 示例值 描述
result DataResult result result
  • data
  • CheckIfNeedCipherDo
  • checkIfNeedCipherDo
  • obj
  • └ need_cipher
  • Boolean
  • true
  • 是否需要暗码
  • └ source
  • String
  • tmall
  • 来源
  • └ ciper_length
  • Number
  • 6
  • 暗码长度
  • └ redirect_url
  • String
  • redirectUrl
  • └ item_name
  • String
  • 商品名
  • 商品名
  • └ code
  • String
  • HANDLE_SUCCESS
  • code
  • └ msg
  • String
  • 处理成功
  • msg
  • └ success
  • Boolean
  • true
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallTraceplatformInnerCodeNeedcipherRequest req = new TmallTraceplatformInnerCodeNeedcipherRequest();
req.setSource("tmall");
req.setBizType("WuChangRice");
req.setCode("60001500000010534984");
TmallTraceplatformInnerCodeNeedcipherResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_traceplatform_inner_code_needcipher_response>
    <result>
        <data>
            <need_cipher>true</need_cipher>
            <source>tmall</source>
            <ciper_length>6</ciper_length>
            <redirect_url></redirect_url>
            <item_name>商品名</item_name>
        </data>
        <code>HANDLE_SUCCESS</code>
        <msg>处理成功</msg>
        <success>true</success>
    </result>
</tmall_traceplatform_inner_code_needcipher_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部