Get Single Employee
GET/api/employees/:id
Get Single Employee
Request
Path Parameters
id integerrequired
Header Parameters
X-Company-Slug stringrequired
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
email string
name stringnullable
surname stringnullable
phone_number stringnullable
language stringnullable
birthday datenullable
created_at date-time
updated_at date-time
id string
meta
object
gender ContactGenderEnum (string)nullable
Possible values: [male
, female
, other
]
company_id string
user_id string
is_admin boolean
is_active boolean
working_hours
object
monday stringnullable
tuesday stringnullable
wednesday stringnullable
thursday stringnullable
friday stringnullable
saturday stringnullable
sunday stringnullable
is_api_user boolean
default_photo_id stringnullable
working_type string
earning_type stringnullable
salary number
min_goal_amount number
bonus number
sales_bonus number
notes stringnullable
start_date datenullable
end_date datenullable
path stringnullable
url string
services string[]
{
"email": "[email protected]",
"name": "ahmet",
"surname": "özel karakter ĞÜŞ",
"phone_number": "541213423431",
"language": "tr",
"birthday": "2003-02-06",
"created_at": "2024-07-28T00:01:47.730+03:00",
"updated_at": "2024-07-28T00:01:47.730+03:00",
"id": "22",
"meta": {
"gender": "male",
"company_id": "2",
"user_id": "12",
"is_admin": true,
"is_active": true,
"working_hours": {
"monday": "07:30-18:00",
"tuesday": "07:30-18:00",
"wednesday": "07:30-18:00",
"thursday": "07:30-18:00",
"friday": "07:30-18:00",
"saturday": "07:30-18:00",
"sunday": "07:30-18:00"
},
"is_api_user": false,
"default_photo_id": 1,
"working_type": "full-time",
"earning_type": null,
"salary": 0,
"min_goal_amount": 0,
"bonus": 0,
"sales_bonus": 0,
"notes": null,
"start_date": null,
"end_date": null,
"path": null,
"url": "https://krembi.s3.fr-par.scw.cloud/p/no-photo.png",
"services": []
}
}
Loading...