Staff key inside data; the password is never included. Any configured custom staff fields appear under the nested CustomModel object.apikey header). A request without valid credentials returns 401; a session user without staff-management permission returns 403.curl --location --globoff 'https://.daftara.com/api2/staff/1' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Content-Type: application/json'{
"code": 200,
"result": "successful",
"data": {
"Staff": {
"id": 512,
"added_by": 0,
"role_id": 1,
"name": "",
"home_phone": "string",
"business_Phone": "string",
"mobile": "string",
"fax": "string",
"country_code": "str",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"postal_code": "string",
"notes": "string",
"email_address": "user@example.com",
"last_login": "2018-05-10 00:42:00",
"active": true,
"deleted": true,
"created": "2018-05-10 00:42:00",
"follow_up_status": null,
"hourly_rate": null,
"hourly_rate_currency_code": "USD",
"default_store_id": 0,
"default_treasury_id": 0,
"language_code": "string",
"maximum_general_discount": null,
"CustomModel": {
"property1": "string",
"property2": "string"
}
}
}
}