Create a token transaction to add, subtract, or transfer tokens for a member within a company.
Required permissions:
company_token_transaction:createmember:basic:readcompany:basic:readA company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
Autogenerated input type of CreateCompanyTokenTransaction
The positive number of tokens to transact. For example, 100.0 for 100 tokens.
6.9
The unique identifier of the company to create the transaction in, starting with 'biz_'.
"biz_xxxxxxxxxxxxxx"
The unique identifier of the user receiving the tokens. Required when the transaction type is 'transfer'.
"transfer"The unique identifier of the user whose token balance will be affected, starting with 'user_'.
"user_xxxxxxxxxxxxx"
A human-readable description of why the transaction was created.
A unique key to prevent duplicate transactions. Use a UUID or similar unique string.
A successful response
A token transaction records a credit or debit to a member's token balance within a company, including transfers between members.
The unique identifier for the company token transaction.
The direction of this token transaction (add, subtract, or transfer).
add, subtract, transfer The token amount for this transaction. Always a positive value regardless of transaction type.
6.9
Free-text description explaining the reason for this token transaction. Null if no description was provided.
"Reward for completing onboarding"
The datetime the company token transaction was created.
"2023-12-01T05:00:00.401Z"
The ID of the corresponding transaction on the other side of a transfer. Null if this is not a transfer transaction.
A unique key used to prevent duplicate transactions when retrying API requests. Null if no idempotency key was provided.
"txn_reward_usr_123_2024"
The user whose token balance was affected by this transaction.
The member whose token balance was affected by this transaction.
The company whose token balance this transaction affects.