taobao.taojie.parking.parkcouponinfo.get (查询停车 优惠券的有效性)

查询停车 优惠券的有效性

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
park_id String 必须 yintao01 停车场标识
discount_shop_parking_code String 必须 0ebbcccfee18d7ad1aebc5b135ffa906 扫描或者手工填入的购物小票信息
type Number 必须 1 购物小票的分发类型
car_no String 可选 浙A12345 车牌号或者停车卡号

响应参数

名称 类型 示例值 描述
details_list ParkingDiscountDetailVOO [] 优惠信息
  • └ coupon_id
  • String
  • 1244455
  • 优惠标识信息
  • └ start_time
  • String
  • 2015-10-20 00:00:00
  • 优惠生效的起始时间
  • └ park_id
  • String
  • abd
  • 停车场标识
  • └ discount_type
  • Number
  • 1
  • 优惠类型
  • └ reason
  • String
  • 过期的优惠券
  • 优惠不能使用的理由
  • └ issuer_type
  • Number
  • 1
  • 优惠分发方类型
  • └ priority
  • Number
  • 1
  • 优惠优先级
  • └ calculate_type
  • Number
  • 1
  • 优惠计算类型
  • └ issue_id
  • String
  • miaojie
  • 优惠分发方标识
  • └ discount_value
  • Number
  • 10
  • 优惠的值
  • └ can_use
  • Boolean
  • false
  • 优惠是否可用
  • └ discount_desc
  • String
  • 喵街优惠
  • 优惠描述
  • └ end_time
  • String
  • 2015-10-20 00:00:00
  • 优惠生效的结束时间

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TaojieParkingParkcouponinfoGetRequest req = new TaojieParkingParkcouponinfoGetRequest();
req.setParkId("yintao01");
req.setDiscountShopParkingCode("0ebbcccfee18d7ad1aebc5b135ffa906");
req.setType(1L);
req.setCarNo("浙A12345");
TaojieParkingParkcouponinfoGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<taojie_parking_parkcouponinfo_get_response>
    <details_list>
        <parking_discount_detail_v_o_o>
            <coupon_id>1244455</coupon_id>
            <start_time>2015-10-20 00:00:00</start_time>
            <park_id>abd</park_id>
            <discount_type>1</discount_type>
            <reason>过期的优惠券</reason>
            <issuer_type>1</issuer_type>
            <priority>1</priority>
            <calculate_type>1</calculate_type>
            <issue_id>miaojie</issue_id>
            <discount_value>10</discount_value>
            <can_use>false</can_use>
            <discount_desc>喵街优惠</discount_desc>
            <end_time>2015-10-20 00:00:00</end_time>
        </parking_discount_detail_v_o_o>
    </details_list>
</taojie_parking_parkcouponinfo_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>

错误码解释

错误码 错误描述 解决方案
isp.http-read-timeout 链接ISV超时 检查网络状况

API工具

如何获得此API

FAQ

返回
顶部