Company token transactions

Retrieve company token transaction

Changed on

Retrieves a token transaction.

Required permissions:

  • company_token_transaction:read
  • member:basic:read
  • company:basic:read
get/company_token_transactions/{id}

Request

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

Path parameters

id, string required

The unique identifier of the token transaction to retrieve.

Response

A successful response

CompanyTokenTransaction required

A token transaction records a credit or debit to a member's token balance within a company, including transfers between members.

amount, number required

The token amount for this transaction. Always a positive value regardless of transaction type.

company, object required

The company whose token balance this transaction affects.

created_at, string date-time required

The datetime the company token transaction was created.

description, string nullable required

Free-text description explaining the reason for this token transaction. Null if no description was provided.

id, string required

The unique identifier for the company token transaction.

idempotency_key, string nullable required

A unique key used to prevent duplicate transactions when retrying API requests. Null if no idempotency key was provided.

linked_transaction_id, string nullable required

The ID of the corresponding transaction on the other side of a transfer. Null if this is not a transfer transaction.

member, object required

The member whose token balance was affected by this transaction.

transaction_type, 'add' | 'subtract' | 'transfer' required

The direction of this token transaction (add, subtract, or transfer).

user, object required

The user whose token balance was affected by this transaction.

Example response

{
  "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