{"items":[{"type":"link","label":"Travel API","link":"/openapi/travel_api","routeSlug":"/openapi/travel_api","content":{"contentType":"overview","meta":{"name":"Travel API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"travel_api.json","url":"/_bundle/openapi/travel_api.json?download"},{"kind":"download","label":"travel_api.yaml","url":"/_bundle/openapi/travel_api.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"externallink","title":"URL","titleTranslationKey":"info.contact.url","label":"https://brex.com","url":"https://brex.com"},{"kind":"email","title":"Admin","email":"developer-support@brex.com","label":"developer-support@brex.com","withCopyButton":true,"copyContent":"developer-support@brex.com"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"java","title":"Java","lang":"Java"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Travel API (1.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":"Brex Travel External API."}],"sectionId":"/"}],"sectionId":"/"}]}]}},{"type":"group","label":"Trips","link":"/openapi/travel_api/trips","routeSlug":"/openapi/travel_api/trips","items":[{"label":"List trips","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/travel_api/trips/listtrips","routeSlug":"/openapi/travel_api/trips/listtrips","metadata":{"seo":{"title":"List trips","description":"Lists trips according to the filters passed in the query string."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listTrips","name":"List trips","isWebhook":false,"pointer":"/paths/~1v1~1trips/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List trips","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Lists trips according to the filters passed in the query string."},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["travel.trips","travel.trips.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"},{"name":"last_updated_after","in":"query","schemaId":"schema_2"},{"name":"load_custom_fields","in":"query","schemaId":"schema_3","description":"Whether to load custom field values on the returned resources."}],"pointer":"/paths/~1v1~1trips/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/trips","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[],"query":[{"name":"cursor","in":"query","required":false,"schemaId":"schema_0"},{"name":"limit","in":"query","required":false,"schemaId":"schema_1"},{"name":"last_updated_after","in":"query","required":false,"schemaId":"schema_2"},{"name":"load_custom_fields","in":"query","schemaId":"schema_3"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access"}}}}],"scopes":["travel.trips","travel.trips.readonly"]}],"responseCodes":["200","400","401","403","500"],"pointer":"/v1/trips","href":"trips/listtrips","openApiOperationId":"listTrips","summary":"List trips"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"A page with a list of trips.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_Trip_"}},"schemaId":"components/schemas/Page_Trip_"},{"code":"400","description":"Bad request"},{"code":"401","description":"Unauthorized"},{"code":"403","description":"Forbidden"},{"code":"500","description":"Internal server error"}],"pointer":"/paths/~1v1~1trips/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Page_Trip_","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_Trip_"}}},{"code":"400"},{"code":"401"},{"code":"403"},{"code":"500"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/trips/listtrips"}],"panels":[]}]},"httpPath":"/v1/trips"},{"label":"Get trip","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/travel_api/trips/gettrip","routeSlug":"/openapi/travel_api/trips/gettrip","metadata":{"seo":{"title":"Get trip","description":"Retrieves a trip by ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getTrip","name":"Get trip","isWebhook":false,"pointer":"/paths/~1v1~1trips~1{trip_id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get trip","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Retrieves a trip by ID."},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["travel.trips","travel.trips.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"trip_id","in":"path","schemaId":"schema_4","required":true}],"pointer":"/paths/~1v1~1trips~1{trip_id}/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"load_custom_fields","in":"query","schemaId":"schema_3","description":"Whether to load custom field values on the returned resources."}],"pointer":"/paths/~1v1~1trips~1{trip_id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/trips/{trip_id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"trip_id","in":"path","required":true,"schemaId":"schema_4"}],"query":[{"name":"load_custom_fields","in":"query","schemaId":"schema_3"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access"}}}}],"scopes":["travel.trips","travel.trips.readonly"]}],"responseCodes":["200","400","401","403","404","500"],"pointer":"/v1/trips/{trip_id}","href":"trips/gettrip","openApiOperationId":"getTrip","summary":"Get trip"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The trip that was retrieved.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Trip"}},"schemaId":"components/schemas/Trip"},{"code":"400","description":"Bad request"},{"code":"401","description":"Unauthorized"},{"code":"403","description":"Forbidden"},{"code":"404","description":"Not Found"},{"code":"500","description":"Internal server error"}],"pointer":"/paths/~1v1~1trips~1{trip_id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Trip","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Trip"}}},{"code":"400"},{"code":"401"},{"code":"403"},{"code":"404"},{"code":"500"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/trips/gettrip"}],"panels":[]}]},"httpPath":"/v1/trips/{trip_id}"},{"label":"List trip bookings","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/travel_api/trips/listtripbookings","routeSlug":"/openapi/travel_api/trips/listtripbookings","metadata":{"seo":{"title":"List trip bookings","description":"Lists the bookings within a trip."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listTripBookings","name":"List trip bookings","isWebhook":false,"pointer":"/paths/~1v1~1trips~1{trip_id}~1bookings/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List trip bookings","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Lists the bookings within a trip."},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["travel.trips","travel.trips.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"trip_id","in":"path","schemaId":"schema_4","required":true}],"pointer":"/paths/~1v1~1trips~1{trip_id}~1bookings/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"cursor","in":"query","schemaId":"schema_0"},{"name":"limit","in":"query","schemaId":"schema_1"},{"name":"load_custom_fields","in":"query","schemaId":"schema_3","description":"Whether to load custom field values on the returned resources."}],"pointer":"/paths/~1v1~1trips~1{trip_id}~1bookings/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/trips/{trip_id}/bookings","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"trip_id","in":"path","required":true,"schemaId":"schema_4"}],"query":[{"name":"cursor","in":"query","required":false,"schemaId":"schema_0"},{"name":"limit","in":"query","required":false,"schemaId":"schema_1"},{"name":"load_custom_fields","in":"query","schemaId":"schema_3"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access"}}}}],"scopes":["travel.trips","travel.trips.readonly"]}],"responseCodes":["200","400","401","403","404","500"],"pointer":"/v1/trips/{trip_id}/bookings","href":"trips/listtripbookings","openApiOperationId":"listTripBookings","summary":"List trip bookings"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"A page with a list of bookings.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_Booking_"}},"schemaId":"components/schemas/Page_Booking_"},{"code":"400","description":"Bad request"},{"code":"401","description":"Unauthorized"},{"code":"403","description":"Forbidden"},{"code":"404","description":"Not Found"},{"code":"500","description":"Internal server error"}],"pointer":"/paths/~1v1~1trips~1{trip_id}~1bookings/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Page_Booking_","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Page_Booking_"}}},{"code":"400"},{"code":"401"},{"code":"403"},{"code":"404"},{"code":"500"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/trips/listtripbookings"}],"panels":[]}]},"httpPath":"/v1/trips/{trip_id}/bookings"},{"label":"Get booking","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/travel_api/trips/getbooking","routeSlug":"/openapi/travel_api/trips/getbooking","metadata":{"seo":{"title":"Get booking","description":"Retrieves a booking by trip and booking ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getBooking","name":"Get booking","isWebhook":false,"pointer":"/paths/~1v1~1trips~1{trip_id}~1bookings~1{booking_id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get booking","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Retrieves a booking by trip and booking ID."},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2","scopes":["travel.trips","travel.trips.readonly"],"type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access"}}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"trip_id","in":"path","schemaId":"schema_4","required":true},{"name":"booking_id","in":"path","schemaId":"schema_4","required":true}],"pointer":"/paths/~1v1~1trips~1{trip_id}~1bookings~1{booking_id}/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"load_custom_fields","in":"query","schemaId":"schema_3","description":"Whether to load custom field values on the returned resources."}],"pointer":"/paths/~1v1~1trips~1{trip_id}~1bookings~1{booking_id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/trips/{trip_id}/bookings/{booking_id}","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"parameters":{"path":[{"name":"trip_id","in":"path","required":true,"schemaId":"schema_4"},{"name":"booking_id","in":"path","required":true,"schemaId":"schema_4"}],"query":[{"name":"load_custom_fields","in":"query","schemaId":"schema_3"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access"}}}}],"scopes":["travel.trips","travel.trips.readonly"]}],"responseCodes":["200","400","401","403","404","500"],"pointer":"/v1/trips/{trip_id}/bookings/{booking_id}","href":"trips/getbooking","openApiOperationId":"getBooking","summary":"Get booking"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The booking that was retrieved.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Booking"}},"schemaId":"components/schemas/Booking"},{"code":"400","description":"Bad request"},{"code":"401","description":"Unauthorized"},{"code":"403","description":"Forbidden"},{"code":"404","description":"Not Found"},{"code":"500","description":"Internal server error"}],"pointer":"/paths/~1v1~1trips~1{trip_id}~1bookings~1{booking_id}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Booking","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Booking"}}},{"code":"400"},{"code":"401"},{"code":"403"},{"code":"404"},{"code":"500"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/trips/getbooking"}],"panels":[]}]},"httpPath":"/v1/trips/{trip_id}/bookings/{booking_id}"}],"content":{"contentType":"group","meta":{"name":"Trips"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Trips","showPageActions":true},{"nodeType":"markdoc","content":"Endpoints for getting trip data."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/v1/trips","summary":"List trips","prefix":{"name":"get","color":"get"},"badges":[],"link":"/trips/listtrips","deprecated":false},{"title":"/v1/trips/{trip_id}","summary":"Get trip","prefix":{"name":"get","color":"get"},"badges":[],"link":"/trips/gettrip","deprecated":false},{"title":"/v1/trips/{trip_id}/bookings","summary":"List trip bookings","prefix":{"name":"get","color":"get"},"badges":[],"link":"/trips/listtripbookings","deprecated":false},{"title":"/v1/trips/{trip_id}/bookings/{booking_id}","summary":"Get booking","prefix":{"name":"get","color":"get"},"badges":[],"link":"/trips/getbooking","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/Address":{"id":"components/schemas/Address","kind":"json-schema","title":"Address","data":{"type":"object","properties":{"country":{"type":"string","description":"The country where the address is located. May be an alpha-2 code, an alpha-3 code, or the full name of the country.","nullable":true,"example":"Brazil"},"administrative_area":{"type":"string","description":"Depending on the country, this can be a state, a province, or something equivalent to those. May be an abbreviation or the full name.","nullable":true,"example":"RJ"},"city":{"type":"string","description":"The city where the address is located.","nullable":true,"example":"Rio de Janeiro"},"postal_code":{"type":"string","description":"The postal code of the given address.","nullable":true,"example":"21941-900"},"address_line_1":{"type":"string","description":"The first line of the address.","nullable":true,"example":"Av. Vinte de Janeiro, S/N"},"address_line_2":{"type":"string","description":"The second line of the address.","nullable":true,"example":"Ilha do Governador"},"coordinates":{"allOf":[{"$ref":"#/components/schemas/Address.GeoCoordinates"},{"description":"The coordinates of the address.","nullable":true}]},"timezone":{"type":"string","description":"The timezone in the given address.","nullable":true,"example":"America/Sao_Paulo"}},"description":"A location. All fields are optional, but the object will hold as much information as possible."}},"components/schemas/Address.GeoCoordinates":{"id":"components/schemas/Address.GeoCoordinates","kind":"json-schema","title":"Address.GeoCoordinates","data":{"required":["latitude","longitude"],"type":"object","properties":{"latitude":{"type":"number","format":"double","example":-22.8145373},"longitude":{"type":"number","format":"double","example":-43.2465548}},"description":"The coordinates of an address."}},"components/schemas/AirBookingData":{"id":"components/schemas/AirBookingData","kind":"json-schema","title":"AirBookingData","data":{"required":["journeys","tickets"],"type":"object","properties":{"journeys":{"type":"array","description":"The journeys that make up this booking.","items":{"$ref":"#/components/schemas/AirBookingData.Journey"}},"tickets":{"type":"array","description":"The flight tickets in this booking.","items":{"$ref":"#/components/schemas/AirBookingData.FlightTicket"}},"redress_number":{"allOf":[{"$ref":"#/components/schemas/AirBookingData.DocumentNumber"},{"description":"The Redress Number associated with this booking.","nullable":true}]},"known_traveler_number":{"allOf":[{"$ref":"#/components/schemas/AirBookingData.DocumentNumber"},{"description":"The Known Traveler Number associated with this booking.","nullable":true}]},"type":{"type":"string"}},"description":"Air-specific booking information."}},"components/schemas/AirBookingData.CabinClass":{"id":"components/schemas/AirBookingData.CabinClass","kind":"json-schema","title":"AirBookingData.CabinClass","data":{"type":"string","description":"The cabin class of a flight.","example":"ECONOMY","enum":["ECONOMY","PREMIUM_ECONOMY","BUSINESS","FIRST"]}},"components/schemas/AirBookingData.DocumentNumber":{"id":"components/schemas/AirBookingData.DocumentNumber","kind":"json-schema","title":"AirBookingData.DocumentNumber","data":{"required":["document_number","issuing_country"],"type":"object","properties":{"issuing_country":{"type":"string","description":"The country that issued this document.","example":"BR"},"document_number":{"type":"string","description":"The actual document number.","example":"1231231"}},"description":"A document number such as a redress number or a known traveler number."}},"components/schemas/AirBookingData.Flight":{"id":"components/schemas/AirBookingData.Flight","kind":"json-schema","title":"AirBookingData.Flight","data":{"required":["arrival_time","departure_time","destination","origin"],"type":"object","properties":{"origin":{"$ref":"#/components/schemas/AirBookingData.FlightEndpoint"},"destination":{"$ref":"#/components/schemas/AirBookingData.FlightEndpoint"},"departure_time":{"allOf":[{"$ref":"#/components/schemas/Booking.Time"},{"description":"The time when the flight departs the origin."}]},"arrival_time":{"allOf":[{"$ref":"#/components/schemas/Booking.Time"},{"description":"The time when the flight arrives at the destination."}]},"duration":{"type":"string","description":"The duration of the flight in the ISO 8601 PnYnMnDTnHnMnS format.","nullable":true,"example":"PT4h20M"},"confirmation_code":{"type":"string","description":"The airline confirmation code.","nullable":true,"example":"PWZRTQ"},"cabin_class":{"allOf":[{"$ref":"#/components/schemas/AirBookingData.CabinClass"},{"description":"The cabin class for this flight.","nullable":true}]},"marketing_flight":{"allOf":[{"$ref":"#/components/schemas/AirBookingData.FlightNumber"},{"description":"The marketing flight number. Some flights are sold by one airline, but operated by another in the same alliance. This is the flight that was originally sold.","nullable":true}]},"operating_flight":{"allOf":[{"$ref":"#/components/schemas/AirBookingData.FlightNumber"},{"description":"The operating flight number. Some flights are sold by one airline, but operated by another in the same alliance. This is the flight the traveler is actually taking.","nullable":true}]},"seat":{"allOf":[{"$ref":"#/components/schemas/AirBookingData.FlightSeat"},{"description":"The seat reserved for this flight.","nullable":true}]}},"description":"A flight taken by the traveler."}},"components/schemas/AirBookingData.FlightEndpoint":{"id":"components/schemas/AirBookingData.FlightEndpoint","kind":"json-schema","title":"AirBookingData.FlightEndpoint","data":{"required":["airport_code"],"type":"object","properties":{"airport_code":{"pattern":"[A-Z]{3}","type":"string","description":"The 3-letter IATA code of the airport.","example":"GIG"},"terminal":{"type":"string","description":"The terminal name and/or number.","nullable":true,"example":"T2"},"gate":{"type":"string","description":"The gate for boarding or leaving the plane.","nullable":true,"example":"B13"},"airport_location":{"allOf":[{"$ref":"#/components/schemas/Address"},{"description":"The location of the airport.","nullable":true}]}},"description":"The place where a flight departs from or arrives at."}},"components/schemas/AirBookingData.FlightNumber":{"id":"components/schemas/AirBookingData.FlightNumber","kind":"json-schema","title":"AirBookingData.FlightNumber","data":{"required":["airline_code","number"],"type":"object","properties":{"airline_code":{"pattern":"[0-9A-Z]{2}","type":"string","description":"The IATA code for the airline.","example":"G3"},"number":{"pattern":"\\d{1,4}","type":"string","description":"The number of the flight.","example":"1234"},"airline_name":{"type":"string","description":"The name of the airline.","nullable":true,"example":"GOL Linhas Aereas S.A."}},"description":"The flight number, including carrier information."}},"components/schemas/AirBookingData.FlightSeat":{"id":"components/schemas/AirBookingData.FlightSeat","kind":"json-schema","title":"AirBookingData.FlightSeat","data":{"required":["number"],"type":"object","properties":{"number":{"type":"string","description":"The seat number.","example":"31D"},"status":{"allOf":[{"$ref":"#/components/schemas/AirBookingData.FlightSeatStatus"},{"nullable":true}]}},"description":"Seat information in a flight."}},"components/schemas/AirBookingData.FlightSeatStatus":{"id":"components/schemas/AirBookingData.FlightSeatStatus","kind":"json-schema","title":"AirBookingData.FlightSeatStatus","data":{"type":"string","description":"The status of a flight seat.","example":"CONFIRMED","enum":["PENDING","CONFIRMED","CANCELED"]}},"components/schemas/AirBookingData.FlightTicket":{"id":"components/schemas/AirBookingData.FlightTicket","kind":"json-schema","title":"AirBookingData.FlightTicket","data":{"required":["number"],"type":"object","properties":{"number":{"type":"string","description":"The ticket number provided by the airline.","example":"0017959463925"},"issue_date":{"type":"string","description":"The date when the ticket was issued.","format":"date","nullable":true,"example":"2017-12-27"}},"description":"A flight ticket."}},"components/schemas/AirBookingData.Journey":{"id":"components/schemas/AirBookingData.Journey","kind":"json-schema","title":"AirBookingData.Journey","data":{"required":["flights","status"],"type":"object","properties":{"flights":{"type":"array","description":"The flights that make up this journey.","items":{"$ref":"#/components/schemas/AirBookingData.Flight"}},"status":{"allOf":[{"$ref":"#/components/schemas/BookingStatus"},{"description":"The status of this specific journey."}]},"cabin_display_name":{"type":"string","description":"The cabin name as shown by the airline.","nullable":true,"example":"Flexible Economy"}},"description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"A journey is composed of one or more flight segments that take a passenger from an origin to a final destination. E.g. if a traveler is doing a round trip from GIG to SFO, but they need to make a connection in IAH in each direction, the booking will contain 2 journeys. The first will contain 2 segments: GIG > IAH, and IAH > SFO. The second journey will also contain 2 segments: SFO > IAH, and IAH > GIG."},"children":[],"type":"text"}],"type":"paragraph"}]}},"components/schemas/Booking":{"id":"components/schemas/Booking","kind":"json-schema","title":"Booking","data":{"required":["booking_data","created_at","id","source","status","trip_id","type","updated_at","version"],"type":"object","properties":{"id":{"type":"string","description":"The ID of the booking.","example":"booking_cl9t5dnu800040m3071dandeq"},"created_at":{"type":"string","description":"The time when the booking was created.","format":"date-time","example":"2017-12-27T15:42:30Z"},"updated_at":{"type":"string","description":"The time when the booking was last updated.","format":"date-time","example":"2017-12-27T15:42:30Z"},"trip_id":{"type":"string","description":"The ID of the trip to which this booking belongs.","example":"trip_cl9rh1n8g001e0j84w6fb4fd1"},"version":{"minimum":1,"type":"integer","description":"The current version of the booking.","format":"int32","example":2},"type":{"$ref":"#/components/schemas/Booking.Type"},"status":{"$ref":"#/components/schemas/BookingStatus"},"source":{"$ref":"#/components/schemas/Booking.Source"},"booking_data":{"$ref":"#/components/schemas/Booking.Data"},"booking_reference":{"type":"string","description":"The booking reference number shown in the dashboard and used when contacting Brex Support. This is the reference from the travel provider, not the Brex internal booking ID. May be null if the booking has no associated reference.","nullable":true,"example":"7117228246"},"trip_reference":{"type":"string","description":"The trip reference number shown in the dashboard and used when contacting Brex Support. This is the reference from the travel provider, not the Brex internal trip ID. May be null if the trip has no associated reference.","nullable":true,"example":"7117228246"},"policy":{"allOf":[{"$ref":"#/components/schemas/Booking.Policy"}],"description":"The result of evaluating the customer's travel policy against this booking, as shown to the traveler when the booking was made. Mirrors the policy information available in the booking export. May be null when no policy was evaluated for the booking.","nullable":true},"custom_fields":{"type":"array","description":"Custom field values associated with this resource.","nullable":true,"items":{"$ref":"#/components/schemas/CustomField"}}},"description":"A booking representation."}},"components/schemas/Booking.Data":{"id":"components/schemas/Booking.Data","kind":"json-schema","title":"Booking.Data","data":{"type":"object","description":"Type-specific booking data.","discriminator":{"propertyName":"type","mapping":{"LODGING":"#/components/schemas/LodgingBookingData","RAIL":"#/components/schemas/RailBookingData","CAR_RENTAL":"#/components/schemas/CarRentalBookingData","AIR":"#/components/schemas/AirBookingData"}},"oneOf":[{"$ref":"#/components/schemas/AirBookingData"},{"$ref":"#/components/schemas/CarRentalBookingData"},{"$ref":"#/components/schemas/LodgingBookingData"},{"$ref":"#/components/schemas/RailBookingData"}]}},"components/schemas/Booking.Policy":{"id":"components/schemas/Booking.Policy","kind":"json-schema","title":"Booking.Policy","data":{"required":["out_of_policy"],"type":"object","properties":{"out_of_policy":{"type":"boolean","description":"Whether the booking is out of policy, i.e. at least one travel policy rule was broken.","example":true},"violations":{"type":"array","description":"The specific travel policy rules that this booking violated. Empty when the booking is in policy.","items":{"$ref":"#/components/schemas/Booking.PolicyViolation"}}},"description":"The result of evaluating the customer's travel policy against this booking, as shown to the traveler when the booking was made. Mirrors the policy information available in the booking export. May be null when no policy was evaluated for the booking."}},"components/schemas/Booking.PolicyViolation":{"id":"components/schemas/Booking.PolicyViolation","kind":"json-schema","title":"Booking.PolicyViolation","data":{"required":["code","description"],"type":"object","properties":{"code":{"$ref":"#/components/schemas/Booking.PolicyViolationCode"},"description":{"type":"string","description":"A human-readable description of the policy violation.","example":"Fare exceeds maximum allowed"}},"description":"A travel policy rule that a booking violated."}},"components/schemas/Booking.PolicyViolationCode":{"id":"components/schemas/Booking.PolicyViolationCode","kind":"json-schema","title":"Booking.PolicyViolationCode","data":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"A machine-readable code identifying the policy rule that was violated:"},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"ordered":false,"marker":"*"},"children":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"MIN_DAYS_IN_ADVANCE"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The booking was made less than the minimum number of days in advance."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"MAX_FARE_PER_TRAVELER"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The fare exceeds the maximum allowed per traveler."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"TICKET_REFUNDABILITY"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The ticket refundability does not meet policy requirements."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"TICKET_CHANGEABILITY"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The ticket changeability does not meet policy requirements."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"AMOUNT_LIMIT_BY_FLIGHT_DURATION"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The fare exceeds the maximum allowed for the flight duration."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"ALLOWED_CABIN_CLASSES_BY_DURATION"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The cabin class is not allowed for the flight duration."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"ALLOWED_CABIN_CLASSES_BY_DURATION_DOMESTIC"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The cabin class is not allowed for the domestic flight duration."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"ALLOWED_CABIN_CLASSES_BY_DURATION_INTERNATIONAL"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The cabin class is not allowed for the international flight duration."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"MEDIAN_PRICE"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The price exceeds the median price."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"LOWEST_LOGICAL_FARE"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The price exceeds the lowest logical fare."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"MAX_STARS"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The hotel rating exceeds the maximum allowed."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"DEFAULT_NIGHTLY_RATE"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The nightly rate exceeds the maximum allowed."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"NIGHTLY_RATE_FOR_LOCATION"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The nightly rate exceeds the maximum allowed for the location."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"MAX_HOTEL_BOOKING_PRICE"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The hotel booking price exceeds the maximum allowed."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"ALLOWED_CAR_CLASSES"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The car class is not allowed."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"MAX_DAILY_RATE"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The daily rate exceeds the maximum allowed."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"OTHER"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - A policy violation that is not covered by the other codes."},"children":[],"type":"text"}],"type":"item"}],"type":"list"}],"example":"MAX_FARE_PER_TRAVELER","enum":["MIN_DAYS_IN_ADVANCE","MAX_FARE_PER_TRAVELER","TICKET_REFUNDABILITY","TICKET_CHANGEABILITY","AMOUNT_LIMIT_BY_FLIGHT_DURATION","ALLOWED_CABIN_CLASSES_BY_DURATION","ALLOWED_CABIN_CLASSES_BY_DURATION_DOMESTIC","ALLOWED_CABIN_CLASSES_BY_DURATION_INTERNATIONAL","MEDIAN_PRICE","LOWEST_LOGICAL_FARE","MAX_STARS","DEFAULT_NIGHTLY_RATE","NIGHTLY_RATE_FOR_LOCATION","MAX_HOTEL_BOOKING_PRICE","ALLOWED_CAR_CLASSES","MAX_DAILY_RATE","OTHER"]}},"components/schemas/Booking.Source":{"id":"components/schemas/Booking.Source","kind":"json-schema","title":"Booking.Source","data":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The original source of a booking:"},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"ordered":false,"marker":"*"},"children":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"BREX_TRAVEL"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The booking was created via Brex Travel."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"EXTERNAL"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The booking was manually inserted, e.g. a hotel room block for a group event."},"children":[],"type":"text"}],"type":"item"}],"type":"list"}],"example":"BREX_TRAVEL","enum":["BREX_TRAVEL","EXTERNAL"]}},"components/schemas/Booking.Time":{"id":"components/schemas/Booking.Time","kind":"json-schema","title":"Booking.Time","data":{"required":["local_time"],"type":"object","properties":{"local_time":{"type":"string","description":"The local time in the relevant location in the ISO 8601 format.","format":"date-time"},"timestamp":{"type":"string","description":"An ISO 8601 timestamp.","format":"date-time","nullable":true,"example":"2017-12-27T15:42:30Z"}},"description":"A time within a booking, including local time in the relevant location, and a timestamp when possible."}},"components/schemas/Booking.Type":{"id":"components/schemas/Booking.Type","kind":"json-schema","title":"Booking.Type","data":{"type":"string","description":"The type of a booking.","example":"AIR","enum":["AIR","CAR_RENTAL","LODGING","RAIL"]}},"components/schemas/BookingStatus":{"id":"components/schemas/BookingStatus","kind":"json-schema","title":"BookingStatus","data":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The status of the booking:"},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"ordered":false,"marker":"*"},"children":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"HOLD"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The booking is a hold, and may be canceled without being charged."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"PENDING"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - Some action needs to be completed before the booking is confirmed. Usually the action is the payment being confirmed."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"CONFIRMED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The booking is confirmed."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"COMPLETED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The booking has already happened."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"CANCELED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The booking has been canceled."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"IN_PROGRESS"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The booking is currently in progress."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"REFUNDED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - A refund has been issued. It may or may not be a full refund."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"VOIDED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - Voided is similar to (and can be treated the same as) canceled."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"PROCESSING"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The booking has been created or changed, but confirmation from the vendor has not been received yet."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"UNCONFIRMED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The booking was in the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"PROCESSING"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" state for too long and some action is probably required to get this booking confirmed."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"AIRLINE_CONTROL"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The airline has taken control of the booking and further updates may not be visible."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"PAYMENT_DECLINED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The payment for the booking has failed."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"SCHEDULE_CHANGE"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - Some change has happened to the booking schedule, e.g. the flight getting canceled and the passenger reallocated to another flight. Travel support should reach out to confirm the traveler accepts the new schedule."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"APPROVAL_REQUESTED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The booking is subject to approval, and it is waiting for a review."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"APPROVAL_DENIED"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - A reviewer has denied the booking, or the deadline to approve the booking has passed and it got canceled."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"CANCELLATION_IN_PROGRESS"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - The booking is currently being canceled."},"children":[],"type":"text"}],"type":"item"}],"type":"list"}],"example":"CONFIRMED","enum":["HOLD","PENDING","CONFIRMED","COMPLETED","CANCELED","IN_PROGRESS","REFUNDED","VOIDED","PROCESSING","UNCONFIRMED","AIRLINE_CONTROL","PAYMENT_DECLINED","SCHEDULE_CHANGE","APPROVAL_REQUESTED","APPROVAL_DENIED","CANCELLATION_IN_PROGRESS"]}},"components/schemas/BooleanListValue":{"id":"components/schemas/BooleanListValue","kind":"json-schema","title":"Boolean list value","data":{"title":"Boolean list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"type":"boolean","description":"The data of the custom field."}},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Boolean list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/BooleanValue":{"id":"components/schemas/BooleanValue","kind":"json-schema","title":"Boolean value","data":{"title":"Boolean value","required":["data_type"],"type":"object","properties":{"data":{"type":"boolean","description":"The data of the custom field.","nullable":true},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Boolean value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/CarRentalBookingData":{"id":"components/schemas/CarRentalBookingData","kind":"json-schema","title":"CarRentalBookingData","data":{"required":["car_details","reservation_details"],"type":"object","properties":{"car_details":{"$ref":"#/components/schemas/CarRentalBookingData.CarDetails"},"reservation_details":{"$ref":"#/components/schemas/CarRentalBookingData.ReservationDetails"},"type":{"type":"string"}},"description":"Car rental-specific booking information."}},"components/schemas/CarRentalBookingData.CarClass":{"id":"components/schemas/CarRentalBookingData.CarClass","kind":"json-schema","title":"CarRentalBookingData.CarClass","data":{"type":"string","description":"The kind of car.","example":"INTERMEDIATE","enum":["ECONOMY","COMPACT","INTERMEDIATE","PREMIUM","LUXURY","CONVERTIBLE","COMPACT_SUV","INTERMEDIATE_SUV","PREMIUM_SUV","LUXURY_SUV","MINI_VAN","PASSENGER_VAN","PICKUP_TRUCK","HYBRID","ELECTRIC","MINI","STANDARD","FULL_SIZE","SUV","SPORTS","SPECIAL","RECREATIONAL_VEHICLE","OTHER"]}},"components/schemas/CarRentalBookingData.CarDetails":{"id":"components/schemas/CarRentalBookingData.CarDetails","kind":"json-schema","title":"CarRentalBookingData.CarDetails","data":{"required":["display_name"],"type":"object","properties":{"display_name":{"type":"string","description":"The name of the car as displayed to the user.","example":"Intermediate car"},"car_class":{"allOf":[{"$ref":"#/components/schemas/CarRentalBookingData.CarClass"},{"nullable":true}]}},"description":"Information on a rental car."}},"components/schemas/CarRentalBookingData.RentalEndpoint":{"id":"components/schemas/CarRentalBookingData.RentalEndpoint","kind":"json-schema","title":"CarRentalBookingData.RentalEndpoint","data":{"required":["location","time"],"type":"object","properties":{"location":{"allOf":[{"$ref":"#/components/schemas/Address"},{"description":"The location where the car can be picked up or where it must be returned."}]},"time":{"allOf":[{"$ref":"#/components/schemas/Booking.Time"},{"description":"The time when the car will be available for pickup or by when it must be returned."}]}},"description":"Information about the car pickup or drop-off."}},"components/schemas/CarRentalBookingData.ReservationDetails":{"id":"components/schemas/CarRentalBookingData.ReservationDetails","kind":"json-schema","title":"CarRentalBookingData.ReservationDetails","data":{"required":["drop_off","pickup"],"type":"object","properties":{"confirmation_code":{"type":"string","description":"The confirmation code given by the vendor.","nullable":true,"example":"7003XBQ504"},"pickup":{"allOf":[{"$ref":"#/components/schemas/CarRentalBookingData.RentalEndpoint"},{"description":"Information on the car pickup."}]},"drop_off":{"allOf":[{"$ref":"#/components/schemas/CarRentalBookingData.RentalEndpoint"},{"description":"Information on the car return."}]},"rental_company":{"type":"string","description":"Name of car rental company.","nullable":true,"example":"Catch-A-Ride"}},"description":"Information on a car reservation such as pickup, drop-off, etc."}},"components/schemas/CustomField":{"id":"components/schemas/CustomField","kind":"json-schema","title":"CustomField","data":{"required":["key","value"],"type":"object","properties":{"key":{"type":"string","description":"The key of the custom field."},"value":{"allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper"},{"description":"The value of the custom field.","oneOf":[{"$ref":"#/components/schemas/StringValue"},{"$ref":"#/components/schemas/DecimalValue"},{"$ref":"#/components/schemas/BooleanValue"},{"$ref":"#/components/schemas/EnumValue"},{"$ref":"#/components/schemas/TimestampValue"},{"$ref":"#/components/schemas/DateValue"},{"$ref":"#/components/schemas/MoneyValue"},{"$ref":"#/components/schemas/OptionStringValue"},{"$ref":"#/components/schemas/StringListValue"},{"$ref":"#/components/schemas/DecimalListValue"},{"$ref":"#/components/schemas/BooleanListValue"},{"$ref":"#/components/schemas/EnumListValue"},{"$ref":"#/components/schemas/TimestampListValue"},{"$ref":"#/components/schemas/DateListValue"},{"$ref":"#/components/schemas/MoneyListValue"},{"$ref":"#/components/schemas/OptionStringListValue"}]}]}}}},"components/schemas/CustomField.ValueWrapper":{"id":"components/schemas/CustomField.ValueWrapper","kind":"json-schema","title":"CustomField.ValueWrapper","data":{"required":["data_type","value_type"],"type":"object","properties":{"value_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldValueType"},{"description":"The type of the custom field value."}]},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Base class for custom field values"}},"components/schemas/CustomField.ValueWrapper.MultipleValueWrapper":{"id":"components/schemas/CustomField.ValueWrapper.MultipleValueWrapper","kind":"json-schema","title":"CustomField.ValueWrapper.MultipleValueWrapper","data":{"required":["value_type"],"type":"object","properties":{"value_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldValueType"},{"description":"The type of the custom field value."}]}},"description":"Multiple value wrapper for custom fields","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/CustomField.ValueWrapper.SingleValueWrapper":{"id":"components/schemas/CustomField.ValueWrapper.SingleValueWrapper","kind":"json-schema","title":"CustomField.ValueWrapper.SingleValueWrapper","data":{"required":["value_type"],"type":"object","properties":{"value_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldValueType"},{"description":"The type of the custom field value."}]}},"description":"Single value wrapper for custom fields","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/CustomFieldDataType":{"id":"components/schemas/CustomFieldDataType","kind":"json-schema","title":"CustomFieldDataType","data":{"type":"string","description":"The type of the custom field data.","enum":["STRING","DECIMAL","BOOLEAN","ENUM","TIMESTAMP","DATE","MONEY","OPTION_STRING"]}},"components/schemas/CustomFieldValueType":{"id":"components/schemas/CustomFieldValueType","kind":"json-schema","title":"CustomFieldValueType","data":{"type":"string","description":"The type of the custom field value.","enum":["SINGLE_VALUE","LIST"]}},"components/schemas/DateListValue":{"id":"components/schemas/DateListValue","kind":"json-schema","title":"Date list value","data":{"title":"Date list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"type":"string","description":"The data of the custom field.","format":"date"}},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Date list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/DateValue":{"id":"components/schemas/DateValue","kind":"json-schema","title":"Date value","data":{"title":"Date value","required":["data_type"],"type":"object","properties":{"data":{"type":"string","description":"The data of the custom field.","format":"date","nullable":true},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Date value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/DecimalListValue":{"id":"components/schemas/DecimalListValue","kind":"json-schema","title":"Decimal list value","data":{"title":"Decimal list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"type":"number","description":"The data of the custom field."}},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Decimal list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/DecimalValue":{"id":"components/schemas/DecimalValue","kind":"json-schema","title":"Decimal value","data":{"title":"Decimal value","required":["data_type"],"type":"object","properties":{"data":{"type":"number","description":"The data of the custom field.","nullable":true},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Decimal value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/EnumListValue":{"id":"components/schemas/EnumListValue","kind":"json-schema","title":"Enum list value","data":{"title":"Enum list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"type":"string","description":"The data of the custom field.","format":"enum"}},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Enum list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/EnumValue":{"id":"components/schemas/EnumValue","kind":"json-schema","title":"Enum value","data":{"title":"Enum value","required":["data_type"],"type":"object","properties":{"data":{"type":"string","description":"The data of the custom field.","format":"enum","nullable":true},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Enum value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/LodgingBookingData":{"id":"components/schemas/LodgingBookingData","kind":"json-schema","title":"LodgingBookingData","data":{"required":["lodging_details","reservation_details"],"type":"object","properties":{"lodging_details":{"$ref":"#/components/schemas/LodgingBookingData.LodgingDetails"},"reservation_details":{"$ref":"#/components/schemas/LodgingBookingData.ReservationDetails"},"type":{"type":"string"}},"description":"Lodging-specific booking information."}},"components/schemas/LodgingBookingData.ContactInfo":{"id":"components/schemas/LodgingBookingData.ContactInfo","kind":"json-schema","title":"LodgingBookingData.ContactInfo","data":{"type":"object","properties":{"phone":{"type":"string","description":"The phone number of the venue.","nullable":true,"example":12345554321},"fax":{"type":"string","description":"The fax number of the venue.","nullable":true,"example":12345554321},"email":{"type":"string","description":"The email address of the venue.","nullable":true,"example":"city@hotelchain.com"}},"description":"Contact information of a venue."}},"components/schemas/LodgingBookingData.LodgingDetails":{"id":"components/schemas/LodgingBookingData.LodgingDetails","kind":"json-schema","title":"LodgingBookingData.LodgingDetails","data":{"required":["display_name"],"type":"object","properties":{"display_name":{"type":"string","description":"The name of the venue as displayed to the user.","example":"Fancy Hotel"},"contact_information":{"allOf":[{"$ref":"#/components/schemas/LodgingBookingData.ContactInfo"},{"nullable":true}]},"star_rating":{"type":"number","description":"The star rating of the hotel. Some hotels have half stars.","format":"float","nullable":true,"example":3.5},"brand_name":{"type":"string","description":"The brand name of the hotel.","nullable":true,"example":"Marriott Hotels"},"chain_name":{"type":"string","description":"The name of the hotel chain.","nullable":true,"example":"Accor Hotels"},"location":{"allOf":[{"$ref":"#/components/schemas/Address"},{"description":"The location of the hotel.","nullable":true}]}},"description":"Information on a lodging venue."}},"components/schemas/LodgingBookingData.ReservationDetails":{"id":"components/schemas/LodgingBookingData.ReservationDetails","kind":"json-schema","title":"LodgingBookingData.ReservationDetails","data":{"required":["check_in_time","checkout_time"],"type":"object","properties":{"confirmation_code":{"type":"string","description":"Confirmation code provided by the vendor.","nullable":true,"example":"7003XBQ504"},"check_in_time":{"allOf":[{"$ref":"#/components/schemas/Booking.Time"},{"description":"The time when check-in will be available."}]},"checkout_time":{"allOf":[{"$ref":"#/components/schemas/Booking.Time"},{"description":"The time limit for checkout."}]},"room":{"allOf":[{"$ref":"#/components/schemas/LodgingBookingData.Room"},{"nullable":true}]}},"description":"Information on a reservation such as check-in, checkout, etc."}},"components/schemas/LodgingBookingData.Room":{"id":"components/schemas/LodgingBookingData.Room","kind":"json-schema","title":"LodgingBookingData.Room","data":{"type":"object","properties":{"display_name":{"type":"string","description":"The name of the room as displayed to the user.","nullable":true,"example":"Standard room"},"description":{"type":"string","description":"A description of the room.","nullable":true,"example":"Superior room"},"bed_type":{"type":"string","description":"The kind of bed.","nullable":true,"example":"DOUBLE"},"bed_count":{"type":"integer","description":"The number of beds.","format":"int32","nullable":true,"example":1}},"description":"Information on a room that was booked."}},"components/schemas/Money":{"id":"components/schemas/Money","kind":"json-schema","title":"Money","data":{"required":["amount"],"type":"object","properties":{"amount":{"type":"integer","description":"The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.","format":"int64","example":700},"currency":{"type":"string","description":"The type of currency, in ISO 4217 format.","nullable":true,"example":"USD","default":"USD"}},"description":"\nMoney fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination\nof the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.\n"}},"components/schemas/MoneyListValue":{"id":"components/schemas/MoneyListValue","kind":"json-schema","title":"Money list value","data":{"title":"Money list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/Money"}},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Money list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/MoneyValue":{"id":"components/schemas/MoneyValue","kind":"json-schema","title":"Money value","data":{"title":"Money value","required":["data_type"],"type":"object","properties":{"data":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/Money"},{"description":"The data of the custom field."}]},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Money value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/OptionString":{"id":"components/schemas/OptionString","kind":"json-schema","title":"OptionString","data":{"type":"object","properties":{"option_id":{"type":"string","description":"The identifier when custom field data is of type option string.","nullable":true},"option_label":{"type":"string","description":"The label when custom field data is of type option string.","nullable":true}},"description":"Option string fields have a label and a identifier."}},"components/schemas/OptionStringListValue":{"id":"components/schemas/OptionStringListValue","kind":"json-schema","title":"Option string list value","data":{"title":"Option string list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/OptionString"}},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Option string list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/OptionStringValue":{"id":"components/schemas/OptionStringValue","kind":"json-schema","title":"Option string value","data":{"title":"Option string value","required":["data_type"],"type":"object","properties":{"data":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/OptionString"},{"description":"The data of the custom field."}]},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Option string value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/Page_Booking_":{"id":"components/schemas/Page_Booking_","kind":"json-schema","title":"Page_Booking_","data":{"required":["items"],"type":"object","properties":{"next_cursor":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/Booking"}}}}},"components/schemas/Page_Trip_":{"id":"components/schemas/Page_Trip_","kind":"json-schema","title":"Page_Trip_","data":{"required":["items"],"type":"object","properties":{"next_cursor":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/Trip"}}}}},"components/schemas/RailBookingData":{"id":"components/schemas/RailBookingData","kind":"json-schema","title":"RailBookingData","data":{"required":["journeys"],"type":"object","properties":{"journeys":{"type":"array","description":"The journeys that make up this booking.","items":{"$ref":"#/components/schemas/RailBookingData.RailJourney"}},"type":{"type":"string"}},"description":"Rail-specific booking information."}},"components/schemas/RailBookingData.RailClass":{"id":"components/schemas/RailBookingData.RailClass","kind":"json-schema","title":"RailBookingData.RailClass","data":{"type":"string","description":"The class of travel for a rail leg.","example":"SLEEPER","enum":["FIRST","STANDARD","BUSINESS","SLEEPER","STANDARD_PREMIUM","BUSINESS_PREMIUM","COACH","ROOM","EXECUTIVE"]}},"components/schemas/RailBookingData.RailJourney":{"id":"components/schemas/RailBookingData.RailJourney","kind":"json-schema","title":"RailBookingData.RailJourney","data":{"required":["legs"],"type":"object","properties":{"legs":{"type":"array","description":"The legs that make up this journey.","items":{"$ref":"#/components/schemas/RailBookingData.RailLeg"}}},"description":"A journey is composed of the legs that take a passenger from an origin to a final destination. E.g. if a traveler is going from Aberdeen to London, but they need to change trains in Edinburgh, the booking will contain 1 journey composed of 2 legs. The first leg is Aberdeen to Edinburgh, and the second is Edinburgh to London."}},"components/schemas/RailBookingData.RailLeg":{"id":"components/schemas/RailBookingData.RailLeg","kind":"json-schema","title":"RailBookingData.RailLeg","data":{"required":["arrival_time","departure_time","destination","origin"],"type":"object","properties":{"origin":{"$ref":"#/components/schemas/RailBookingData.RailStation"},"destination":{"$ref":"#/components/schemas/RailBookingData.RailStation"},"departure_time":{"allOf":[{"$ref":"#/components/schemas/Booking.Time"},{"description":"The time when the leg starts."}]},"arrival_time":{"allOf":[{"$ref":"#/components/schemas/Booking.Time"},{"description":"The time when the leg ends."}]},"duration":{"type":"string","description":"PT4h20M","nullable":true,"example":"PT4h20M"},"vehicle":{"allOf":[{"$ref":"#/components/schemas/RailBookingData.Vehicle"},{"description":"The vehicle that will be used in this leg.","nullable":true}]},"seat":{"allOf":[{"$ref":"#/components/schemas/RailBookingData.RailSeat"},{"description":"The seat that has been reserved for this leg.","nullable":true}]},"rail_class":{"allOf":[{"$ref":"#/components/schemas/RailBookingData.RailClass"},{"nullable":true}]}},"description":"A leg is a portion of the journey between two consecutive stops."}},"components/schemas/RailBookingData.RailSeat":{"id":"components/schemas/RailBookingData.RailSeat","kind":"json-schema","title":"RailBookingData.RailSeat","data":{"type":"object","properties":{"coach_number":{"type":"string","description":"The number of the coach.","nullable":true,"example":"12"},"seat_number":{"type":"string","description":"The number of the seat.","nullable":true,"example":"41"}},"description":"A seat in a train leg."}},"components/schemas/RailBookingData.RailStation":{"id":"components/schemas/RailBookingData.RailStation","kind":"json-schema","title":"RailBookingData.RailStation","data":{"type":"object","properties":{"name":{"type":"string","description":"The name of the station.","nullable":true,"example":"London - King's Cross"},"location":{"allOf":[{"$ref":"#/components/schemas/Address"},{"description":"The location of the station.","nullable":true}]},"type":{"allOf":[{"$ref":"#/components/schemas/RailBookingData.RailStationType"},{"nullable":true}]}},"description":"An endpoint in a rail leg."}},"components/schemas/RailBookingData.RailStationType":{"id":"components/schemas/RailBookingData.RailStationType","kind":"json-schema","title":"RailBookingData.RailStationType","data":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The kind of station. Some rail itineraries include taking a bus or walking between stations, and these are represented as legs in the journey."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"ordered":false,"marker":"*"},"children":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"INDIVIDUAL"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - A regular train station."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"GROUP"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - Stations grouped together, usually in a major European city. E.g. \"London, Any\"."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"METRO"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - A metro/subway station."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"BUS_STOP"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - A bus stop."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"FERRY_TERMINAL"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - A ferry terminal."},"children":[],"type":"text"}],"type":"item"}],"type":"list"}],"example":"INDIVIDUAL","enum":["INDIVIDUAL","GROUP","METRO","BUS_STOP","FERRY_TERMINAL"]}},"components/schemas/RailBookingData.Vehicle":{"id":"components/schemas/RailBookingData.Vehicle","kind":"json-schema","title":"RailBookingData.Vehicle","data":{"type":"object","properties":{"carrier":{"type":"string","description":"The carrier that operates this leg. E.g. Amtrak, Thameslink.","nullable":true,"example":"Amtrak"},"timetable_id":{"type":"string","description":"The timetable ID for the vehicle. The concept is similar to a flight number.","nullable":true,"example":"L79727"},"type":{"allOf":[{"$ref":"#/components/schemas/RailBookingData.VehicleType"},{"nullable":true}]}},"description":"A vehicle used in a train leg. Some rail itineraries include taking a bus or walking between stations, and these are represented as legs in the journey."}},"components/schemas/RailBookingData.VehicleType":{"id":"components/schemas/RailBookingData.VehicleType","kind":"json-schema","title":"RailBookingData.VehicleType","data":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The kind of vehicle to be used in a leg. Some rail itineraries include taking a bus or walking between stations, and these are represented as legs in the journey."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"ordered":false,"marker":"*"},"children":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"TRAIN"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - A regular train."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"BUS"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - A bus."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"FERRY"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - A ferry."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"WALK"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"- Walking between stations."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"TAXI"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - A taxi between stations."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"TRAM"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - Tram/light rail."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"METRO"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - Metro/subway."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"TUBE"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" - London underground."},"children":[],"type":"text"}],"type":"item"}],"type":"list"}],"example":"TRAIN","enum":["TRAIN","BUS","FERRY","WALK","TAXI","TRAM","METRO","TUBE"]}},"components/schemas/StringListValue":{"id":"components/schemas/StringListValue","kind":"json-schema","title":"String list value","data":{"title":"String list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"type":"string","description":"The data of the custom field."}},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"String list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/StringValue":{"id":"components/schemas/StringValue","kind":"json-schema","title":"String value","data":{"title":"String value","required":["data_type"],"type":"object","properties":{"data":{"type":"string","description":"The data of the custom field.","nullable":true},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"String value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/TimestampListValue":{"id":"components/schemas/TimestampListValue","kind":"json-schema","title":"Timestamp list value","data":{"title":"Timestamp list value","required":["data_type"],"type":"object","properties":{"data":{"type":"array","nullable":true,"items":{"type":"string","description":"The data of the custom field.","format":"date-time"}},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Timestamp list value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.MultipleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/TimestampValue":{"id":"components/schemas/TimestampValue","kind":"json-schema","title":"Timestamp value","data":{"title":"Timestamp value","required":["data_type"],"type":"object","properties":{"data":{"type":"string","description":"The data of the custom field.","format":"date-time","nullable":true},"data_type":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDataType"},{"description":"The type of the custom field data."}]}},"description":"Timestamp value for a custom field","allOf":[{"$ref":"#/components/schemas/CustomField.ValueWrapper.SingleValueWrapper"},{"$ref":"#/components/schemas/CustomField.ValueWrapper"}]}},"components/schemas/Traveler":{"id":"components/schemas/Traveler","kind":"json-schema","title":"Traveler","data":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/Traveler.Type"},"name":{"allOf":[{"$ref":"#/components/schemas/Traveler.Name"},{"nullable":true}]},"guest_email":{"type":"string","description":"If the traveler is a guest, this is their email.","nullable":true,"example":"guest@gmail.com"},"user_id":{"type":"string","description":"If the traveler is an employee, this is their user ID.","nullable":true,"example":"cuuser_cky0xs54b004h01pidi0pcuz1"}},"description":"Information on the person who will be traveling."}},"components/schemas/Traveler.Name":{"id":"components/schemas/Traveler.Name","kind":"json-schema","title":"Traveler.Name","data":{"type":"object","properties":{"first_name":{"type":"string","description":"The traveler's first name.","example":"John"},"middle_name":{"type":"string","description":"The traveler's middle name.","nullable":true,"example":"Paul"},"last_name":{"type":"string","description":"The traveler's last name.","example":"Doe"},"suffix":{"type":"string","description":"The suffix in the traveler's name.","nullable":true,"example":"Jr."}},"description":"The name of the traveler."}},"components/schemas/Traveler.Type":{"id":"components/schemas/Traveler.Type","kind":"json-schema","title":"Traveler.Type","data":{"type":"string","description":"Whether the trip is for an employee or a guest.","example":"EMPLOYEE","enum":["EMPLOYEE","GUEST"]}},"components/schemas/Trip":{"id":"components/schemas/Trip","kind":"json-schema","title":"Trip","data":{"required":["booker_user_id","created_at","id","status","updated_at","version"],"type":"object","properties":{"id":{"type":"string","description":"The ID of the trip.","example":"trip_cl9rh1n8g001e0j84w6fb4fd1"},"created_at":{"type":"string","description":"The time when the trip was created.","format":"date-time","example":"2017-12-27T15:42:30Z"},"updated_at":{"type":"string","description":"The time when the latest trip update happened.","format":"date-time","example":"2017-12-27T15:42:30Z"},"name":{"maxLength":100,"type":"string","description":"The name of the trip as seen in the dashboard.","nullable":true,"example":"Trip to Rio de Janeiro"},"booker_user_id":{"type":"string","description":"The ID of the user who booked the trip. If the trip was created on copilot mode, this will be the ID of the user on behalf of whom the trip was booked.","example":"cuuser_cky0xs54b004h01pidi0pcuz1"},"status":{"allOf":[{"$ref":"#/components/schemas/Trip.Status"},{"description":"The current status of the trip."}]},"traveler":{"allOf":[{"$ref":"#/components/schemas/Traveler"},{"description":"Information on the person who will be traveling.","nullable":true}]},"version":{"minimum":1,"type":"integer","description":"The current version of the trip.","format":"int32","example":2},"billable_at":{"type":"string","description":"The time when the trip became billable. If absent, the trip is currently not billable.","format":"date-time","nullable":true,"example":"2017-12-27T15:42:30Z"},"starts_at":{"type":"string","description":"The time when the first booking in the trip starts.","format":"date-time","nullable":true,"example":"2017-12-27T15:42:30Z"},"ends_at":{"type":"string","description":"The time when the last booking in the trip ends.","format":"date-time","nullable":true,"example":"2017-12-27T15:42:30Z"},"trip_reference":{"type":"string","description":"The trip reference number shown in the dashboard and used when contacting Brex Support. This is the reference from the travel provider, not the Brex internal trip ID. May be null if the trip has no associated reference.","nullable":true,"example":"7117228246"},"custom_fields":{"type":"array","description":"Custom field values associated with this resource.","nullable":true,"items":{"$ref":"#/components/schemas/CustomField"}}},"description":"A trip representation."}},"components/schemas/Trip.Status":{"id":"components/schemas/Trip.Status","kind":"json-schema","title":"Trip.Status","data":{"type":"string","description":"The current status of a trip.","example":"UPCOMING","enum":["PENDING","UPCOMING","IN_PROGRESS","COMPLETED","CANCELED","REFUNDED","VOIDED","DRAFT","DELETED","PROCESSING","UNCONFIRMED","AIRLINE_CONTROL","PAYMENT_DECLINED","SCHEDULE_CHANGE","HOLD","APPROVAL_REQUESTED","APPROVAL_DENIED","CANCELLATION_IN_PROGRESS"]}},"schema_0":{"kind":"json-schema","data":{"type":"string","nullable":true},"id":"schema_0"},"schema_1":{"kind":"json-schema","data":{"type":"integer","format":"int64","nullable":true},"id":"schema_1"},"schema_2":{"kind":"json-schema","data":{"type":"string","format":"date-time","nullable":true},"id":"schema_2"},"schema_3":{"kind":"json-schema","data":{"type":"boolean","nullable":true},"id":"schema_3"},"schema_4":{"kind":"json-schema","data":{"type":"string"},"id":"schema_4"}},"exampleStore":{},"securitySchemeStore":{"OAuth2":{"id":"OAuth2","type":"oauth2","description":"OAuth2 security scheme","flows":{"authorizationCode":{"authorizationUrl":"https://accounts-api.brex.com/oauth2/default/v1/authorize","tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access"}}}},"oAuth2ClientCredentials":{"id":"oAuth2ClientCredentials","type":"oauth2","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Refer to "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"href":"https://developer.brex.com/docs/onboarding_examples/"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"these"},"children":[],"type":"text"}],"type":"link"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" docs on how to use client credentials"},"children":[],"type":"text"}],"type":"paragraph"}],"flows":{"clientCredentials":{"tokenUrl":"https://accounts-api.brex.com/oauth2/default/v1/token","scopes":{"openid":"openid","offline_access":"offline access"}}}}},"specVersion":"3.0.1","servers":[{"url":"https://api.brex.com","description":"Production"},{"url":"https://api-staging.brex.com","description":"Staging (Note: This is not a sandbox. It will not work with customer tokens.)"}],"logo":{"imageUrl":"https://www.brex.com/logo.png","href":"https://brex.com","altText":"Brex Logo"},"specType":"openapi"},"options":{"showConsole":false,"codeSamples":{"languages":[{"lang":"curl"},{"lang":"JavaScript"},{"lang":"Node.js"},{"lang":"Python"},{"lang":"Ruby"},{"lang":"Java"}],"skipOptionalParameters":true},"mockServer":{"off":true},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/openapi/travel_api.json?download"},{"url":"/_bundle/openapi/travel_api.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false,"asyncapi":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Travel API","description":"Brex Travel External API."}},"baseSlug":"/openapi/travel_api","routesMapping":{}}