taobao.huijin.right.send (淘系权益发放)

提供淘系权益发放

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 RightSendRequest 可选 请求入参
  • └ extend_infos
  • String
  • 可选
  • {}
  • 扩展信息
  • └ amount
  • Number
  • 必须
  • 100
  • 发放金额,单位分
  • └ security_code
  • String
  • 可选
  • hdls38k
  • 安全码
  • └ template_id
  • String
  • 必须
  • 29340234982
  • 模板id
  • └ receive_user_id
  • String
  • 必须
  • 2638468
  • 接收红包用户id
  • └ channel_id
  • Number
  • 可选
  • 729749
  • 渠道标识
  • └ source_desc
  • String
  • 可选
  • alipay
  • 来源信息
  • └ out_biz_id
  • String
  • 必须
  • 20734hrhk874
  • 幂等号
  • └ template_user_id
  • Number
  • 可选
  • 793492963
  • 模板用户id
  • └ type
  • Number
  • 必须
  • 1
  • 红包or卡券
  • └ source_id
  • Number
  • 可选
  • 93749
  • 来源id
  • └ do_sync
  • Boolean
  • 可选
  • true
  • 是否同步

响应参数

名称 类型 示例值 描述
result ResultSupport result
  • └ error_message
  • String
  • send error
  • errorMessage
  • └ module
  • String
  • {"rightId":101376500521106"}
  • 权益id
  • └ error_code
  • String
  • ILLEGAL_ARGUMENT
  • errorCode

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
HuijinRightSendRequest req = new HuijinRightSendRequest();
HuijinRightSendRequest.RightSendRequest obj1 = new HuijinRightSendRequest.RightSendRequest();
obj1.setExtendInfos("{}");
obj1.setAmount(100L);
obj1.setSecurityCode("hdls38k");
obj1.setTemplateId("29340234982");
obj1.setReceiveUserId("2638468");
obj1.setChannelId(729749L);
obj1.setSourceDesc("alipay");
obj1.setOutBizId("20734hrhk874");
obj1.setTemplateUserId(793492963L);
obj1.setType(1L);
obj1.setSourceId(93749L);
obj1.setDoSync(true);
req.setParam0(obj1);
HuijinRightSendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<huijin_right_send_response>
    <result>
        <error_message>send error</error_message>
        <module>{&quot;rightId&quot;:101376500521106&quot;}</module>
        <error_code>ILLEGAL_ARGUMENT</error_code>
    </result>
</huijin_right_send_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

返回
顶部