Air travel

Retrieve all AirTravelSegment

get

Retrieve all AirTravelSegment that belong to a company

Authorizations
Query parameters
per_pageintegerOptional

limit of records per page

Example: 10
pageintegerOptional

page number

Example: 2
traveler_namestringOptional

This field is used to filter by air-travel name. (LIKE)

Example: test name
currencystringOptional

This field is used to filter by air-travel currency.

Example: USD
sort_bystringOptional

This parameter is used to sort the records by a specific field (created_at,traveler_name)

Example: traveler_name
sort_dirstringOptional

Order type(asc or desc)

Example: asc
Responses
200

Successful operation

application/json
get
/air-travel

Store an AirTravel

post

Store an AirTravel for a particular compny.

Authorizations
Body

create AirTravel request body data

traveler_namestringOptional

name of the air-travel

Example: test name
traveler_emailstringOptional

traveler_email of the air-travel

Example: [email protected]
spend_amountnumberOptional

spend_amount of the air-travel

Example: 2000.32
currencystringOptional

currency of the air-travel, by default is USD

Example: USD
Responses
200

Successful operation

application/json
post
/air-travel

Get air-travel

get

obtain information about a air-travel

Authorizations
Path parameters
idstringRequired

ID of The AirTravel

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
Responses
200

Successful operation

application/json
get
/air-travel/{id}

Update AirTravel

put

Update an AirTravel for a company

Authorizations
Path parameters
idstringRequired

ID of The AirTravel

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
Body

update AirTravel request body data

traveler_namestringOptional

name of the air-travel

Example: test name
traveler_emailstringOptional

traveler_email of the air-travel

Example: [email protected]
spend_amountnumberOptional

spend_amount of the air-travel

Example: 2000.32
currencystringOptional

currency of the air-travel, by default is USD

Example: USD
Responses
200

Successful operation

application/json
put
/air-travel/{id}

Delete air-travel

delete

remove air-travel

Authorizations
Path parameters
idstringRequired

ID of The AirTravel

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
Responses
200

Successful operation

application/json
delete
/air-travel/{id}

Last updated