Get all corporate travelers
GET/v1/corporates/:id/travelers
Retrieves a paginated list of corporate travelers for a specific corporate account. Supports filtering by name, phone, and email.
Request
Path Parameters
Corporate ID
Query Parameters
Possible values: >= 1
Default value: 1
Page number (default: 1)
Possible values: >= 1
Default value: 10
Items per page (default: 10)
Filter by corporate ID
Filter by traveler name (case-insensitive)
Filter by phone number
Filter by email
Responses
- 200
- 404
List of corporate travelers retrieved successfully
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object[]required
The data of the paginated response
The ID of the corporate traveler
The first name of the corporate traveler
The last name of the corporate traveler
The phone of the corporate traveler
The email of the corporate traveler
The gender of the corporate traveler
The date of birth of the corporate traveler
The address of the corporate traveler
The city of the corporate traveler
The state of the corporate traveler
The zip code of the corporate traveler
The country of the corporate traveler
The job title of the corporate traveler
The department of the corporate traveler
The corp division of the corporate traveler
The manager name of the corporate traveler
The manager email of the corporate traveler
The assistant email of the corporate traveler
The corp ID of the corporate traveler
The corp PO of the corporate traveler
Whether the corporate traveler is active
The created date of the corporate traveler
The latest update date of the corporate traveler
The total number of items
The current page
The number of items per page
The total number of pages
{
"data": [
{
"_id": "1234567890",
"firstName": "James",
"lastName": "Bond",
"phone": "+1234567890",
"email": "jamesbond@goodjourney.io",
"gender": 0,
"dateOfBirth": "1990-01-01",
"address": "123 Main St",
"city": "New York",
"state": "NY",
"zipCode": "10001",
"country": "USA",
"jobTitle": "CEO",
"department": "Finance",
"corpDivision": "Finance",
"managerName": "John Doe",
"managerEmail": "john.doe@goodjourney.io",
"assistantEmail": "assistant@goodjourney.io",
"corpId": "1234567890",
"corpPo": "1234567890",
"isActive": true,
"createdDate": "2021-01-01T00:00:00.000Z",
"latestUpdate": "2021-01-01T00:00:00.000Z"
}
],
"total": 100,
"page": 1,
"limit": 10,
"totalPages": 10
}
Corporate not found