List company token transactions
Returns a paginated list of token transactions for a user or company, depending on the authenticated actor, with optional filtering by user and transaction type.
Required permissions:
- company_token_transaction:read
- member:basic:read
- company:basic:read
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.
The unique identifier of the company to list token transactions for.
Filter transactions to only those involving this specific user.
The type of token transaction
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
Changed in 1 of the 42 revisions of this API.14
- ▲
the
queryrequest parametertransaction_typewas restricted to a list of enum valuesrequest-parameter-became-enum
- ○
added the new enum value
addto thequeryrequest parametertransaction_typerequest-parameter-enum-value-added
- ○
added the new enum value
subtractto thequeryrequest parametertransaction_typerequest-parameter-enum-value-added
- ○
added the new enum value
transferto thequeryrequest parametertransaction_typerequest-parameter-enum-value-added
- ○
for the
queryrequest parametertransaction_type, the type/format was generalized from/tostring/request-parameter-type-generalized
- ▲