Transactions
Retrieve a Transaction
Teal API Endpoints
- Categorization
- Chart of Accounts Templates
- Instances
- Journal Entries
- Ledgers
- Line Entries
- Payables
- Platform
- Quickbooks
- Receivables
- Reports
- Tags
- Transaction Sources
- Transactions
- Transfers
API Migration
- Migration Guides
- Deprecated Endpoints
Transactions
Retrieve a Transaction
Returns a single Transaction.
GET
/
v0
/
source-accounts
/
{source_account_id}
/
transactions
/
{transaction_id}
curl --request GET \
--url https://api.sandbox.teal.dev/v0/source-accounts/{source_account_id}/transactions/{transaction_id} \
--header 'Authorization: Bearer <token>' \
--header 'teal-instance-id: <teal-instance-id>'
{
"id": "t_9237232",
"amount": 132629.38,
"datetime": "2024-03-15T15:28:53Z",
"description": "Payroll March 15 2024",
"metadata": null,
"categorization_method": "similarity",
"posted_status": "posted",
"review_status": "reviewed",
"journal_entry_id": "C4ocnUQze8kDwQ3EczkZXn",
"journal_entry": {
"datetime": "2023-02-15T06:42:18Z",
"description": "Payroll#230215",
"id": "C4ocnUQze8kDwQ3EczkZXn",
"line_entry_ids": [
"XMDsKVuW4Wmi3LTW31Qw6E",
"NULcvXTkLczde32qs1rqgB"
]
},
"source_account_id": "<string>",
"ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
"ledger": {
"debit_credit": "debit",
"editable": false,
"financial_account_type": "bank_account",
"id": "7JRNsKwy2Lw66caxVU7WGC",
"is_required": false,
"name": "Pluto Checking 4242",
"report_cash_flow": true,
"sort_code": "1140",
"sub_type": "current_assets",
"type": "asset"
},
"line_entry_id": "XMDsKVuW4Wmi3LTW31Qw6E",
"line_entry": {
"amount": 31282.28,
"datetime": "2023-02-15T06:42:18Z",
"debit_credit": "debit",
"description": "Payroll#230215",
"editable": false,
"id": "XMDsKVuW4Wmi3LTW31Qw6E",
"journal_entry_description": "Payroll#230215",
"journal_entry_id": "C4ocnUQze8kDwQ3EczkZXn",
"ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
"ledger_name": "Pluto Checking 4242",
"transaction_id": "t_9237232"
},
"opposing_line_entry_ids": [
"NULcvXTkLczde32qs1rqgB"
],
"opposing_line_entries": [
{
"amount": 31282.28,
"datetime": "2023-02-15T06:42:18Z",
"debit_credit": "debit",
"description": "Payroll#230215",
"editable": false,
"id": "XMDsKVuW4Wmi3LTW31Qw6E",
"journal_entry_description": "Payroll#230215",
"journal_entry_id": "C4ocnUQze8kDwQ3EczkZXn",
"ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
"ledger_name": "Pluto Checking 4242",
"transaction_id": "t_9237232"
}
],
"tags": null,
"personal": false,
"transfer_id": "CiUq74HpwS4KVz2WhLzAHS",
"transfer": {
"from_journal_entry_id": "DcHePKd9HabmEYJZQzHTMW",
"id": "CiUq74HpwS4KVz2WhLzAHS",
"matched_transaction": {
"amount": 31282.28,
"datetime": "2023-02-15T06:42:18Z",
"description": "Payroll#230215",
"id": "txn_UjL3BQnEaJtecuC7CUeDk",
"journal_entry_id": "C4ocnUQze8kDwQ3EczkZXn",
"ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
"line_entry_id": "XMDsKVuW4Wmi3LTW31Qw6E",
"personal": false,
"posted_status": "posted",
"review_status": "reviewed",
"source_account_id": "L7RR1Yz85FJoASPvPLs441"
},
"matched_transaction_id": "aiLXjeYEJymAmg2TzkZ9x",
"to_journal_entry_id": "EXiLQL1auA89xtVk9yWdpd"
}
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
The Teal instance ID
Path Parameters
The Source Account ID.
The Transaction ID.
Query Parameters
Comma-separated list of Transaction expand paths.
Response
200
application/json
Successful Response
The response is of type object
.
The response is of type object
.
The response is of type null
.
curl --request GET \
--url https://api.sandbox.teal.dev/v0/source-accounts/{source_account_id}/transactions/{transaction_id} \
--header 'Authorization: Bearer <token>' \
--header 'teal-instance-id: <teal-instance-id>'
{
"id": "t_9237232",
"amount": 132629.38,
"datetime": "2024-03-15T15:28:53Z",
"description": "Payroll March 15 2024",
"metadata": null,
"categorization_method": "similarity",
"posted_status": "posted",
"review_status": "reviewed",
"journal_entry_id": "C4ocnUQze8kDwQ3EczkZXn",
"journal_entry": {
"datetime": "2023-02-15T06:42:18Z",
"description": "Payroll#230215",
"id": "C4ocnUQze8kDwQ3EczkZXn",
"line_entry_ids": [
"XMDsKVuW4Wmi3LTW31Qw6E",
"NULcvXTkLczde32qs1rqgB"
]
},
"source_account_id": "<string>",
"ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
"ledger": {
"debit_credit": "debit",
"editable": false,
"financial_account_type": "bank_account",
"id": "7JRNsKwy2Lw66caxVU7WGC",
"is_required": false,
"name": "Pluto Checking 4242",
"report_cash_flow": true,
"sort_code": "1140",
"sub_type": "current_assets",
"type": "asset"
},
"line_entry_id": "XMDsKVuW4Wmi3LTW31Qw6E",
"line_entry": {
"amount": 31282.28,
"datetime": "2023-02-15T06:42:18Z",
"debit_credit": "debit",
"description": "Payroll#230215",
"editable": false,
"id": "XMDsKVuW4Wmi3LTW31Qw6E",
"journal_entry_description": "Payroll#230215",
"journal_entry_id": "C4ocnUQze8kDwQ3EczkZXn",
"ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
"ledger_name": "Pluto Checking 4242",
"transaction_id": "t_9237232"
},
"opposing_line_entry_ids": [
"NULcvXTkLczde32qs1rqgB"
],
"opposing_line_entries": [
{
"amount": 31282.28,
"datetime": "2023-02-15T06:42:18Z",
"debit_credit": "debit",
"description": "Payroll#230215",
"editable": false,
"id": "XMDsKVuW4Wmi3LTW31Qw6E",
"journal_entry_description": "Payroll#230215",
"journal_entry_id": "C4ocnUQze8kDwQ3EczkZXn",
"ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
"ledger_name": "Pluto Checking 4242",
"transaction_id": "t_9237232"
}
],
"tags": null,
"personal": false,
"transfer_id": "CiUq74HpwS4KVz2WhLzAHS",
"transfer": {
"from_journal_entry_id": "DcHePKd9HabmEYJZQzHTMW",
"id": "CiUq74HpwS4KVz2WhLzAHS",
"matched_transaction": {
"amount": 31282.28,
"datetime": "2023-02-15T06:42:18Z",
"description": "Payroll#230215",
"id": "txn_UjL3BQnEaJtecuC7CUeDk",
"journal_entry_id": "C4ocnUQze8kDwQ3EczkZXn",
"ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
"line_entry_id": "XMDsKVuW4Wmi3LTW31Qw6E",
"personal": false,
"posted_status": "posted",
"review_status": "reviewed",
"source_account_id": "L7RR1Yz85FJoASPvPLs441"
},
"matched_transaction_id": "aiLXjeYEJymAmg2TzkZ9x",
"to_journal_entry_id": "EXiLQL1auA89xtVk9yWdpd"
}
}