Get User Transactions
Retrieve transactions for a specific user with filtering options.
Endpoint
GET /v2/users/users/{user_id}/transactions
Headers
| Header | Value |
|---|---|
| Authorization | Bearer {token} |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| user_id | string | Yes | The unique identifier of the user |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | Yes | Page number for pagination |
| per_page | integer | Yes | Number of items per page |
| types | integer[] | No | Filter by transaction types (can be multiple) |
Response
Returns a paginated list of transactions for the specified user.
Success Response (200 OK)
{
"data": [
{
"id": "6985e6fa07aa9b80c33f6a7d",
"user_id": "6983c9b807aa9b80c33f696d",
"type": 1,
"status": 3,
"environment": 0,
"internal_id": "698345d9e2cb4cfb988cacb3",
"external_id": "698345d9e2cb4cfb988cacb3",
"hash": "0xc34e006659d532a0c8212a8ec624a08cfab3ffbd102936a681ab81e3cf7e0c6d",
"error": null,
"message": null,
"is_api": false,
"created_at": "2026-02-06T13:04:58.802Z",
"updated_at": "2026-02-06T13:05:09.911Z",
"data": {
"token_id": "698345d9e2cb4cfb988cacb3",
"quantity": 7,
"price_id": "6913307ec95e268b239b2d8b",
"price_amount": 1,
"price_decimal": 6,
"price_symbol": "VUSD",
"price_address": "0xf2d90affe805280c004d0135343f2cbd7c96ce98",
"seller_address": "0x11Dd160A9e962E8fAc0b3307Ef75Ad4eA3F4d82C",
"buyer_address": "0x4A096E485281DE1B8bF11A511D39d5B128EF7C4b",
"total_fee_percentage": 4,
"total_fee_amount": 0.28
}
},
{
"id": "6985c19507aa9b80c33f6a18",
"user_id": "6983c9b807aa9b80c33f696d",
"type": 6,
"status": 1,
"environment": 0,
"internal_id": null,
"external_id": "6983383ae2cb4cfb988cacaf",
"hash": null,
"error": null,
"message": null,
"data": null,
"is_api": false,
"created_at": "2026-02-06T10:25:25.83Z",
"updated_at": "2026-02-06T10:25:25.83Z"
}
],
"total": 6,
"page": 1,
"per_page": 10
}
Response Fields
| Field | Type | Description |
|---|---|---|
| data | array | Array of transaction objects |
| total | integer | Total number of transactions |
| page | integer | Current page number |
| per_page | integer | Number of items per page |
Transaction Object Structure
| Field | Type | Description |
|---|---|---|
| id | string | Unique transaction identifier |
| user_id | string | User identifier |
| type | integer | Transaction type (see Type enum below) |
| status | integer | Transaction status (Status enum) |
| environment | integer | Transaction environment (Environment enum) |
| internal_id | string | null | Internal reference (e.g. purchase ID when done) |
| external_id | string | External reference (e.g. token ID) |
| hash | string | null | Blockchain transaction hash |
| error | string | null | Error message if transaction failed |
| message | string | null | Transaction message |
| data | object | null | Type-specific payload - structure varies by type (see Data by Type below) |
| is_api | boolean | Whether transaction was created via API |
| created_at | string | Creation timestamp (ISO 8601) |
| updated_at | string | Last update timestamp (ISO 8601) |
Data by Type
The data object structure depends on type. Fields present when not applicable are omitted.
Type 1 - PurchaseOnPrimaryMarket
| Field | Type | Description |
|---|---|---|
| token_id | string | Token identifier |
| quantity | integer | Quantity purchased |
| price_id | string | Currency token ID |
| price_amount | number | Unit price |
| price_decimal | integer | Price decimals |
| price_symbol | string | Price symbol (e.g. VUSD) |
| price_address | string | Currency contract address |
| seller_address | string | Seller wallet address |
| buyer_address | string | Buyer wallet address |
| total_fee_percentage | number | Total fee percentage (optional) |
| total_fee_amount | number | Total fee amount (optional) |
Type 2 - PurchaseOnSecondaryMarket
| Field | Type | Description |
|---|---|---|
| token_id | string | Token identifier |
| deal_id | integer | Deal/listing identifier |
| quantity | integer | Quantity purchased |
| price_id, price_amount, price_decimal, price_symbol, price_address | - | Price information |
| seller_address | string | Seller wallet address |
| buyer_address | string | Buyer wallet address |
| total_buyer_fee_percentage, total_buyer_fee_amount | number | Buyer fee (optional) |
| total_seller_fee_percentage, total_seller_fee_amount | number | Seller fee (optional) |
Type 3 - SellOnSecondaryMarket
| Field | Type | Description |
|---|---|---|
| token_id | string | Token identifier |
| quantity | integer | Quantity sold |
| amount | integer | Total amount |
| price_id, price_amount, price_decimal, price_symbol, price_address | - | Price information |
| total_fee_percentage, total_fee_amount | number | Fee (optional) |
Type 4 - DelistOnSecondaryMarket
| Field | Type | Description |
|---|---|---|
| token_id | string | Token identifier |
| deal_id | integer | Deal identifier |
Type 5 - ClaimRent
| Field | Type | Description |
|---|---|---|
| token_id | string | Token identifier |
| rent_id | integer | Rent identifier |
| node_id | string | Node identifier |
| per_price_amount, per_price_decimal, per_price_symbol, per_price_address, per_price_id | - | Per-token price (optional) |
| total_price_amount, total_price_decimal, total_price_symbol, total_price_address, total_price_id | - | Total price (optional) |
Type 6 - CreateOtcOffer
| Field | Type | Description |
|---|---|---|
| token_id | string | Token identifier |
| quantity | integer | Quantity offered |
| amount | integer | Total amount |
| price_id, price_amount, price_decimal, price_symbol, price_address | - | Price information |
| total_fee_percentage, total_fee_amount | number | Fee (optional) |
Type 7 - CancelOtcOffer
| Field | Type | Description |
|---|---|---|
| token_id | string | Token identifier |
| deal_id | integer | Deal identifier |
Type 8 - Burn
| Field | Type | Description |
|---|---|---|
| token_id | string | Token identifier |
| received_amount | number | Amount received (optional) |
| received_amount_decimal | integer | Received amount decimals (optional) |
| received_amount_symbol | string | Received amount symbol (optional) |
| received_amount_address | string | Received amount contract address (optional) |
Type (Transaction Type)
| Value | Description |
|---|---|
| 1 | PurchaseOnPrimaryMarket - Primary market purchase |
| 2 | PurchaseOnSecondaryMarket - Secondary market purchase |
| 3 | SellOnSecondaryMarket - Secondary market sale |
| 4 | DelistOnSecondaryMarket - Secondary market delisting |
| 5 | ClaimRent - Rent claim |
| 6 | CreateOtcOffer - Create OTC offer |
| 7 | CancelOtcOffer - Cancel OTC offer |
| 8 | Burn - Token burn |
| 9 | PurchaseOnDistributionMarket - Distribution market purchase |
Status (Transaction Status)
| Value | Description |
|---|---|
| 1 | Started - Transaction started |
| 2 | InProgress - Transaction in progress |
| 3 | Done - Transaction completed |
| 4 | Error - Transaction failed |
Environment (Transaction Environment)
| Value | Description |
|---|---|
| 0 | DefaultEnvironment - Default environment |
| 1 | OtcEnvironment - OTC environment |
| 2 | SecondaryMarketEnvironment - Secondary market environment |
Example
Request
curl -X GET "\{\{baseUrl\}\}/v2/users/users/6983c9b807aa9b80c33f696d/transactions?page=1&per_page=10" \
-H "Authorization: Bearer \{\{token\}\}"
Response
{
"data": [
{
"id": "6985e6fa07aa9b80c33f6a7d",
"user_id": "6983c9b807aa9b80c33f696d",
"type": 1,
"status": 3,
"environment": 0,
"internal_id": "698345d9e2cb4cfb988cacb3",
"external_id": "698345d9e2cb4cfb988cacb3",
"hash": "0xc34e006659d532a0c8212a8ec624a08cfab3ffbd102936a681ab81e3cf7e0c6d",
"error": null,
"message": null,
"data": {
"token_id": "698345d9e2cb4cfb988cacb3",
"quantity": 7,
"price_amount": 1,
"price_decimal": 6,
"price_symbol": "VUSD",
"seller_address": "0x11Dd160A9e962E8fAc0b3307Ef75Ad4eA3F4d82C",
"buyer_address": "0x4A096E485281DE1B8bF11A511D39d5B128EF7C4b",
"total_fee_amount": 0.28,
"total_fee_percentage": 4
},
"is_api": false,
"created_at": "2026-02-06T13:04:58.802Z",
"updated_at": "2026-02-06T13:05:09.911Z"
},
{
"id": "6985c19507aa9b80c33f6a18",
"user_id": "6983c9b807aa9b80c33f696d",
"type": 6,
"status": 1,
"environment": 0,
"external_id": "6983383ae2cb4cfb988cacaf",
"hash": null,
"error": null,
"message": null,
"data": null,
"is_api": false,
"created_at": "2026-02-06T10:25:25.83Z",
"updated_at": "2026-02-06T10:25:25.83Z"
}
],
"total": 6,
"page": 1,
"per_page": 10
}
Error Responses
400 Bad Request
{
"error": "Invalid user ID format"
}
401 Unauthorized
{
"error": "Authentication required"
}
403 Forbidden
{
"error": "Access denied"
}
404 Not Found
{
"error": "User not found"
}
500 Internal Server Error
{
"error": "Internal server error"
}