Skip to main content
GET
/
v0
/
business
/
{business_id}
/
trips
List trips for a business
curl --request GET \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/trips \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "business_id": "<string>",
      "vehicle_id": "<string>",
      "trip_date": "2023-12-25",
      "distance": 123,
      "start_address": "123 Main St, San Francisco, CA",
      "end_address": "456 Market St, San Francisco, CA",
      "id": "<string>",
      "external_id": "1234567890",
      "notes": "Client lunch meeting",
      "purpose": "personal",
      "amount": 7.25,
      "amount_reason": "Standard rate applied"
    }
  ],
  "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<biz_string>
required

Query Parameters

vehicle_id
string<vhc_string> | null

Filter trips by vehicle

external_id
string | null

Filter trips by exact external ID

trip_date_from
string<date> | null

Include trips with trip_date on or after this date (inclusive)

trip_date_to
string<date> | null

Include trips with trip_date on or before this date (inclusive)

purpose
enum<string> | null

Filter trips by purpose (business or personal)

Available options:
business,
personal
page_token
string | null

The page token to for the next or previous page

page_size
integer
default:100
Required range: 1 <= x <= 100

Response

Successful Response

data
TripPublic · object[]
required
pagination
PaginationResponse · object
required