Trips
A trip entity allows you to maintain information about the trips of your employees.
End Points
Create a trip
Retrive list of all trips
Update a trip
Retrive details of a trip
Delete a trip request
Approve a trip request
Reject a trip request
Cancel a trip
Close a trip
Attribute
trip_id
long
Unique ID generated by the server. This is used as a identifier.
is_international
boolean
Whether the trip is an international trip.
is_round_trip
boolean
Whether the trip is a round trip.
is_visa_required
boolean
Whether visa is required for the trip.
start_date
string
Start date of the trip.
end_date
string
End date of the trip.
trip_number
string
Trip's unique number
business_purpose
string
Purpose of the trip.
description
string
Any comments about the trip.
departure
string
Place of departure.
destination_country
string
Destination Country of the trip.
destination_city
string
Destination City of the trip.
meal_preference
string
Meal preference for the traveller in flight.
seat_preference
string
Seat preference for the traveller in flight.
is_billable
boolean
Whether the customer needs to be billed for the trip.
customer_id
long
Unique ID of the customer associated with the trip.
project_id
long
Unique ID of the project associated with the trip.
project_name
string
Name of the project associated with the trip.
customer_name
string
Name of the customer associated with the trip.
currency_id
long
Unique ID for currency.
currency_code
string
Currency code.
exchange_rate
double
Exchange rate of the currency with respect to base currency.
price_precision
integer
Amount precision upto n decimal points.
budget_amount
double
Budget amount for the trip.
bcy_budget_amount
double
Budget amount for the trip in base currency.
status
string
Status of the trip.
custom_fields
array
Custom field added.
customfield_id
long
Unique ID for the Custom Field.
data_type
string
Data Type of the Custom Field.
is_active
boolean
Whether the Custom Field is Active. It can either be
true
or false
. is_mandatory
boolean
Whether the Custom Field is Mandatory. It can either be
true
or false
. label
string
Label for the Custom Field.
value
string
Value entered in the Custom Field.
submitted_date
string
Date of trip submission.
last_submitted_date
string
Date of previous submission.
approved_date
string
Date of trip Approval.
approver_id
long
Unique ID for the current approver.
approver_name
string
Current approver name.
approver_email
string
Email ID of the current approver.
submitted_to_id
long
Unique ID of the person to whom the trip was submitted first.
submitted_to_name
string
Name of the person to whom the trip was submitted first.
submitted_to_email
string
Email ID of the person to whom the trip was submitted first.
submitted_to_employee_no
string
Employee Number of the person to whom the trip was submitted first.
submitted_to_department_name
string
Department Name of the person to whom the trip was submitted first.
submitted_by
long
Unique ID of the submitter.
submitter_name
string
Name of the submitter.
submitter_email
string
Email ID of the submitter.
submitter_employee_no
string
Employee Number of the submitter.
submitter_department_name
string
Department Name of the submitter.
employee_number
string
Employee Number of the owner of the trip.
department_id
long
Unique ID of the department.
department_name
string
Name of the department.
air_travel_itinerary
array
Air Travel Itinerary
is_accomodation
boolean
Whether accomodation is provided.
is_personal_travel
boolean
Whether it is a personal trip.
line_item_id
long
Unique ID for identifying the line item. This is server generated.
departure_state
string
Departure State.
departure_date
string
Date of departure.
description
string
Any comments about the trip.
departure_city
string
Departure City.
departure_country
string
Departure Country.
arrival_country
string
Arrival Country
travel_mode
string
Mode of transportation. Possible values are
flight
,by_road
, train
, bus
arrival_state
string
Arrival State
arrival_city
string
Arrival City
arrival_date
string
Date of arrival.
order
integer
Order of the line item.
created_time
string
Time when the trip was created.
created_date
string
Date when the trip was created.
last_modified_time
string
Time when the trip was last modified.
documents
array
Details of Documents attached.
file_name
string
Name of the Document.
file_size_formatted
string
Formatted value of File Size.
attachment_order
integer
Order of the Attached Document.
document_id
long
Unique Id for the Document.
created_by_id
long
Unique ID of the person who created the trip.
created_by_name
string
Name of the person who created the trip.
user_id
long
Unique ID of the owner of the trip.
user_name
string
Name of the User.
user_email
string
Email Id of the User.
created_by_email
string
Email ID of the person who created the trip.
Create a trip
Create a new trip.
Arguments
currency_id
long
Unique ID for currency.
exchange_rate
double
Exchange rate of the currency with respect to base currency.
budget_amount
double
Budget amount for the trip.
is_international
boolean
(Required)
Whether the trip is an international trip.
is_visa_required
boolean
Whether visa is required for the trip.
business_purpose
string
Purpose of the trip.
is_billable
boolean
Whether the customer needs to be billed for the trip.
customer_id
long
Unique ID of the customer associated with the trip.
project_id
long
Unique ID of the project associated with the trip.
destination_country
string
(Required)
Destination Country of the trip.
meal_preference
string
Meal preference for the traveller in flight.
seat_preference
string
Seat preference for the traveller in flight.
line_items
array
line_item_id
long
Unique ID for identifying the line item. This is server generated.
order
integer
Order of the line item.
departure_date
string
Date of departure.
departure_country
string
Departure Country.
departure_state
string
Departure State.
departure_city
string
Departure City.
arrival_date
string
Date of arrival.
arrival_country
string
Arrival Country
arrival_state
string
Arrival State
arrival_city
string
Arrival City
travel_mode
string
Mode of transportation. Possible values are
flight
,by_road
, train
, bus
is_personal_travel
boolean
Whether it is a personal trip.
is_accomodation
boolean
Whether accomodation is provided.
description
string
Any comments about the trip.
custom_fields
array
Custom field added.
customfield_id
long
Unique ID for the Custom Field.
value
string
Value entered in the Custom Field.
attendees
array
Other travellers of the trip.
user_id
long
Unique ID of the owner of the trip.
trip_number
string
(Required)
Trip's unique number
Retrive list of all trips
List all existing trips.
Query Parameters
filter_by
object
For filtering trips based on status.
Type.Trip%2CStatus.Submitted
string
List all submitted trip requests
Type.Trip%2CStatus.Approved
string
List all approved trip requests
Type.Trip%2CStatus.Rejected
string
List all rejected trip requests
Type.Trip%2CStatus.Closed
string
List all closed trips
Type.Trip%2CStatus.Cancelled
string
List all the cancelled trips.
Update a trip
Update an existing Trip.
Arguments
currency_id
long
Unique ID for currency.
budget_amount
double
Budget amount for the trip.
is_international
boolean
(Required)
Whether the trip is an international trip.
is_visa_required
boolean
Whether visa is required for the trip.
business_purpose
string
Purpose of the trip.
is_billable
boolean
Whether the customer needs to be billed for the trip.
customer_id
long
Unique ID of the customer associated with the trip.
project_id
long
Unique ID of the project associated with the trip.
destination_country
string
(Required)
Destination Country of the trip.
meal_preference
string
Meal preference for the traveller in flight.
seat_preference
string
Seat preference for the traveller in flight.
line_items
array
line_item_id
long
Unique ID for identifying the line item. This is server generated.
order
integer
Order of the line item.
departure_date
string
Date of departure.
departure_country
string
Departure Country.
departure_state
string
Departure State.
departure_city
string
Departure City.
arrival_date
string
Date of arrival.
arrival_country
string
Arrival Country
arrival_state
string
Arrival State
arrival_city
string
Arrival City
travel_mode
string
Mode of transportation. Possible values are
flight
,by_road
, train
, bus
is_personal_travel
boolean
Whether it is a personal trip.
is_accomodation
boolean
Whether accomodation is provided.
description
string
Any comments about the trip.
custom_fields
array
Custom field added.
customfield_id
long
Unique ID for the Custom Field.
value
string
Value entered in the Custom Field.
attendees
array
Other travellers of the trip.
user_id
long
Unique ID of the owner of the trip.
trip_number
string
(Required)
Trip's unique number
Retrive details of a trip
Retrive details of an existing trip.
Delete a trip request
Delete a trip request. Approved, Closed and Cancelled trips cannot be deleted.
Approve a trip request
Approve a submitted trip request.
Reject a trip request
Reject a submitted trip request.
Arguments
comments
array
description
string
Any comments about the trip.
commented_by_id
long
Unique ID of the person who commented.
commented_by
string
Name of the User Commented.
Cancel a trip
Cancel a trip.
Arguments
comments
array
description
string
Any comments about the trip.
commented_by_id
long
Unique ID of the person who commented.
commented_by
string
Name of the User Commented.
Close a trip
Close an approved trip.