Skip to main content

Get External User Purchases

Returns external user purchases for a distribution token within a date range. Both start_date and end_date are required and must be in ISO 8601 format (2006-01-02T15:04:05Z07:00).

Request

GET /v2/distributions/tokens/{tokenID}/purchases

Parameters

NameTypeInDescription
tokenIDstringpathRequired. Distribution token ID
start_datestringqueryRequired. Range start, ISO 8601
end_datestringqueryRequired. Range end, ISO 8601

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication

Example

curl --request GET \
--url '{{baseUrl}}/v2/distributions/tokens/67d8774e903bfcbe7eb5d93e/purchases?start_date=2025-01-01T00:00:00Z&end_date=2025-12-31T23:59:59Z' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'

Response

{
"data": [
{
"id": "69120e5fe5064fdeaef6f057",
"quantity": 10,
"price": 100.0,
"currency": {
"symbol": "USDT",
"decimal": 6,
"address": "0x073c0196e516a0e77b1c804d1825fb1bad23895d"
},
"buyer_address": "0x1111111111111111111111111111111111111111",
"seller_address": "0x4A096E485281DE1B8bF11A511D39d5B128EF7C4b",
"market_id": "67d76014d9c4853c097bcf9a",
"hash": "0xabc123...",
"created_at": "2025-06-01T12:34:56Z"
}
],
"total": 1
}

Response Fields

FieldTypeDescription
dataarrayList of external purchases
data[].idstringPurchase ID
data[].quantityintegerPurchased quantity
data[].pricenumberUnit price
data[].currencyobjectCurrency {symbol, decimal, address}
data[].buyer_addressstringBuyer wallet address
data[].seller_addressstringSeller wallet address
data[].market_idstringMarket ID
data[].hashstringOn-chain transaction hash
data[].created_atstringPurchase timestamp (ISO 8601)
totalintegerTotal number of purchases in the range

Status Codes

Status CodeDescription
200Success
400Bad Request - Missing tokenID, start_date, or end_date, or invalid date format
401Unauthorized - Invalid or missing authentication token
500Internal Server Error