文档中心 > API类目 > 斑马充电中台开放API

yunos.charge.station.confirm (充电项目- 充电确认页)

充电项目- 充电确认页

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
common_param String 必须 RMARK oem参数
request_param String 必须 ["operatorId","connectorId"] 枪数据

响应参数

名称 类型 示例值 描述
result Response 返回参数
  • data
  • StationConfirmInfoCO
  • 返回实体
  • └ connector_tags
  • String []
  • 枪标签
  • └ park_fee
  • String
  • 我就是要收费
  • 停车费
  • └ connector_type_desc
  • String
  • 交流慢充
  • 枪类型
  • └ connector_id
  • String
  • 3702121094108
  • 枪id
  • └ voltage
  • Number
  • 220
  • 电压
  • └ current
  • Number
  • 32
  • 电流
  • └ brand_type
  • Number
  • 2
  • 品牌类型
  • └ station_level
  • Number
  • 3
  • 站点等级
  • └ connector_name
  • String
  • 108号交流
  • 枪名称
  • └ station_name
  • String
  • 特来电互联互通外部测试站重构410测试22
  • 站点名称
  • └ connector_status
  • Number
  • 2
  • 枪状态
  • └ power
  • Number
  • 7
  • 功率
  • └ station_categories
  • Number []
  • 站点服务类型
  • └ operator_id
  • String
  • 395815801
  • 运营商id
  • └ notice
  • String
  • 这是一条公告,希望你知道
  • 公告
  • └ station_id
  • String
  • 3702121094
  • 站点id
  • connector_period_price
  • ConnectorPeriodPriceInfoCO []
  • 返回时段价
  • └ period_num
  • Number
  • 1
  • 排序值
  • └ start_time
  • String
  • 000000
  • 起始时间
  • └ electric_price
  • String
  • 1.1
  • 电费
  • └ service_price
  • String
  • 0.5
  • 服务费
  • └ discount
  • String
  • 0.88
  • 折扣比例
  • └ service_discount_price
  • String
  • 0.44
  • 折扣后的服务费
  • └ used_times
  • Number
  • 2
  • 最近七天使用次数
  • └ latest_charge_time
  • String
  • 2023-05-24 10:48:51
  • 最近充电使用时间
  • └ success
  • Boolean
  • true
  • 返回成功
  • └ err_code
  • String
  • 1001
  • 错误码
  • └ err_message
  • String
  • 系统异常
  • 错误原因

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosChargeStationConfirmRequest req = new YunosChargeStationConfirmRequest();
req.setCommonParam("RMARK");
req.setRequestParam("[\"operatorId\",\"connectorId\"]");
YunosChargeStationConfirmResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<yunos_charge_station_confirm_response>
    <result>
        <data>
            <park_fee>我就是要收费</park_fee>
            <connector_type_desc>交流慢充</connector_type_desc>
            <connector_id>3702121094108</connector_id>
            <voltage>220</voltage>
            <current>32</current>
            <brand_type>2</brand_type>
            <station_level>3</station_level>
            <connector_name>108号交流</connector_name>
            <station_name>特来电互联互通外部测试站重构410测试22</station_name>
            <connector_status>2</connector_status>
            <power>7</power>
            <operator_id>395815801</operator_id>
            <notice>这是一条公告,希望你知道</notice>
            <station_id>3702121094</station_id>
            <connector_period_price>
                <connector_period_price_info_c_o>
                    <period_num>1</period_num>
                    <start_time>000000</start_time>
                    <electric_price>1.1</electric_price>
                    <service_price>0.5</service_price>
                    <discount>0.88</discount>
                    <service_discount_price>0.44</service_discount_price>
                </connector_period_price_info_c_o>
            </connector_period_price>
            <used_times>2</used_times>
            <latest_charge_time>2023-05-24 10:48:51</latest_charge_time>
        </data>
        <success>true</success>
        <err_code>1001</err_code>
        <err_message>系统异常</err_message>
    </result>
</yunos_charge_station_confirm_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

返回
顶部