List company token transactions
Changed onLists an account's token transactions, newest first.
Required permissions:
- company_token_transaction:read
- member:basic:read
- company:basic:read
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Query parameters
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
Filter transactions to only those involving this specific user.
Filter transactions by type.
The unique identifier of the company to list token transactions for.
Response
A successful response
The connection type for CompanyTokenTransaction.
A list of nodes.
Information to aid in pagination.
Example response
{
"data": [
{
"amount": 6.9,
"company": {
"id": "biz_xxxxxxxxxxxxxx"
},
"created_at": "2023-12-01T05:00:00.401Z",
"description": "Reward for completing onboarding",
"idempotency_key": "txn_reward_usr_123_2024",
"user": {
"id": "user_xxxxxxxxxxxxx",
"name": "Marcus Webb",
"username": "marcuswebb"
}
}
]
}Changes
- breaking
added the new required
queryrequest parameteraccount_id - warning
deleted the
queryrequest parametercompany_id
- breaking
- breaking
the
queryrequest parametertransaction_typewas restricted to a list of enum values
4 more changes in this revision
- breaking