文档中心 > API类目 > 智慧门店

tmall.popupstore.park.backflow (停车服务数据回流)

停车服务数据回流

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
start_time Date 可选 2019-02-14 00:00:00 开始停车时间,action为arrive时必填
car_type String 可选 宝马 x5 2018 车型号:品牌 型号 年款
car_no String 必须 浙A.66666 车牌号
extend Json 可选 { "key": "value" } json格式的扩展字段
user_nick String 可选 toptest_015 用户混淆nick
action String 必须 arrive 数据回流类型:arrive停车驶入;leave停车驶出;pay停车付费
mall_id Number 必须 123 商圈id
end_time Date 可选 2019-02-14 00:00:00 结束停车时间,action为leave时必填
pay_time Date 可选 2019-02-14 00:00:00 停车缴费时间,action为pay时必填
mobile Number 可选 15988855789 车主手机号
coupon_id String 可选 1235436123 优惠券实例id
park_duration Number 可选 120 停车时长,单位分钟,action为pay时必填

响应参数

名称 类型 示例值 描述
result_dto ResultDto 服务出参对象
  • └ error_message
  • String
  • errormsg
  • 错误信息
  • └ error_code
  • String
  • -1
  • 错误编码
  • └ data
  • Boolean
  • true
  • 回流结果,true回流成功,false回流失败
  • └ success
  • Boolean
  • true
  • 接口调用结果
  • └ extend
  • String
  • { "key": "value" }
  • json格式的扩展字段,预留

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallPopupstoreParkBackflowRequest req = new TmallPopupstoreParkBackflowRequest();
req.setStartTime(StringUtils.parseDateTime("2019-02-14 00:00:00"));
req.setCarType("宝马 x5 2018");
req.setCarNo("浙A.66666");
req.setExtendString("{ \"key\": \"value\" }");
req.setUserNick("toptest_015");
req.setAction("arrive");
req.setMallId(123L);
req.setEndTime(StringUtils.parseDateTime("2019-02-14 00:00:00"));
req.setPayTime(StringUtils.parseDateTime("2019-02-14 00:00:00"));
req.setMobile(15988855789L);
req.setCouponId("1235436123");
req.setParkDuration(120L);
TmallPopupstoreParkBackflowResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_popupstore_park_backflow_response>
    <result_dto>
        <error_message>errormsg</error_message>
        <error_code>-1</error_code>
        <data>true</data>
        <success>true</success>
        <extend>{ &quot;key&quot;: &quot;value&quot; }</extend>
    </result_dto>
</tmall_popupstore_park_backflow_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

返回
顶部