Получить юнит
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
{
"id": 239,
"createdAt": "2025-10-16T12:18:50.778Z",
"updatedAt": "2025-10-16T12:18:50.778Z",
"uuid": "b8234610-677a-4e0a-814d-ebe494c15625",
"name": "DEMO",
"rootUnitId": 49,
"parentId": null,
"adminIds": [],
"description": null,
"isActive": true,
"logo": null,
"wallets": [
{
"id": 2625,
"createdAt": "2025-10-16T12:18:54.604Z",
"updatedAt": "2025-10-31T04:00:21.210Z",
"subId": null,
"clientId": null,
"unitId": 239,
"invoiceId": null,
"name": null,
"currency": "BTC",
"network": "Bitcoin",
"balance": 0,
"transit_balance": 0,
"service_fee_balance": 0,
"walletAddress": "tb1qvt8lytc4v6kxua42plvaq5mrlcsa8m5rjs8eca",
"riskScore": 0,
"total_deposits": "0"
},
],
"children": [
{
"id": 244,
"createdAt": "2025-10-17T11:13:22.886Z",
"updatedAt": "2025-10-17T11:13:22.886Z",
"uuid": "988aa119-c1b4-4cd4-8d90-adb9a9ce0a55",
"name": "It is API unit",
"rootUnitId": 49,
"parentId": 239,
"adminIds": [],
"description": "Trying to create unit inside root UNIT",
"isActive": true,
"logo": null,
"wallets": [
{
"id": 2640,
"createdAt": "2025-10-17T11:14:59.842Z",
"updatedAt": "2025-10-31T04:00:08.115Z",
"subId": null,
"clientId": null,
"unitId": 244,
"invoiceId": null,
"name": "wallet-name-for-API",
"currency": "TRX",
"network": "TRC20",
"balance": 6.75,
"transit_balance": 0,
"service_fee_balance": 0,
"walletAddress": "THioEj9NiweLjK9UgD63zpMR22H9ePfdPu",
"riskScore": 0.1,
"total_deposits": "50000000"
},
],
"children": [],
"totalBalances": {
"TRX": "6.75",
"USDT": "49.95",
"ETH": "0",
"USDC": "0"
}
},
{
"id": 245,
"createdAt": "2025-10-27T08:24:09.579Z",
"updatedAt": "2025-10-27T08:24:09.579Z",
"uuid": "b99749de-8acc-47a3-ba8e-bcd502c05086",
"name": "It is API unit second",
"rootUnitId": 49,
"parentId": 239,
"adminIds": [],
"description": "Trying to create unit inside root UNIT",
"isActive": true,
"logo": null,
"wallets": [],
"children": [],
"totalBalances": {}
}
],
"totalBalances": {
"TRX": "51.278",
"USDT": "133.245545",
"ETH": "0.000000000425698452",
"USDC": "0",
"BTC": "0"
}
}{
"statusCode": 401,
"message": "ApiKey: undefined unauthorized",
"error": "Unauthorized"
}{
"statusCode": 500,
"message": "Internal server error"
}