Emlpoyee
Working with employees you have the following features:
List the of employees per counterparty
Create employee
To create a new employee in the Counterparty you should use this endpoint.
create employees and assign roles if not empty
Counterparty GUID
branch's guid
employee's email
employee's name
employee's paternal name
employee's phone
Roles if not empty assign created employee to roles from list
employee's surname
POST /api/v1/counterparty/{counterparty_guid}/employees HTTP/1.1
Host: your_host
Content-Type: application/json
Accept: */*
Content-Length: 123
{
"branch_guid": "text",
"email": "text",
"name": "text",
"paternal_name": "text",
"phone": "text",
"roles": [
"text"
],
"surname": "text"
}
{
"employee_guid": "text",
"verified": true
}
Example of response:
{
"employee_guid": "d97ad667-d72c-4a93-b27d-568ca53c30c3", //employee's guid that is used as employee's identifier
"verified": true
}
After you created an employee they has to be verified via email.
Please replace {bank_alias}
and {email}
in the link accordingly.
https://backoffice-{bank_alias}-integrate.dcmapis.com/reset-password/?email={email}
It is expected a password is set up by the employee themselves using the verification code sent to their email.
Roles
A role contains permissions that you need to set for employees.
to set an appropriate role while creating an employee you should feel the parameter
"roles"
in the request body (as it is mentioned above);if you need to change/add/remove role of an employee look How to add a user to a role.
(optional) you may be interested to use branches for segregating employees.
to set an appropriate branch role while creating an employee you should feel the parameter
"branch_name"
in the request body (as it is mentioned above);if you need to change/add/remove the role of an employee take a look atHow to add employee to branch.
Update employee
update employee
Counterparty GUID
Employee GUID
the employee's branch
if you need to disable an employee you should make this parameter true, default it is false
the employee's login
employee's name
employee's paternal name
employee's phone
employee's surname
PUT /api/v1/counterparty/{counterparty_guid}/employees/{employee_guid} HTTP/1.1
Host: your_host
Content-Type: application/json
Accept: */*
Content-Length: 125
{
"branch_guid": "text",
"is_disabled": true,
"login": "text",
"name": "text",
"paternal_name": "text",
"phone": "text",
"surname": "text"
}
{
"guid": "text"
}
Example of response:
{
"guid": "d97ad667-d72c-4a93-b27d-568ca53c30c3" // employee's identifier for the employee that you updated
}
List the of employees per counterparty
Get employees
Counterparty GUID
Employee's GUIDs
Employee's logins
Employee's names
Include disabled
Employee's branch_guids
Offset
Limit
Ordering
GET /api/v1/counterparty/{counterparty_guid}/employees HTTP/1.1
Host: your_host
Accept: */*
[
{
"branch_guid": "text",
"branch_name": "text",
"counterparty_guid": "text",
"created_at": "text",
"guid": "text",
"is_disabled": true,
"login": "text",
"name": "text",
"paternal_name": "text",
"phone": "text",
"surname": "text",
"updated_at": "text"
}
]
In the response you can see the employees of counterparty with their parameters and total amount of employees.
Last updated