文档中心 > API类目 > 闲鱼彩票

alibaba.idle.isv.lottery.writeoff.callback (服务商ISV回调彩票核销状态)

服务商ISV回调彩票核销状态

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
lottery_write_off_call_back_request LotteryWriteOffCallBackRequest 必须 彩票核销回调入参
  • └ idle_request_id
  • String
  • 必须
  • 123456
  • 对应闲鱼兑换彩票的请求id
  • └ lottery_code
  • String
  • 必须
  • xxx
  • 兑换的彩票券码
  • └ trade_no
  • String
  • 必须
  • xxx
  • 服务商订单id
  • └ encrypted_trade_no
  • String
  • 必须
  • xxx
  • 服务商加密后订单id

响应参数

名称 类型 示例值 描述
result IdlePointResult 返回结果
  • └ success
  • Boolean
  • false
  • 是否成功
  • biz_error
  • BizError
  • 业务错误信息
  • └ err_code
  • String
  • PARAM_ILLEGAL
  • 错误码
  • └ err_msg
  • String
  • 参数不合法
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleIsvLotteryWriteoffCallbackRequest req = new AlibabaIdleIsvLotteryWriteoffCallbackRequest();
AlibabaIdleIsvLotteryWriteoffCallbackRequest.LotteryWriteOffCallBackRequest obj1 = new AlibabaIdleIsvLotteryWriteoffCallbackRequest.LotteryWriteOffCallBackRequest();
obj1.setIdleRequestId("123456");
obj1.setLotteryCode("xxx");
obj1.setTradeNo("xxx");
obj1.setEncryptedTradeNo("xxx");
req.setLotteryWriteOffCallBackRequest(obj1);
AlibabaIdleIsvLotteryWriteoffCallbackResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_isv_lottery_writeoff_callback_response>
    <result>
        <success>false</success>
        <biz_error>
            <err_code>PARAM_ILLEGAL</err_code>
            <err_msg>参数不合法</err_msg>
        </biz_error>
    </result>
</alibaba_idle_isv_lottery_writeoff_callback_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

返回
顶部