Get withdraw details by id [Private]

Returns information about the withdrawal by its id.

📘

To call any private endpoint, headers should include authorization key(s).

You may use a single API key or a public-private key pair based on your current tasks. Here you may find typical Header configurations for both options.

Method name:/v4/withdraw/private/details/{withdrawId}
Request type:GET

Data dictionary

NameTypeParameter typeRequiredRangeDescription
withdrawIdstringQUERYYES-Withdrawal ID.

You can get withdrawId via "Get withdraw history" endpoint. Also, after creating a withdrawal with "Create a withdraw" endpoint, we return a response with withdrawId.

Exemplary request

const apiKey = "YOUR_API_KEY"; // put here your Api key

const url = "https://api.kuna.io";
const path = "/v4/withdraw/private/details/e9aa15b8-9c19-42eb-800a-026a7a153990";
const options = {
  method: "GET",
  headers: {
    accept: "application/json",
    "Content-Type": "application/json",
    "api-key": apiKey,
  },
};

fetch(url + path, options)
    .then((response) => response.json())
    .then((showResponse) => console.log(showResponse.data));
import requests

api_key = "YOUR_API_KEY"  # put here your Api key

url = "https://api.kuna.io"
path = "/v4/withdraw/private/details/e9aa15b8-9c19-42eb-800a-026a7a153990"
headers = {
    "accept": "application/json",
    "Content-Type": "application/json",
    "api-key": api_key,
}

request = requests.get(url + path, headers=headers)
print(request.json()))

How to call private endpoints here

Swagger here

Response

{
      "id": "e9aa15b8-9c19-42eb-800a-026a7a153990",                                 // Unique identifier of withdrawal
      "amount": "10.75",                                                            // Amount deducted from your account
      "asset": "USDT",                                                              // Withdrawal currency
      "merchantId": "16214228-5c0c-5abc-be6a-c90259b21d4e",                         // Internal ID (not for use)
      "paymentCode": "TRX",                                                         // Blockchain name
      "status": "Processed",                                                        // Withdrawal status
      "type": "Withdraw",                                                           // Transaction type
      "reason": [],                                                                 // Reason for manual transaction processing
      "address": "TL3CWAwviQQYSnzHT4RotCWYnarnunQM46",                              // Withdrawal address
      "memo": "",                                                                   // Withdrawal memo
      "txId": "5ecc4e559b528c57be6723ac960a38211fbd3101ef4b59008452b3bd88c84621",   // Withdrawal transaction hash
      "fee": "0.75",                                                                // Withdrawal fee
      "processedAmount": "10",                                                      // Withdrawal amount
      "createdAt": "2023-06-09T11:33:02.383Z",                                      // Withdrawal creation date
      "updatedAt": "2023-06-09T11:34:25.317Z"                                       // Date of final withdrawal status
}