curl -X POST \ https://{BASE_URI}/api/tron/recharge/stop_order
{
"warning_address": "TQCgLnDCtb3..."
}
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| warning_address | string | 是 | 要停止的 TRON 钱包地址 |
{
"code": 1000,
"message": "success",
"data": "OK" // 成功终止订单
}
const axios = require('axios');
const data = {
"warning_address": "TQCgLnDCtb3..."
};
axios.post(
'https://{BASE_URI}/api/tron/recharge/stop_order', // 请求地址 URI
data,
{
headers: {
'Content-Type': 'application/json',
'uu-api-key': 'your_api_key'
},
},
);
<?php
$ch = curl_init('https://{BASE_URI}/api/tron/recharge/stop_order');
$data = ['warning_address' => 'TQCgLnDCtb3...'];
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'uu-api-key: your_api_key'
],
CURLOPT_POSTFIELDS => json_encode($data),
]);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($response === false) {
$error = curl_error($ch);
}
curl_close($ch);
echo $response;