Skip to main content
Create a new transaction in the e-commerce platform. Transactions represent all monetary movements including payments, refunds, chargebacks, and adjustments.

Request Body

FieldTypeRequiredDescription
company_idintegerYesThe rootfi_company_id to associate this transaction with
dataarrayYesArray of transaction objects to create
data[].typestringYesType of transaction (payment, refund, chargeback, adjustment)
data[].order_idstringYesReference to the associated Order
data[].contact_idstringNoReference to the Contact
data[].currency_idstringYesISO 4217 currency code (e.g., USD, EUR)
data[].amountnumberYesTransaction amount (always positive, use type to determine direction)
data[].statusstringNoTransaction status (pending, completed, failed, cancelled). Defaults to pending
data[].payment_method_typestringNoPayment method used (credit_card, debit_card, bank_transfer, etc.)
data[].gatewaystringNoPayment processor or gateway name (e.g., “shopify”, “stripe”)
data[].gateway_transaction_idstringNoTransaction ID from the payment gateway
data[].original_transaction_idstringNoFor refunds, reference to the original payment transaction
data[].descriptionstringNoHuman-readable description of the transaction
data[].reasonstringNoReason for the transaction (primarily used for refunds)
See Transaction Overview for complete field details.