Open Platform
Skip to content

Generate an executeToken that can be used for recharges ​

https://cnapi.sciener.com/v3/waterMeter/createExecuteToken

Before both gateway recharge and APP SDK Bluetooth recharge, you need to request this interface to obtain the executeToken.

Then, pass the obtained executeToken as a parameter to either the gateway top-up or the APP SDK Bluetooth recharge.

1 Request example ​

POST, ContentType:application/x-www-form-urlencoded

json
curl --location -g --request POST 'https://cnapi.sciener.com/v3/waterMeter/createExecuteToken'\
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'waterMeterId=3001' \
--data-urlencode 'rechargeM3=100' \
--data-urlencode 'rechargeAmount=100' \
--data-urlencode 'date=1625025703000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYAssigned client_id from created application
accessTokenStringYAccess token, obtain by calling get access token API
dateLongYCurrent time (timestamp, in milliseconds)
waterMeterIdStringYWater Meter ID
rechargeM3DoubleYRecharge warter amount
rechargeAmountStringYRecharge money amount

3 Response and example ​

NameTypeDescription
executeTokenStringexecuteToken
json
{
    "executeToken": 11223344
}
CopyRight © 2012-2026 Sciener.All Rights Reserved