查询订单详情
说明
接口地址
GET /v2/order/query
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
order_no | query | string | true | 订单号 |
接口返回
名称 | 类型 | 必选 | 说明 |
---|---|---|---|
code | integer | true | 状态码 |
msg | string | true | 状态说明 |
request_id | string | true | |
data | BuyOrderDetail | true |
返回示例
{
"code": 0,
"msg": "ok",
"request_id": "a06c0308-a527-42e7-aa19-495394af706d",
"data": {
"order_no": "2304143332237281280100",
"order_type": 0,
"resource_type": 1,
"receive_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"price_in_sun": 120,
"freeze_time": 1681481763,
"create_time": 1681481556,
"resource_value": 200000,
"frozen_resource_value": 200000,
"rent_duration": 1,
"rent_time_unit": "h",
"rent_expire_time": 1681485363,
"frozen_tx_id": "",
"pay_time": 1681481556,
"pay_amount": 24,
"refund_amount": 0,
"refund_time": 0,
"is_split": 1,
"status": 9,
"sub_order": [
{
"order_no": "2304146808245381122007",
"order_type": 0,
"resource_type": 1,
"receive_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"price_in_sun": 120,
"freeze_time": 1681481763,
"create_time": 1681481762,
"resource_value": 70273,
"frozen_resource_value": 70273,
"rent_duration": 1,
"rent_time_unit": "h",
"rent_expire_time": 1681485362,
"frozen_tx_id": "aa8b93b2d03b3b496fe4e5a8c99de30b32b9f3d80f4674473b99b3f5f9fb519b",
"pay_time": 1681481556,
"pay_amount": 8.43276,
"refund_amount": 0,
"refund_time": 0,
"is_split": 0,
"status": 9
}
]
}
}
代码示例
curl --location --request GET 'https://feee.io/open/v2/order/query?order_no=<order_no>' \
--header 'key: <key>' \
--header 'User-Agent: Feee.io Client/1.0.0 (https://feee.io)'
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://feee.io/open/v2/order/query?order_no=<Corder_no>"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("key", "<key>")
req.Header.Add("User-Agent", "Feee.io Client/1.0.0 (https://feee.io)")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://feee.io/open/v2/order/query?order_no=%3Corder_no%3E',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'key: <key>',
'User-Agent: Feee.io Client/1.0.0 (https://feee.io)'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import http.client
conn = http.client.HTTPSConnection("feee.io")
payload = ''
headers = {
'key': '<key>',
'User-Agent': 'Feee.io Client/1.0.0 (https://feee.io)'
}
conn.request("GET", "/open/v2/order/query?order_no=<Corder_no>", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://feee.io/open/v2/order/query?order_no=<order_no>")
.method("GET", body)
.addHeader("key", "<key>")
.addHeader("User-Agent", "Feee.io Client/1.0.0 (https://feee.io)")
.build();
Response response = client.newCall(request).execute();