Skip to main content
Version: 0.1.21 (Current)

get_transaction_details

Type: query

Returns detailed information about a transaction.

Signature

async def get_transaction_details(
transaction_id: str,
redirect_posted: bool = True
) -> Dict[str, Any]

Parameters

ParameterTypeRequiredDescription
transaction_idstrYesthe transaction to fetch.
redirect_postedboolNowhether to redirect posted transactions. Defaults to True.

Example

from monarchmoney import MonarchMoney

mm = MonarchMoney()
await mm.login(email, password)

result = await mm.get_transaction_details("example_transaction_id")
print(result)

GraphQL Operation

Operation Name: GetTransactionDrawer

GraphQL Query

query GetTransactionDrawer($id: UUID!, $redirectPosted: Boolean) {
getTransaction(id: $id, redirectPosted: $redirectPosted) {
id
amount
pending
isRecurring
date
originalDate
hideFromReports
needsReview
reviewedAt
reviewedByUser {
id
name
__typename
}
plaidName
notes
hasSplitTransactions
isSplitTransaction
isManual
splitTransactions {
id
...TransactionDrawerSplitMessageFields
__typename
}
originalTransaction {
id
...OriginalTransactionFields
__typename
}
attachments {
id
publicId
extension
sizeBytes
filename
originalAssetUrl
__typename
}
account {
id
...TransactionDrawerAccountSectionFields
__typename
}
category {
id
__typename
}
goal {
id
__typename
}
merchant {
id
name
transactionCount
logoUrl
recurringTransactionStream {
id
__typename
}
__typename
}
tags {
id
name
color
order
__typename
}
needsReviewByUser {
id
__typename
}
__typename
}
myHousehold {
users {
id
name
__typename
}
__typename
}
}

fragment TransactionDrawerSplitMessageFields on Transaction {
id
amount
merchant {
id
name
__typename
}
category {
id
name
__typename
}
__typename
}

fragment OriginalTransactionFields on Transaction {
id
date
amount
merchant {
id
name
__typename
}
__typename
}

fragment TransactionDrawerAccountSectionFields on Account {
id
displayName
logoUrl
id
mask
subtype {
display
__typename
}
__typename
}

Try It Out

To test this API method locally:

  1. Install the package: pip install monarchmoney
  2. Create a Python script with the example code above
  3. Replace email and password with your Monarch Money credentials
  4. Run the script

See the Authentication Guide for details on logging in.