Create a new transaction

Creates a new transaction for an entity

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

entityIdstringRequired
The ID of the entity to create the transaction for

Request

This endpoint expects an object.
amountdoubleRequired
The amount of the transaction
debitAccountIdstringRequired
ID of the account to debit
creditAccountIdstringRequired
ID of the account to credit
datedatetimeOptional

When the transaction occurred (defaults to current time if not provided)

currencystringOptionalDefaults to USD
The currency of the transaction
descriptionstringOptional
Description of the transaction
statusenumOptionalDefaults to PENDING
Status of the transaction
Allowed values:
metadataobjectOptional
Additional transaction metadata

Response

Transaction created successfully
transactionobject or null

Errors