POST
/trades/cancelTrade
Заголовки
Тіло
Назва
Тип
Опис
uniq_id
string
Унікальний ідентифікатор угоди
Відповідь
{
"send_name": "USDT",
"send_network": "TRC20",
"get_network": "ERC20",
"get_name": "USDT",
"uniq_id": "0sv0c0c02da105aa6b7fbzf1zv05444d8a0ccd4c",
"status": 4,
"payment_wallet": "WalletForPay",
"userPaidHash": "someHash",
"ourHash": "someHash",
"get_creds": "WalletForRecive",
"network_commission": 0,
"date": 1720120863,
"time_expire": 1720142463,
"send_value": "112",
"get_value": "100",
"sbpBank": null,
"exch_type": "yellow",
"recalculation": 1,
"percent_commission": 0.5,
"paid_amount": 0,
"paid_time": 1738777524,
"send_memo": "SomeMemo"
}
Приклад
const options = {
method: "POST",
headers: {
"Content-Type": "application/json",
Y_API_KEY: "Your API Key",
Signature: "e4ae46c268b77ad7fb7d12da1eeb8ad3218779c52c926c63407971da7537848e",
},
body: '{"uniq_id":"0sv0c0c02da105aa6b7fbzf1zv05444d8a0ccd4c"}',
};
fetch("https://api.yellowchanger.com/trades/cancelTrade", options)
.then((e) => e.json())
.then((e) => console.log(e))
.catch((e) => console.error(e));