Skip to main content
GET
/
v0
/
business
/
{business_id}
/
trips
/
{trip_id}
Get a trip by ID
curl --request GET \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/trips/{trip_id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "business_id": "<string>",
    "vehicle_id": "<string>",
    "trip_date": "2023-12-25",
    "distance": 123,
    "distance_unit": "miles",
    "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"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.getasset.com/llms.txt

Use this file to discover all available pages before exploring further.

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
trip_id
string<trp_string>
required

Response

Successful Response

data
TripPublic · object
required