Staff
This domain serves for requests related to retrive staff details.
Get Assigned Staff
POSTRetrieves staff details based on the provided Quote Number.
Request Paramters
string domain |
Value should be staff |
Required |
string action |
Value should be get_assigned_staff |
Required |
object data |
Contains input parameters. | Required |
string quote_no |
Relevent quote number. | Required |
Sample Request Body
{
"domain":"staff",
"action": "get_assigned_staff",
"data":{
"quote_no":"Q07240092"
}
}
Response Paramters
string status |
This indicate the status of the response. success is the expected value. |
string message |
This explains the reson for status. |
object data |
This contain result data object of the API call. |
Sample Response
{
"status": "success",
"data": {
"status": "success",
"message": "Assigned Staff Read",
"data": null
}
}
Get All Staff
POSTRetrieves details of all staff members associated with the current account.
Request Paramters
string domain |
Value should be staff |
Required |
string action |
Value should be get_all_staff |
Required |
object data |
Empty object. | Required |
Sample Request Body
{
"domain":"staff",
"action": "get_all_staff",
"data":{}
}
Response Paramters
string status |
This indicate the status of the response. success is the expected value. |
string message |
This explains the reson for status. |
object data |
This contain list of result data objects of the API call. |
string id |
The ID of the staff member. |
string first_name |
The first name of the staff member. |
string last_name |
The last name of the staff member. |
Sample Response
{
"status": "success",
"data": {
"status": "success",
"message": "All Staff Read",
"data": [
{
"id": "982",
"first_name": "Jhon",
"last_name": "Doe"
},
{
"id": "8704",
"first_name": "Jane",
"last_name": "Doe"
},
]
}
}