Query Order Details

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

Query the order details based on the order ID.

API address

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

Request parameter

Parameter name Type IN Required Description
order_id String false The order ID.

Return parameter

Parameter name Type Description
result ChargingPileOrderDetailDTO The output parameter.

Description of result

Parameter name Type Description
order_id String The order ID.
consumer_uid String The user ID (UID), to be defined by the merchant.
shop_id String The ID of a specified charging station.
shop_name String The name of a specified charging station.
device_id String The device ID.
port String The port number of a device.
order_status String The status of a specified order.
total_amount BigDecimal The total amount of a specified order.
actual_amount BigDecimal The paid amount of a specified order.
start_time Long The start time of service.
end_time Long The end time of service.
pay_success_time Long The time when an order is paid.
finish_time Long The time when an order is actually completed.
gmt_create Long The time when an order is created.
gmt_modified Long The time when an order is modified.
order_sku_list List The purchase price and quantity of an order.

Description of order_sku_list

Parameter name Type Description
goods_name String The name of service price.
sku_id String The ID of service price.
unit_price String The unit price of service.
quantity Integer The purchase quantity.

Request example

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

Return example

{ "order_id": "RO2111238Q2F****", "consumer_uid": "1436664c31c1****", "shop_id": "1436664c41c1****", "shop_name": "Grand Center Charging Station" "device_id": "6c9403ee677df188d5****", "port": "1", "order_status": "INIT", "total_amount": "1.00", "actual_amount": "1.00", "start_time": "1638638857921", "end_time": "1638638857921", "pay_success_time": "1638638857921", "finish_time": "1638638857921", "gmt_create": "1638638857921", "gmt_modified": "1638638857921", "order_sku_list": [ { "goods_name": "Service Price A", "sku_id": "13f366ee8d40****", "unit_price": "1.00", "quantity": 1 } ] }

Error code

For more information, see error code.