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.
type
: Required – inflow
or outflow
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 pairsTransaction
object, including its generated ID and all computed fields.Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Transaction payload
The body is of type object
.
Transaction created
The response is of type object
.