Get Employees
Get a list of employees by query params
limit | unit64 | Max results [up to 500] |
offset | unit64 | Results starts from offset item. Zero base index |
external_id | string | |
phone | string | NOTE:phone numbers must be passed in the international format (without "+" sign) as specified in RFC3966. |
string | ||
cost_centre | string | |
department | string | |
travel_policy | string | |
can_book_for_themselves | boolean |
Request
curl --request GET \
--url 'https://business-api.gett.com/v1/employees?businessId=[businessID]&limit=200&offset=0&can_book_for_themselves=true' \
--header 'Accept: application/json' \
--header 'X-Request-ID: dfgwgfrwgrwgrw'
Response
[
{
"id":"8d50ef79-2530-4924-b89e-10ed9f035d8b",
"first_name": "Zoe",
"last_name": "miller",
"email": "[email protected]",
"phone": "447921524856",
"cost_centre": "Supply",
"department": "Marketing",
"external_id": "A5124",
"cost_limit": null,
"role": "passenger",
"can_book_for_themselves": true,
"bookers": [
"34234gr",
"fert5t533",
"4545tretr3e"
],
"booker_permissions": {
"can_book_for_all_emp": true,
"can_book_for_guest": true,
"can_view_their_own_orders_only": false
},
"policy_group": {
"uuid": "90e55a13-7343-4a02-a5ad-d0d0c0edf1be",
"name": "Marketing Department"
},
"home_address": {
"lat": 51.54621215,
"lng": -0.25154644,
"address": {
"full_address": "1 plough place, london uk",
"house": "1",
"street": "Plough Pl",
"city": "london",
"country": "Great Britain",
"postcode": "EC4A 1DE",
"address_place": {
"id": "euwe09383",
"provider": "google"
}
}
},
"work_address": {
"lat": 54.1214952,
"lng": -0.5314484,
"address": {
"full_address": "65A Holly St, London UK",
"house": "65A",
"street": "Holly St",
"city": "london",
"country": "Great Britain",
"postcode": "E8 3HS",
"address_place": {
"id": "d564fd6w4f6wd",
"provider": "google"
}
}
}
}
]
Updated 10 months ago