Skip to main content

Get User Transactions

Retrieve transactions for a specific user with filtering options.

Endpoint

GET /v2/users/users/{user_id}/transactions

Headers

HeaderValue
AuthorizationBearer {token}

Path Parameters

ParameterTypeRequiredDescription
user_idstringYesThe unique identifier of the user

Query Parameters

ParameterTypeRequiredDescription
pageintegerYesPage number for pagination
per_pageintegerYesNumber of items per page
typesinteger[]NoFilter by transaction types (can be multiple)

Response

Returns a paginated list of transactions for the specified user.

Success Response (200 OK)

{
"data": [
{
"id": "68da490b2690ac9ed917101d",
"user_id": "680c02896d91ca0145cfeb81",
"type": 2,
"status": 1,
"environment": 2,
"external_id": "68ae06cfcccf4e8fc19362d1",
"is_api": false,
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z"
}
],
"total": 1,
"page": 1,
"per_page": 10
}

Response Fields

FieldTypeDescription
dataarrayArray of transaction objects
totalintegerTotal number of transactions
pageintegerCurrent page number
per_pageintegerNumber of items per page

Transaction Object Structure

FieldTypeDescription
idstringUnique transaction identifier
user_idstringUser identifier
typeintegerTransaction type (Type enum)
statusintegerTransaction status (Status enum)
environmentintegerTransaction environment (Environment enum)
external_idstringExternal reference identifier
is_apibooleanWhether transaction was created via API
created_atstringCreation timestamp (ISO 8601)
updated_atstringLast update timestamp (ISO 8601)

Type (Transaction Type)

ValueDescription
1PurchaseOnPrimaryMarket - Primary market purchase
2PurchaseOnSecondaryMarket - Secondary market purchase
3SellOnSecondaryMarket - Secondary market sale
4DelistOnSecondaryMarket - Secondary market delisting
5ClaimRent - Rent claim
6CreateOtcOffer - Create OTC offer
7CancelOtcOffer - Cancel OTC offer
8Burn - Token burn

Status (Transaction Status)

ValueDescription
1Started - Transaction started
2InProgress - Transaction in progress
3Done - Transaction completed
4Error - Transaction failed

Environment (Transaction Environment)

ValueDescription
0DefaultEnvironment - Default environment
1OtcEnvironment - OTC environment
2SecondaryMarketEnvironment - Secondary market environment

Example

Request

curl -X GET "{{baseUrl}}/v2/users/users/680c02896d91ca0145cfeb81/transactions?page=1&per_page=10&types=1&types=2" \
-H "Authorization: Bearer \{\{token\}\}"

Response

{
"data": [
{
"id": "68da490b2690ac9ed917101d",
"user_id": "680c02896d91ca0145cfeb81",
"type": 2,
"status": 1,
"environment": 2,
"external_id": "68ae06cfcccf4e8fc19362d1",
"is_api": false,
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z"
}
],
"total": 1,
"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"
}