Transactions
Get Transactions
Gets a page of transactions in a ledger.
GET
/
v0
/
ledgers
/
{ledger_id}
/
transactions
Authorization
Header
Path
Query
curl --request GET \
--url https://api.sandbox.teal.dev/v0/ledgers/{ledger_id}/transactions \
--header 'Authorization: <authorization>' \
--header 'teal-instance-id: <teal-instance-id>'
{
"next_page_token": "<string>",
"prev_page_token": "<string>",
"records": [
{
"amount": 100,
"datetime": "2022-01-01T00:00:00Z",
"description": "Shell Gas Bar 4124",
"id": "t_9237232",
"metadata": {
"location": "TX, USA",
"vendor_type": "Gas station"
},
"posted_status": "posted",
"review_status": "reviewed"
}
]
}
Authorizations
Authorization
string
headerrequiredThe access token received from the authorization server in the OAuth 2.0 flow.
Headers
teal-instance-id
string
requiredThe Teal instance ID
Path Parameters
ledger_id
string
requiredThe ID for the ledger that contains the transactions.
Query Parameters
review_status
enum<string> | null
The review status of the transaction.
Available options:
unreviewed
, reviewed
limit
integer | null
The number of records to return. Max limit is 100.
page_token
string
Response
200 - application/json
next_page_token
string | null
requiredThe token to use to request the next page
prev_page_token
string | null
requiredThe token to use to request the previous page
records
object[]
requiredA list of transaction
curl --request GET \
--url https://api.sandbox.teal.dev/v0/ledgers/{ledger_id}/transactions \
--header 'Authorization: <authorization>' \
--header 'teal-instance-id: <teal-instance-id>'
{
"next_page_token": "<string>",
"prev_page_token": "<string>",
"records": [
{
"amount": 100,
"datetime": "2022-01-01T00:00:00Z",
"description": "Shell Gas Bar 4124",
"id": "t_9237232",
"metadata": {
"location": "TX, USA",
"vendor_type": "Gas station"
},
"posted_status": "posted",
"review_status": "reviewed"
}
]
}