Update Price Policy

Last Updated on : 2023-06-21 07:12:58download

Update the price policy set by a charging station.

API address

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

Request parameter

Parameter name Type IN Required Description
charging_pile_update_goods_req ChargingPileUpdateGoodsReq false The input parameter.

Description of charging_pile_update_goods_req

Parameter name Type IN Required Description
sku_id String false The ID of a specified price policy.
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 quantity of unit time. Minimum value: 1.
limit_max_time Integer false The maximum purchase quantity of unit time. Maximum value: 24.
price BigDecimal false The price per unit time.

Return parameter

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

Request example

PUT: /v1.0/iot-02/charging-pile/shop/goods
{ "sku_id": "12fb3dd7b680b***", "goods_name": "Policy name", "time_unit": "HOUR", "limit_min_time": "Minimum purchase quantity of unit time", "limit_max_time": "Maximum purchase quantity of unit time", "price": "1.00" }

Return example

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

Error code

For more information, see error code.