https://api.sciener.com/v3/electricMeterUser/recharge
Tenants use the gateway to recharge. If Bluetooth operation is required, please refer to the corresponding app's SDK.
After successful recharge, the meter reading interface needs to be actively called to save the latest data to the server.
This interface doesn't require accessToken
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxx71curl --location -g --request POST 'https://api.sciener.com/v3/electricMeterUser/recharge'\2--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \3--data-urlencode 'electricMeterId=3001' \4--data-urlencode 'type=2' \5--data-urlencode 'rechargeAmount=100.00' \6--data-urlencode 'rechargeKwh=100.00' \7--data-urlencode 'date=1625025703000'| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | Assigned client_id from created application |
| date | Long | Y | Current time (timestamp, in milliseconds) |
| electricMeterId | String | Y | Electricity meter ID |
| type | Int | Y | 2- Through the gateway |
| rechargeAmount | Double | Y | Recharge amount |
| executeToken | String | Y | Token used by tenants when topping up |
| Name | Type | Description |
|---|---|---|
| errcode | Int | Error code |
| errmsg | String | Error message |
| description | String | Error Description |
xxxxxxxxxx51{2 "errcode": 0,3 "errmsg": "none error message or means yes",4 "description": "表示成功或是" 5}