Skip to main content

Get Node Payments by ID

Lists payments/transactions for the specified node with pagination.

Request

GET /v2/admin/nodes/{node_id}/transactions?page={page}&per_page={per_page}

Parameters

NameTypeInDescription
node_idstringpathRequired. The ID of the node

Query Parameters

NameTypeRequiredDescription
pageintegerNoPage number (default: 1)
per_pageintegerNoItems per page (default: 20)

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication

Example

curl --location '\{\{baseUrl\}\}/v2/admin/nodes/665ae536a6392b75cfd40352/transactions?page=1&per_page=10' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJRCI6IjhmMzEwOWExLTYyMmMtNDVhZC1hYjI4LTg0ODE5N2ZiMDYwYSIsImV4cGlyYXRpb24iOjE3NjI5NDg5NTksInN1cGVydmlzb3JFbWFpbCI6InViZXJAYXBleC5jb20iLCJzdXBlcnZpc29ySUQiOiI2NjViMzcyZjNhNzJkN2QwNzkxNTk2YmEiLCJzdXBlcnZpc29yTm9kZUlEIjoiNjY1YWU1MzZhNjM5MmI3NWNmZDQwMzUyIiwic3VwZXJ2aXNvck5vZGVJbnRJRCI6MSwic3VwZXJ2aXNvck5vZGVQYXRoIjoiMSIsInN1cGVydmlzb3JSb2xlSUQiOiI2NjVhZTc5NjEwY2UyMTZkYmMzNWM5M2IiLCJzdXBlcnZpc29yUm9sZVByaW9yaXR5IjoxMDB9.OAK93_mbJET99ztAyvSbh2x-NY2wbR42dyaZZlPJyqs'

Response

{
"data": [
{
"id": "69120e5fe5064fdeaef6f057",
"node_id": "665ae536a6392b75cfd40352",
"user_id": "665b372f3a72d7d0791596ba",
"reference_id": null,
"data": null,
"type": 11,
"status": 2,
"error": null,
"created_at": "2025-11-10T16:10:07.155Z"
},
{
"id": "69120bd1e5064fdeaef6f056",
"node_id": "665ae536a6392b75cfd40352",
"user_id": "665b372f3a72d7d0791596ba",
"reference_id": null,
"data": null,
"type": 11,
"status": 2,
"error": null,
"created_at": "2025-11-10T15:59:13.317Z"
},
{
"id": "69120bb8e5064fdeaef6f055",
"node_id": "665ae536a6392b75cfd40352",
"user_id": "665b372f3a72d7d0791596ba",
"reference_id": null,
"data": null,
"type": 11,
"status": 2,
"error": null,
"created_at": "2025-11-10T15:58:48.546Z"
},
{
"id": "691206684a33c302dce8f4b1",
"node_id": "665ae536a6392b75cfd40352",
"user_id": "665b372f3a72d7d0791596ba",
"reference_id": null,
"data": null,
"type": 21,
"status": 4,
"error": "Code: -1, Domain: 0, Message: current user id not found\nStackTrace:github.com/piggystats/apex/contexts/admin/application/handlers.(*Wallet).CallContract\n\t/Users/burkaydurdu/Projects/Personal/Apex/Admin/Server/apex-admin/contexts/admin/application/handlers/wallet.go:151\ngithub.com/piggystats/apex/contexts/admin/async/consumers/unsetcategoryfeebyplatformowner.(*UnsetCategoryFeeByPlatformOwnerCustodial).Consume\n\t/Users/burkaydurdu/Projects/Personal/Apex/Admin/Server/apex-admin/contexts/admin/async/consumers/unsetcategoryfeebyplatformowner/unset_category_fee_by_platform_owner_custodial.go:65\ngithub.com/piggystats/apex/internal/persistence/rabbitmq.(*Client).deliver.func1\n\t/Users/burkaydurdu/Projects/Personal/Apex/Admin/Server/apex-admin/internal/persistence/rabbitmq/client.go:333\ngithub.com/piggystats/apex/internal/persistence/rabbitmq.Do\n\t/Users/burkaydurdu/Projects/Personal/Apex/Admin/Server/apex-admin/internal/persistence/rabbitmq/try.go:10\ngithub.com/piggystats/apex/internal/persistence/rabbitmq.(*Client).deliver\n\t/Users/burkaydurdu/Projects/Personal/Apex/Admin/Server/apex-admin/internal/persistence/rabbitmq/client.go:292\ngithub.com/piggystats/apex/internal/persistence/rabbitmq.(*Client).RunConsumers.func1.1\n\t/Users/burkaydurdu/Projects/Personal/Apex/Admin/Server/apex-admin/internal/persistence/rabbitmq/client.go:227\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_arm64.s:1268",
"created_at": "2025-11-10T15:36:08.383Z"
},
{
"id": "691206684a33c302dce8f4b0",
"node_id": "665ae536a6392b75cfd40352",
"user_id": "665b372f3a72d7d0791596ba",
"reference_id": null,
"data": null,
"type": 11,
"status": 2,
"error": null,
"created_at": "2025-11-10T15:36:08.377Z"
},
{
"id": "691206284a33c302dce8f4af",
"node_id": "665ae536a6392b75cfd40352",
"user_id": "665b372f3a72d7d0791596ba",
"reference_id": null,
"data": null,
"type": 11,
"status": 2,
"error": null,
"created_at": "2025-11-10T15:35:04.031Z"
},
{
"id": "691203875b0d132170ac8f87",
"node_id": "665ae536a6392b75cfd40352",
"user_id": "665b372f3a72d7d0791596ba",
"reference_id": null,
"data": null,
"type": 11,
"status": 2,
"error": null,
"created_at": "2025-11-10T15:23:51.806Z"
},
{
"id": "691202b86a158a0e42b184a2",
"node_id": "665ae536a6392b75cfd40352",
"user_id": "665b372f3a72d7d0791596ba",
"reference_id": null,
"data": null,
"type": 11,
"status": 2,
"error": null,
"created_at": "2025-11-10T15:20:24.067Z"
},
{
"id": "690dfa7dbccf5473e338b6ac",
"node_id": "665ae536a6392b75cfd40352",
"user_id": "665b372f3a72d7d0791596ba",
"reference_id": null,
"data": {
"address": "0xa112983907944387B64ba512daF256B3f28f93f5",
"amount": 0.01,
"currency_token_id": null,
"currency_token_name": "Ethereum",
"currency_token_symbol": "ETH"
},
"type": 1,
"status": 3,
"error": null,
"created_at": "2025-11-07T13:56:13.52Z"
},
{
"id": "690df72e65d568f1e5d6de9d",
"node_id": "665ae536a6392b75cfd40352",
"user_id": "665b372f3a72d7d0791596ba",
"reference_id": null,
"data": {
"address": "0xa112983907944387B64ba512daF256B3f28f93f5",
"amount": 0.03,
"currency_token_id": null
},
"type": 1,
"status": 3,
"error": null,
"created_at": "2025-11-07T13:42:06.693Z"
}
],
"total": 19,
"page": 1,
"per_page": 10
}

Response Fields

FieldTypeDescription
dataarrayList of payment/transaction records
data[].idstringUnique transaction identifier
data[].node_idstringID of the node
data[].user_idstringID of the user who initiated the transaction
data[].reference_idstring | nullReference ID for the transaction (null if not set)
data[].dataobject | nullPayment-specific data (structure varies by transaction type)
data[].data.addressstringRecipient address for the payment (for certain types)
data[].data.amountnumberPayment amount (for certain types)
data[].data.currency_token_idstring | nullCurrency token ID (null for native currency)
data[].data.currency_token_namestringCurrency token name (e.g., "Ethereum")
data[].data.currency_token_symbolstringCurrency token symbol (e.g., "ETH")
data[].typeintegerTransaction type
data[].statusintegerTransaction status
data[].errorstring | nullError message if the transaction failed (null if successful). May include stack trace for debugging
data[].created_atstringISO 8601 timestamp when the transaction was created
totalintegerTotal number of transactions
pageintegerCurrent page number
per_pageintegerNumber of items per page

Payment Types

Type IDNameDescription
1WithdrawWithdraw payment transaction

Status Codes

Status CodeDescription
200Success - Payments retrieved successfully
401Unauthorized - Invalid or missing authentication token
404Not Found - Node ID does not exist
500Internal Server Error