文档中心 > API类目 > 阿里通信API

taobao.flow.order.identifycode.get (流量分销发送验证码V2)

流量分销发送验证码V2

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
code_send_req DistributeSendReq 必须 请求对象
  • └ dis_item_id
  • Number
  • 必须
  • 32323241
  • 分销商品id
  • └ out_order_id
  • String
  • 必须
  • 1232112131231
  • 商家唯一幂等流水,数字类型,不可超过10位
  • └ account
  • String
  • 必须
  • 150xxxxxxxx
  • 业务办理账户
  • └ ext_param
  • String
  • 可选
  • {"voucherNumber":"xxx"}
  • 扩展参数

响应参数

名称 类型 示例值 描述
in_code String SUCCESS 错误码
in_success Boolean true 是否成功
model Boolean true 发送接口返回结果
desc String 无权限 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FlowOrderIdentifycodeGetRequest req = new FlowOrderIdentifycodeGetRequest();
FlowOrderIdentifycodeGetRequest.DistributeSendReq obj1 = new FlowOrderIdentifycodeGetRequest.DistributeSendReq();
obj1.setDisItemId(32323241L);
obj1.setOutOrderId("1232112131231");
obj1.setAccount("150xxxxxxxx");
obj1.setExtParam("{\"voucherNumber\":\"xxx\"}");
req.setCodeSendReq(obj1);
FlowOrderIdentifycodeGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<flow_order_identifycode_get_response>
    <in_code>SUCCESS</in_code>
    <in_success>true</in_success>
    <model>true</model>
    <desc>无权限</desc>
</flow_order_identifycode_get_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

返回
顶部