Skip to content

Ramp: Fetch a trip — response body

Fetch a trip: response body. Complete fields and constraints for contract 2026-10-27.

API reference · Contract 2026-10-27

SDK schema: Fetch a trip — response body

FieldTypePresenceDescription and constraints
$objectRoot
created_atstringRequired within parentThe date the trip was created
Format: date-time
descriptionJSONRequired within parent
description (anyOf 1)stringAlternativeThe description for the trip
description (anyOf 2)nullAlternative
end_datestringRequired within parentThe date the trip ends
Format: date-time
idstringRequired within parentUnique identifier for the trip
Format: uuid
length_in_daysJSONRequired within parent
length_in_days (anyOf 1)integerAlternativeNumber of days for the trip
length_in_days (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
locationsarrayRequired within parentDestinations and location segments for the trip
locations[]ModelEach itemExpand Fetch a trip — response body — locations item
namestringRequired within parentThe name of the trip
spend_eventsarrayRequired within parentSpend events for the trip
spend_events[]ModelEach itemExpand Fetch a trip — response body — spend events item
start_datestringRequired within parentThe date the trip starts
Format: date-time
statusstringRequired within parentCurrent trip status
Known values: cancelled, completed, ongoing, upcoming
total_spendJSONRequired within parent
total_spend (anyOf 1)numberAlternativeTotal spend for the trip. Deprecated: use `total_spend_amount` instead.
Read only: true
total_spend (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
total_spend_amountJSONRequired within parent
total_spend_amount (anyOf 1)ModelAlternativeExpand Fetch a transaction — response body — entity amount currency, value
Total spend for the trip in minor units with an explicit ISO 4217 currency code. May be negative for refund-dominated trips. `null` when the trip has no spend events or its spend events do not share a single recognized currency.
Read only: true
total_spend_amount (anyOf 2)nullAlternative
travel_typesarrayRequired within parentTypes of travel for this trip (flights, hotels, cars)
Read only: true
travel_types[]stringEach itemKnown values: CAR, FLIGHT, HOTEL
updated_atstringRequired within parentThe date the trip was last updated
Format: date-time
user_idstringRequired within parentUser/traveler’s ID
Format: uuid

Referenced models: Fetch a transaction — response body — entity amount currency, value, Fetch a trip — response body — locations item, Fetch a trip — response body — spend events item

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.