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 URL: https://api.whop.com/api/v1
- URL: https://api.whop.com/api/v1/company_token_transactions
- Auth: HTTP 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.
The type of token transaction
The unique identifier of the company to list token transactions for.
Response
A successful response
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": "John Doe",
"username": "johndoe42"
}
}
]
}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 - info
added the new enum value
addto thequeryrequest parametertransaction_type - info
added the new enum value
subtractto thequeryrequest parametertransaction_type - info
added the new enum value
transferto thequeryrequest parametertransaction_type - info
for the
queryrequest parametertransaction_type, the type was generalized from no type tostring
- breaking