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
| Parameter | Type | Required | Description |
|---|---|---|---|
transaction_id | str | Yes | the transaction to fetch. |
redirect_posted | bool | No | whether 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:
- Install the package:
pip install monarchmoney - Create a Python script with the example code above
- Replace
emailandpasswordwith your Monarch Money credentials - Run the script
See the Authentication Guide for details on logging in.