Skip to main content

Get Token Deposits

Returns one page of a token's rental income distributions, newest first. Each row is one distribution started by Rent Token, with the on-chain transaction behind it and the documents attached to it. The individual payouts of a distribution are in Get Token Rents, joined by external_id.

Required permission: token:transactions:view

Request​

GET /v2/admin/tokens/{token_id}/deposits?page=1&per_page=20

Parameters​

NameTypeInDescription
token_idstringpathRequired. Token id.
pageintegerqueryRequired. Page number, starting at 1.
per_pageintegerqueryRequired. Page size, 1 to 100.

Headers​

NameDescription
AuthorizationRequired. Bearer <access_token>

Example​

curl --request GET \
--url '{{baseUrl}}/v2/admin/tokens/67d8774e903bfcbe7eb5d93e/deposits?page=1&per_page=20' \
--header 'Authorization: Bearer <access_token>'

Response​

{
"data": [
{
"id": "6a8b6f02f9129816a6cc7b30",
"token_id": "67d8774e903bfcbe7eb5d93e",
"external_id": 3,
"status": 0,
"contract_created_at": "2025-05-01T10:00:12.381Z",
"total_price": {
"id": "68fe8c129367fd414b227c7a",
"amount": "18",
"decimal": 6,
"symbol": "USDT",
"address": "0x073c0196e516a0e77b1c804d1825fb1bad23895d"
},
"per_price": {
"id": "68fe8c129367fd414b227c7a",
"amount": "0.1",
"decimal": 6,
"symbol": "USDT",
"address": "0x073c0196e516a0e77b1c804d1825fb1bad23895d"
},
"transaction": {
"id": "6a8b5e13f9129816a6cc7a12",
"node_id": "67d6c447f47ff3adafda700d",
"user_id": "",
"token_id": "67d8774e903bfcbe7eb5d93e",
"hash": "0x998a217061da05cf1bf1998470613a488b10908f0964e76a123c4063f91d77c4",
"type": 3,
"status": 3,
"error": null,
"is_api": true,
"created_at": "2025-05-01T09:59:58.104Z"
},
"documents": [
{
"id": "6a8b6f02f9129816a6cc7b31",
"name": "invoice-2025-04.pdf",
"url": "https://bucket.s3.amazonaws.com/dev/deposit/6a8b6f02f9129816a6cc7b30/invoice.pdf?X-Amz-Expires=900&X-Amz-Signature=...",
"type": 1,
"hash": "9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b",
"tx_hash": null,
"created_at": "2025-05-01T09:59:57.950Z"
}
],
"created_at": "2025-05-01T10:00:12.381Z"
}
],
"total": 1,
"page": 1,
"per_page": 20
}

Response Fields​

FieldTypeDescription
data[].idstringDeposit (distribution) id.
data[].token_idstringToken id.
data[].external_idintegerThe distribution's id on chain. The payouts in Get Token Rents carry the same value.
data[].statusinteger0 settled (the money moved), 1 pending on-chain confirmation, 2 canceled because the transaction failed.
data[].contract_created_atstringWhen the distribution was recorded on chain.
data[].total_pricepriceTotal paid out by the distribution.
data[].per_pricepricePaid per token.
data[].transactionobject | nullThe TokenRent transaction behind the distribution, in the shape of a List Token Transactions row: read its status, hash and error. null when the distribution predates the link to its transaction and no match is found.
data[].documents[]arrayDocuments attached to the distribution (invoices, receipts): id, name, url, type, hash, tx_hash and created_at. Removed documents are left out; always an array.
data[].created_atstringWhen the row was created.
totalintegerNumber of distributions.
pageintegerPage number sent in the request.
per_pageintegerPage size sent in the request.

documents[].url is a signed link that opens the document for 15 minutes and is minted on every read; do not store it. A price is {id, amount, decimal, symbol, address} with amount as a decimal string; see Amounts and Percentages.

Errors​

StatusCodeDescription
40010015Validation failed (page or per_page missing or out of range) — see details
40010016token_id is not a valid id
40010001Token not found (token domain 5)
40310005The caller's node does not cover the token's node (node domain 2)

See Errors for the error format and common codes.