接口地址

POST  https://web.apitrx.com/record

请求參數

參數名稱類型說明範例
apikeystringTG機器人獲取的apikey83928AFB-14A5-4878-A63D-128467830293
orderIdint筆數列表介面獲取的訂單id202512211429050459
currentint頁碼1
pageSizeint每頁數量20

返回參數

{
"code":200,
"data":[
    {
        "orderId":202512211429050459,
        "orderType":0,
        "receiver":"TKmPvaHQJirYwFdxpfuEJ1V52KDNw11111",
        "totalCount":5,
        "finishCount":5,
        "stayCount":0,
        "remainingCount":0,
        "currentCount":1,
        "status":1,
        "usdtTxid":"f97b42dae81......",
        "txid":"b3357273d95......",
        "usageQuantity":130285,
        "createdAt":1764772005
    },
    {
        "orderId":202512211429050459,
        "orderType":0,
        "receiver":"TKmPvaHQJirYwFdxpfuEJ1V52KDNw11111",
        "totalCount":5,
        "finishCount":4,
        "stayCount":0,
        "remainingCount":1,
        "currentCount":1,
        "status":1,
        "usdtTxid":"ff807c5ad4f94......",
        "txid":"a076d397f988d......",
        "usageQuantity":130285,
        "createdAt":1764771957
    }],
"message":"查询成功",
"total":5
}
參數名稱類型說明範例
codeint200成功,其他為查詢失敗200/500
messagestring提示信息查詢成功
data[0].orderIdint訂單ID202512211429050459
data[0].orderTypeint筆數類型1筆數套餐 2智能筆數 3帳號代扣131k計1筆 4帳號代扣131k計2筆
data[0].receiverstring接收地址TKmPvaHQJirYwFdxpfuEJ1V52KDNw11111
data[0].totalCountint總筆數10
data[0].finishCountint完成筆數4
data[0].stayCountint滯留筆數0
data[0].remainingCountint剩餘筆數6
data[0].currentCountint當前消耗筆數1
data[0].statusint0關閉 1運行中 2結束 3取消1
data[0].usdtTxidstring觸發轉帳的hashff807c5ad4f94......
data[0].txidstring委託的hasha076d397f988d......
data[0].usageQuantityint本次使用能量130285
data[0].createdAtint觸發時間(秒)1764771957

代碼示例

import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
import org.json.JSONObject;

public class PostJsonRequest {
    public static void main(String[] args) throws Exception {
        URL url = new URL("https://web.apitrx.com/record");
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        conn.setRequestMethod("POST");
        conn.setRequestProperty("Content-Type", "application/json");
        conn.setDoOutput(true);

        JSONObject json = new JSONObject();
        json.put("apikey", "83928AFB-14A5-4878-A63D-128467830293");
        json.put("orderId", "202512211429050459");
        json.put("current", 1);
        json.put("pageSize", 20);

        try (OutputStream os = conn.getOutputStream()) {
            os.write(json.toString().getBytes("utf-8"));
        }

        BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream(), "utf-8"));
        StringBuilder sb = new StringBuilder();
        String line;
        while ((line = br.readLine()) != null) sb.append(line);

        JSONObject res = new JSONObject(sb.toString());
        System.out.println("Code: " + res.getInt("code"));
        System.out.println("Message: " + res.getString("message"));
    }
}
package main

import (
    "bytes"
    "encoding/json"
    "fmt"
    "net/http"
    "io/ioutil"
)

func main() {
    url := "https://web.apitrx.com/record"
    payload := map[string]interface{
        "apikey": "83928AFB-14A5-4878-A63D-128467830293",
        "orderId": "202512211429050459",
        "current": 1,
        "pageSize": 20
    }

    jsonData, _ := json.Marshal(payload)
    resp, err := http.Post(url, "application/json", bytes.NewBuffer(jsonData))
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    body, _ := ioutil.ReadAll(resp.Body)

    var res struct {
        Code    int64    `json:"code"`
        Message string `json:"message"`
    }

    json.Unmarshal(body, &res)

    fmt.Println("Code:", res.Code)
    fmt.Println("Message:", res.Message)
}
import requests

url = "https://web.apitrx.com/record"
payload = {
    "apikey": "83928AFB-14A5-4878-A63D-128467830293",
    "orderId": "202512211429050459",
    "current": 1,
    "pageSize": 20
}

response = requests.post(url, json=payload)
res = response.json()

data = res["data"]
print("Code:", res["code"])
print("Message:", res["message"])
<?php
$url = "https://web.apitrx.com/record";
$data = [
    "apikey" => "83928AFB-14A5-4878-A63D-128467830293",
    "orderId" => "202512211429050459",
    "current" => 1,
    "pageSize" => 20
];

$options = [
    "http" => [
        "header" => "Content-Type: application/json\r\n",
        "method" => "POST",
        "content" => json_encode($data)
    ]
];

$context = stream_context_create($options);
$response = file_get_contents($url, false, $context);
$result = json_decode($response, true);

echo "Code: " . $result["code"] . "\n";
echo "Message: " . $result["message"] . "\n";
?>
curl -s -X POST https://web.apitrx.com/record \
     -H "Content-Type: application/json" \
     -d '{"apikey":"83928AFB-14A5-4878-A63D-128467830293","orderId":"202512211429050459","current":1,"pageSize":20}'
Last Updated: