Magidoc

Transaction
Interface

Transaction interface shared by all kind of transactions (Debit, Credit)

Fields

#

id

Non-null

legacyId

Non-null

uuid

Non-null

group

Non-null

type

Non-null

description

amount

Non-null

amountInHostCurrency

Non-null

hostCurrencyFxRate

Exchange rate between the currency of the transaction and the currency of the host (transaction.amount * transaction.hostCurrencyFxRate = transaction.amountInHostCurrency)

netAmount

Non-null

netAmountInHostCurrency

Non-null

taxAmount

Non-null

taxInfo

If a tax is set, this field will contain more info about the tax

platformFee

Non-null

hostFee

paymentProcessorFee

account

oppositeAccount

fromAccount

The sender of a transaction (on CREDIT = oppositeAccount, DEBIT = account)

toAccount

The recipient of a transaction (on CREDIT = account, DEBIT = oppositeAccount)

giftCardEmitterAccount

createdAt

updatedAt

expense

order

isRefunded

isRefund

isDisputed

isInReview

paymentMethod

payoutMethod

isOrderRejected

Non-null

refundTransaction

oppositeTransaction

The opposite transaction (CREDIT -> DEBIT, DEBIT -> CREDIT)

relatedTransactions

Non-null

merchantId

Merchant id related to the Transaction (Stripe, PayPal, Wise, Privacy)

balanceInHostCurrency

The balance after the Transaction has run. Only for financially active accounts.

invoiceTemplate

Implementations

#

Implemented by Credit , Debit .

Usages

#

References

#

  • Field transactions from Order