Get details of a user
This endpoint retrieves a single user's data across general, work and sensitive information. The information one might receive will differ depending on the requester access levels on the platform.
Get one user's info
To get user details, send a GET request to:
https://api.marcopayroll.com/api:eZ5RDmx2/api/get-user-details
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
Name
Type
Required
Description
email
string
Email of user whom which details you would like to retrieve
customer_id
number
Unique id assigned Vendor-Managed Customers (Contact Marco for more information)
Parameter Example
{
"customer_id": "1",
"email": "[email protected]"
}Response
{
"id": 2232,
"access_admin": false,
"access_payroll": false,
"access_time": false,
"name": "Zhounan",
"platform_email": "[email protected]",
"status": "Regular",
"offboarding_reason": "",
"staff_list": [
"[email protected]",
"[email protected]",
"[email protected]"
],
"birthdate": "2000-12-18",
"gender": "Female",
"highest_education": "",
"nationality": "CN",
"personal_email": "[email protected]",
"phone": "",
"emergency_name": "",
"emergency_email": "",
"emergency_phone": "",
"emergency_relationship": "",
"job_title": "testing",
"job_scope": "",
"location": "Dalian",
"work_email": "[email protected]",
"job_start_date": "2021-03-02",
"probation_end_date": "2022-10-08",
"last_working_day": null,
"host_country": "CN",
"host_country_engagement_type": "EOR",
"is_expat": true,
"is_intern": false,
"host_country_is_local": true,
"weekend": [
"Saturday",
"Sunday"
],
"reporting_officer": {
"name": "Admin Manager",
"platform_email": "[email protected]"
},
"home_country_specific_datas": [
{
"id": null,
"edt": "Work Permit",
"value": null
},
{
"id": null,
"edt": "Marital Status",
"value": null
},
{
"id": 3568,
"edt": "Degree Certificate",
"value": 34091
},
{
"id": null,
"edt": "Religion",
"value": null
}
],
"host_country_specific_datas": [
{
"id": 1114,
"edt": "Chinese Name",
"value": "张周楠"
},
{
"id": 3692,
"edt": "ID",
"value": 35293
},
{
"id": null,
"edt": "Social Benefit Certificate",
"value": null
},
{
"id": null,
"edt": "Employment Separation Certificate",
"value": null
},
{
"id": 1116,
"edt": "Start Date of First Job",
"value": "2020-07-01"
},
{
"id": null,
"edt": "Province",
"value": null
},
{
"id": null,
"edt": "Individual Pension Plan Payment Certificate",
"value": null
},
{
"id": null,
"edt": "Child Education",
"value": null
},
{
"id": null,
"edt": "Continuing Education",
"value": null
},
{
"id": null,
"edt": "Housing Rent",
"value": null
},
{
"id": null,
"edt": "Elderly Care",
"value": null
},
{
"id": null,
"edt": "Illness Medical Care",
"value": null
}
],
"profile_type": "Manager Only",
"company_specific_datas": [
{
"id": 3556,
"cdt": "First Name",
"value": "Zhang"
},
{
"id": 1213,
"cdt": "Last Name",
"value": "Zhounan 1"
},
{
"id": 3709,
"cdt": "Birth Certificate",
"value": 35491
},
{
"id": 1233,
"cdt": "Employee ID",
"value": "12453154574"
}
],
"home_country": "SG",
"home_country_is_local": false,
"home_country_engagement_type": "EOR"
}{
"error": "Invalid request"
}Last updated