Company token transactions

List company token transactions

Changed on

Lists an account's token transactions, newest first.

Required permissions:

  • company_token_transaction:read
  • member:basic:read
  • company:basic:read
get/company_token_transactions

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

after, string

Returns the elements in the list that come after the specified cursor.

before, string

Returns the elements in the list that come before the specified cursor.

first, integer

Returns the first n elements from the list.

Example:42
last, integer

Returns the last n elements from the list.

Example:42
user_id, string

Filter transactions to only those involving this specific user.

Example:user_xxxxxxxxxxxxx
transaction_type, 'add' | 'subtract' | 'transfer'

Filter transactions by type.

account_id, string required

The unique identifier of the company to list token transactions for.

Example:biz_xxxxxxxxxxxxxx

Response

A successful response

object required

The connection type for CompanyTokenTransaction.

data, CompanyTokenTransactionListItem[] required

A list of nodes.

page_info, PageInfo required

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 query request parameter account_id

    • warning

      deleted the query request parameter company_id

    • breaking

      the query request parameter transaction_type was restricted to a list of enum values

    4 more changes in this revision