文档
测试

新消费标准开电New consumption standard charge

POST
/newPriceStandardCharge

接口描述

应用场景 Application scenarios 新消费标准开电,支持电量、时间、功率收费 New consumption standard charge,support electricity, time, power charge

请求参数

application/x-www-form-urlencoded
参数名
类型
描述
必填
token
String
身份标识 Identification
必填
simId
String
SIM卡id SIM Card Id
必填
portNum
Integer
插座号 Socekt No.
必填
param
Integer
公共参数 Public parameters 注(两个地方带有param参数): Note(two places with ‘param’ parameters 1、获取设备消费标准接口返回值中priceStandardUniteList 1. Get device consumption standard Interface return value in ‘priceStandardUniteList’ 2、查询设备插座状态接口,priceDetail内的priceStandardUniteList Query device socket status interface, ‘priceDetail’in ‘priceStandardUniteList’
必填
payMoney
Double
付款金额 汽车桩订单此字段不能为0,请传真实付款金额 二轮车开电若传0,我方平台将不进行计费,若非0,则将进行计费,订单回调时将消费金额随订单信息回调 二轮车订单如需避免平台返回错误提示余额不足,请先充值,可将此参数设置为0 Payment amount
必填
selectPriceType
Integer
是否开启充满断电 priceStandardUniteList内档位的fullBlackoutForButton值 1、获取设备消费标准接口返回值中priceStandardUniteList 1. Get device consumption standard Interface return value in ‘priceStandardUniteList’ 2、查询设备插座状态接口,priceDetail内的priceStandardUniteList Query device socket status interface, ‘priceDetail’in ‘priceStandardUniteList’ Whether open power off when full 0 不开启 0. Not open 1 开启 1. Open
必填
infoPriceId
Integer
消费标准id consumption standard ID 1、获取设备消费标准接口返回值data中的id 1. Get device consumption standard interface return value ‘data’ in ID 2、查询设备插座状态接口, priceDetail内的id Query device socket status interface, ‘priceDetail’in ID
必填
userId
Integer
用户id User id
可选
chargeBefore
Integer
0 预先付费 1 结束后付费 priceStandardUniteList内档位的chargeBefore值 1、获取设备消费标准接口返回值中priceStandardUniteList 1. Get device consumption standard Interface return value in ‘priceStandardUniteList’ 2、查询设备插座状态接口,priceDetail内的priceStandardUniteList 默认为 0 预先付费
必填
isAdvanceReceive
Integer
priceStandardUniteList内档位的isAdvanceReceive值
必填

响应参数

参数名
类型
描述
必填
data
object
数据字典
必填
portNum
Integer
插座号 Socekt No.
可选
domain
String
域名 Domain name
可选
simId
String
SIM卡id SIM Card Id
可选
resultKey
String
查询充电结果Key Query charging result ‘Key’
可选
orderNum
String
订单号 order number
可选
success
boolean
请求成功与否标识 Identification for request success or no
必填

说明 / 示例

**特别注意事项(请仔细阅读)**: **二轮车:** 返回结果success为true时,请使用查询开电结果接口进行查询,循环查询30秒,当查询开电结果返回success为true,且data数据中result字段为1时才开电成功,若30秒内还未成功可走失败逻辑处理退款 **汽车桩:** 返回结果success为true时,请使用查询充电结果接口进行查询,循环查询30秒,当查询充电结果结果返回success为true 1、data数据中result字段为1时才开电成功; 2、若result字段不为1则代表开电失败可直接进入平台开电失败退款逻辑; 3、超出30秒未查到结果即为指令超时(指令超时分为通讯不良超时,桩与车通讯耗时较长),指令超时不可直接判定设备未正常开电,可进行汽车桩退款核实,时间可与驴充充平台保持一至,即5分钟 循环查询30秒之后:可进入汽车桩退款核实,驴充充平台等待时长为5分钟,5分钟后可通过查询订单详情接口进行查询,若无订单则为失败,有订单则实际已经开电成功 Description: Return result ‘success’ is ‘ture’, Please use the query power-on result interface to query, when query power-on result return ‘success’ is ‘ture’ and ‘data’ in data ‘result’ field is ‘1’ power-on success, otherwise fail Query power-on result interface query: The result is kept for 1 minute, and it can be set to query every 2 seconds or 3 seconds. If it expires, it will be considered a failure. Description: Return result ‘success’ is ‘ture’, Please use the query power-on result interface to query, when query power-on result return ‘success’ is ‘ture’ and ‘data’ in data ‘result’ field is ‘1’ power-on success, otherwise fail Query power-on result interface query: The result is kept for 1 minute, and it can be set to query every 2 seconds or 3 seconds. If it expires, it will be considered a failure. 返回示例 Return the example ``` { "data": { "portNum":5, "domain":"https://center.lbbtech.com", "simId":"865933034812509", "resultKey":"charge_865933034812509_5_15966_", "orderNum":"20190504152521862699" }, "success":true } ```