文档
测试

根据simid获取消费标准Get consumption standard

POST
/getPriceStandard

接口描述

应用场景 Application scenarios 获取消费标准 Obtain consumption standard

请求参数

application/x-www-form-urlencoded
参数名
类型
描述
必填
token
String
身份标识 Identification
必填
simId
String
设备id,设备标识(IMEI号) Device identity (IMEI number)
必填

响应参数

参数名
类型
描述
必填
success
boolean
请求成功与否标识 Identification for request success or no
必填
data
object
收费明细
必填
chargeType
Integer
收费方式(Payment Method) 0、限定充值余额(Max Top-up Balance) 1、预收款(Prepaid
可选
coinParam
Integer
投币用第一档参数 Coin operated: First gear parameter
可选
createUserId
Integer
创建用户ID Create User ID
可选
deviceType
String
所支持的设备类型 Supported device types
可选
electricPrice
Integer
电费单价(type =2) 单位:分 Unit price of electricity Unit: cents
可选
electricServiceFee
Double
充电服务费(type =2) 单位:分 Charging service fee Unit: points
可选
fullBlackout
Integer
0、关闭充满断电(Turnoff ‘Power off when full’) 1、开户充满断电(Turnon ‘Power off when full’) 2、开户充满断电并选择X元充满(Turnon ‘Power off when full’, Set ‘ Pay X USD Charge Full’)
可选
fullPrice
Integer
X元充满价格 单位:分 Full Charge Price, Unit: Cent
可选
fullPriceYuan
Integer
X元充满价格 单位:元 Full Charge Price, Unit: USD
可选
id
Integer
消费标准id Consumption Standard iD
可选
limitMoney
Integer
最低余额 单位:分 Minimum Balance Unit: Cent
可选
limitMoneyYuan
Integer
最低余额 单位:元 Minimum balance Unit:USD
可选
maxTime
Integer
最大允许充电时长 单位:分钟 Maximum allowable charging time Unit: Minutes
可选
name
String
消费标准名称 Consumption Standard Name
可选
noticeList
Json
消费标准详细介绍 Consumption Standard Description
可选
ownerId
Integer
公众号ID Official Account ID
可选
priceStandardCustomizeList
Json
自定义时间详情list(type = 0 显示) Custom time details list
可选
endTime
Long
结束时间戳(毫秒
必填
id
long
id
必填
price
Integer
单价
必填
priceStandardId
Integer
消费标准主表id
必填
priceUnit
String
单价单位
必填
priceYuan
Integer
单价 单位:元
必填
startTime
Long
开始时间戳(毫秒)
必填
time
Integer
充电时长
必填
timeUnit
String
充电时长单位
必填
priceStandardUniteList
Json
消费标准单价详情list Consumption standard unit price details list
可选
endTime
Long
结束时间(End time)
可选
fullBlackoutForButton
Integer
按钮上是否开始充满断电 Activate “ Power off when full” by press the button 0、关闭充满断电(Turnoff “ Power off when full”) 1、开户充满断电(Turnon “ Power off when full”) 2、开户充满断电并选择X元充满(Turnon“ Power off when full”and set ‘ Pay X USD Charge Full’)
可选
id
Integer
可选
isAdvanceReceive
Integer
是否收了预收款(Accounts payable (YES OR NOT))
可选
originalMoney
Double
是否收了预收款(Accounts payable (YES OR NOT))
可选
param
Integer
元素(Element)
可选
paramUnit
String
元素单位(Element Unit)
可选
paramUnitName
String
时间名称(分、小时) Time’s name (Minute、Hour)
可选
paramView
Double
结果单位显示 Result unit display
可选
price
Integer
单价 Unit Price
可选
pricePay
Double
实际支付价格 Actual paid price
可选
priceUnit
String
单价单位 Unit of Price
可选
priceUnitName
String
单价单位名称 Name of Unit Price
可选
priceView
Double
结合单位显示的单价 Price Display ( Values and units)
可选
startTime
Long
开始时间 Start Time
可选
realTimeCharge
Integer
是否开户实时计费 Real-time billing 0、关闭(Turnoff) 1、开启(Turnon)
可选
refundName
String
退款方式说明(Refund Statement)
可选
refundType
Integer
退款方式(Refund Method) 0、退余额(Refund Balance) 1、原路退回(Refund to the payment account
可选
remark
String
备注(Note)
可选
totalElectricFee
BigDecimal
每度电总费用(Total cost per kilowatt-hour)
可选
totalElectricFeeYuan
Integer
每度电总费用 单位:元(Total cost per kilowatt-hour Unit: USD)
可选
type
Integer
消费标准类型(Consumption Standard Type)'0、自定义时间;1、功率分段;2、电量计费'
可选
viewType
Integer
显示开电方式(Power-on display mode) 1、时间(Time) 2、金额(Money) 3、电量(Electricity)
可选
priceStandardElectric
object
按电量详情详情list(type = 2 显示)
可选
id
int
主键
必填
price
int
单价(分/度) Unit Price
必填
serviceFee
int
服务费单价(分/度) Service Unit Price
必填
serviceFeeType
int
服务费类型(0、电量,1、时间) Service Type(0、electric,1、time)
必填
serviceFeeMax
int
服务费上限(分) Service Fee Max
必填
priceStandardId
int
消费标准主表id Price Standard Id
必填
startTime
Long
开始时间戳(毫秒)Start Time
必填
endTime
Long
结束时间戳(毫秒)End Time
必填
priceStandardElectricList
可选

说明 / 示例

返回示例 Return the example 按功率计费 ``` { "data": { "chargeType":1, "coinParam":100, "createUserId":1918, "deviceType":"[7,1]", "fullBlackout":2, "fullPrice":300, "fullPriceYuan":3, "id":285, "limitMoney":123, "limitMoneyYuan":1.23, "maxTime":800, "name":"POWER", "noticeList":[ "设备开启了3.0元充满自停(Active Power off when full with 3 USD)", "1元/1小时(0瓦-25瓦)(1USD/HOUR(0W-25W))" ], "ownerId":0, "priceStandardUniteList":[ { "fullBlackoutForButton":2, "isAdvanceReceive":1, "originalMoney":0, "param":300, "paramUnitName":"3.0元", "pricePay":3, "priceUnitName":"充满自停(Poweroff when full)" }, { "fullBlackoutForButton":0, "isAdvanceReceive":1, "originalMoney":1, "param":100, "paramUnit":"yuan", "paramUnitName":"元", "paramView":1, "pricePay":1, "priceUnitName":"按功率计费(Charge by power)" } ], "realTimeCharge":1, "refundName":"原路退回", "refundType":1, "remark":"", "totalElectricFee":0, "totalElectricFeeYuan":0, "type":1, "viewType":2, "windowNotice":"您选择的是充满自停方式充电,设备最多可充:3.0元,中途中断充电,系统不退费(You are choosing Power off when full, max 3 USD. If power off when charging, won’t refund)" }, "success":true } ``` 自定义时间 ``` { "data": { "chargeType":1, "coinParam":120, "createUserId":1910, "deviceType":"[1,4]", "fullBlackout":1, "fullPrice":600, "fullPriceYuan":6, "id":326, "limitMoney":400, "limitMoneyYuan":4, "maxTime":800, "name":"customtime_lmh", "noticeList":[ "设备开启了充满自停", "1.0元2.0小时", "2.0元5.0小时" ], "ownerId":0, "priceStandardUniteList":[ { "fullBlackoutForButton":1, "isAdvanceReceive":1, "originalMoney":6.67, "param":800, "paramUnitName":"充满自停(Poweroff when full)", "pricePay":0, "priceUnitName":"按充满计费(Charge by full)" }, { "endTime":57599000, "fullBlackoutForButton":0, "id":993, "isAdvanceReceive":1, "originalMoney":1, "param":120, "paramUnit":"hour", "paramUnitName":"小时(hour)", "paramView":2, "price":100, "pricePay":1, "priceUnit":"yuan", "priceUnitName":"元(usd)", "priceView":1, "startTime":-28800000 }, { "endTime":57599000, "fullBlackoutForButton":0, "id":994, "isAdvanceReceive":1, "originalMoney":2, "param":300, "paramUnit":"hour", "paramUnitName":"小时(hour)", "paramView":5, "price":200, "pricePay":2, "priceUnit":"yuan", "priceUnitName":"元(usd)", "priceView":2, "startTime":-28800000 } ], "realTimeCharge":1, "refundName":"退余额(refund to blance)", "refundType":0, "remark":"", "totalElectricFee":0, "totalElectricFeeYuan":0, "type":0, "viewType":1 }, "success":true } ``` 按电量计费 ``` { "data": { "chargeType":0, "coinParam":100, "createUserId":1910, "deviceType":"[1]", "electricPrice":100, "electricServiceFee":100, "fullBlackout":0, "fullPrice":500, "fullPriceYuan":5, "id":325, "limitMoney":125, "limitMoneyYuan":1.25, "maxTime":800, "name":"new_power", "noticeList":[ "电费单价:1元/度;服务费单价:1元/度" ], "ownerId":0, "priceStandardUniteList":[ { "fullBlackoutForButton":0, "isAdvanceReceive":1, "originalMoney":1, "param":100, "paramUnit":"yuan", "paramUnitName":"元", "paramView":1, "pricePay":1, "priceUnitName":"按电量计费(charge by electric)" }, { "fullBlackoutForButton":0, "isAdvanceReceive":1, "originalMoney":2, "param":200, "paramUnit":"yuan", "paramUnitName":"元", "paramView":2, "pricePay":2, "priceUnitName":"按电量计费(charge by electric)" } ], "realTimeCharge":0, "refundName":"退余额(refund to balance)", "refundType":0, "remark":"", "totalElectricFee":2, "totalElectricFeeYuan":2, "type":2, "viewType":2 }, "success":true } ```