Get Employee
Description: Get employee and last 6-month salary
- Sample Request
- Sample Response
Request Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| accountNo | Integer | Employee account No | Yes |
| bankCode | Integer | Employee bank code | Yes |
| businessId | String | eTranzact corporate identifier | Yes |
| queryRef | String | Client specific unique transaction reference | Yes |
GET {base_url}/employee?accountNo=0031038291&bankCode=123&businessId=2839202&queryRef=POLARIS8393
curl `${base_url}/employee?accountNo=0031038291&bankCode=123&businessId=2839202&queryRef=POLARIS8393`
-H "Content-type: application/json"
-H "Authorization: Bearer YOUR_SECRET_KEY"
-X GET
Response Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| status | Integer | HTTP status code | Yes |
| message | String | Description of HTTP status code | Yes |
| queryRef | String | Client specific unique transaction reference | Yes |
| profile | Object | Response data block for KYC | Yes |
| firstName | String | Employee first name | Yes |
| lastName | String | Employee last name | No |
| String | Employee email address | No | |
| phoneNo | String | Employee phone number | No |
| payeeID | String | Employee payee ID | No |
| accountNo | Integer | Employee account No | Yes |
| bankCode | Integer | Employee bank code | Yes |
| businessId | String | eTranzact corporate identifier | Yes |
| salary | Array of object | Response data block for salary data | Yes |
| year | String | Year of payment | Yes |
| month | String | Month of payment | Yes |
| amount | Float | Salary amount paid | Yes |
| activeLoan | String | Indicates if employee has an active loan with any of our partners | Yes |
GET {base_url}/employee?accountNo=0031038291&bankCode=123&businessId=2839202&queryRef=POLARIS8393
{
"status": 200,
"message": "successfull",
"queryRef ": "POLARIS8393",
"profile": {
"firstName": "John",
"lastName": "Doe",
"email": "john@etranzact.com",
"phoneNo": "08093338829",
"payeeID": "com1234",
"accountNo": 0031038291,
"bankCode ": 123,
"businessId ": "2839202"
},
"salary": [
{
"year ": "2020",
"month ": "December",
"amount": 50000.5
},
{
"year ": "2020",
"month ": "November",
"amount": 50000.5
},
{
"year ": "2020",
"month ": "October",
"amount": 50000.5
},
{
"year ": "2020",
"month ": "September",
"amount": 50000.5
},
{
"year ": "2020",
"month ": "August",
"amount": 50000.5
},
{
"year ": "2020",
"month ": "July",
"amount": 50000.5
}
],
"activeLoan": "false"
}