Save Service Price

Last Updated on : 2023-06-21 07:13:02download

Maintain the price policies of all devices at a specified charging station.

API address

POST: /v1.0/iot-02/charging-pile/shop/goods

Request parameter

Parameter name Type IN Required Description
charging_pile_save_shop_goods_req ChargingPileSaveShopGoodsReq false The input parameter.

Description of charging_pile_save_shop_goods_req

Parameter name Type IN Required Description
shop_id String false The ID of a specified charging station.
goods_name String false The name of a specified price policy.
time_unit String false The time unit.
  • MINUTES: in minutes.
  • HOUR: in hours.
limit_min_time Integer false The minimum purchase time.
limit_max_time Integer false The maximum purchase time.
price BigDecimal false The price per unit time.

Return parameter

Parameter name Type Description
result String The returned result.
  • true: Started successfully.
  • false: Failed to start it.

Request example

POST: /v1.0/iot-02/charging-pile/shop/goods
{ "shop_id": "12d1b823a580****", "goods_name": "Policy name", "time_unit": "HOUR", "limit_min_time": "Minimum purchase time", "limit_max_time": "Maximum purchase time", "price": "1.00" }

Return example

{ "result": true, "t": 1630056214213, "success": true }

Error code

For more information, see error code.