文档中心 > API类目 > 天猫校园共享前端类目

tmall.xiaoyuan.share.ride.unlock (共享骑行开锁接口)

共享骑行开锁接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 RideUnlockRequest 可选 入参
  • └ isv_order_create_time
  • String
  • 可选
  • 2
  • 开锁时间
  • └ journey_no
  • Number
  • 可选
  • 2
  • 行程编号
  • └ mix_buyer_id
  • String
  • 可选
  • a1
  • 用户加密ID
  • └ ride_no
  • String
  • 可选
  • 2
  • 车辆编号

响应参数

名称 类型 示例值 描述
result Result 出参
  • └ code
  • String
  • 1
  • 代码
  • └ fail
  • String
  • false
  • 失败
  • └ msg
  • String
  • 2
  • 消息
  • └ page_num
  • String
  • 1
  • 页码
  • └ success
  • String
  • true
  • 成功
  • └ total_num
  • String
  • 2
  • 总条数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallXiaoyuanShareRideUnlockRequest req = new TmallXiaoyuanShareRideUnlockRequest();
TmallXiaoyuanShareRideUnlockRequest.RideUnlockRequest obj1 = new TmallXiaoyuanShareRideUnlockRequest.RideUnlockRequest();
obj1.setIsvOrderCreateTime("2");
obj1.setJourneyNo(2L);
obj1.setMixBuyerId("a1");
obj1.setRideNo("2");
req.setParam0(obj1);
TmallXiaoyuanShareRideUnlockResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_xiaoyuan_share_ride_unlock_response>
    <result>
        <code>1</code>
        <fail>false</fail>
        <msg>2</msg>
        <page_num>1</page_num>
        <success>true</success>
        <total_num>2</total_num>
    </result>
</tmall_xiaoyuan_share_ride_unlock_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

返回
顶部