Create Transaction
Create a new transaction record. Specify type as either inflow
or outflow
. The transaction must contain at least one line item and a valid contact.
Creates a transaction that will be stored and potentially synced with your tax and reconciliation workflows.
Body Parameters:
type
: Required –inflow
oroutflow
contact_id
: Required – Must reference a valid contacttransaction_date
: ISO 8601 dateline_items
: Required – Array of objects with product ID, quantity, amounttax_data
: Optional – Override auto-calculated taxcurrency
: Optional – Defaults to organization base currencymetadata
: Optional – Key-value pairs
Response:
Returns the created Transaction
object, including its generated ID and all computed fields.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Transaction payload
Unique identifier for the transaction
Direction of the transaction
inflow
, outflow
Transaction amount
Currency code (e.g., USD, EUR)
Time of transaction
Optional description of the transaction
Response
Transaction created
Unique identifier for the transaction
Direction of the transaction
inflow
, outflow
Transaction amount
Currency code (e.g., USD, EUR)
Time of transaction
Optional description of the transaction