GET
/
v0
/
business
/
{business_id}
/
transactions
curl --request GET \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/transactions \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "external_id": "<string>",
      "amount": 123,
      "datetime": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "posted": true,
      "type": "business",
      "reviewed": true,
      "metadata_": {},
      "id": "txn_WQMDNUHpBThYSNh4AprDBo",
      "external_account_id": "eac_WQMDNUHpBThYSNh4AprDBo"
    }
  ],
  "pagination": {
    "next_page_token": "<string>",
    "previous_page_token": "<string>"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

business_id
string
required

Query Parameters

type
enum<string> | null

Filter transactions by the type of the Transaction

Available options:
business,
personal
reviewed
boolean | null

Filter transactions by whether they are reviewed

start_datetime
string | null

Include transactions after this period (inclusive) in ISO-8601 format

end_datetime
string | null

Include transactions before this period (inclusive) in ISO-8601 format

account_ids
string[] | null

Filter transactions by External Account IDs

sort_by
enum<string>
Available options:
datetime
order
enum<string>
Available options:
asc,
desc
page_token
string | null
page_size
integer
default:100
Required range: 1 <= x <= 100

Response

200
application/json
Successful Response

The response is of type object.