Purchase Charging Service

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

Provide a purchase entry based on the charging station and service price policy, including the automatic start and end features.

API address

POST: /v1.0/iot-02/charging-pile/device/order

Request parameter

Parameter name Type IN Required Description
req ChargingPileOrderAddReq false The input parameter.

Description of req

Parameter name Type IN Required Description
consumer_uid String false The user ID (UID).
sku_id String false The ID of a specified price policy.
device_id String false The device ID of a charger.
port String false The port number.
quantity Integer false The unit quantity.

Return parameter

Parameter name Type Description
result String The order ID.

Request example

POST: /v1.0/iot-02/charging-pile/device/order
{ "consumer_uid": "bay1636422544378***", "sku_id": "143fc24a8cc", "device_id": "6c3fe18fc5ea3f603f****", "port": "1", "quantity": 2 }

Return example

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

Error code

For more information, see error code.