Skip to main content
POST
/
api
/
v2.1
/
customer
/
organization
/
{organizationId}
/
employee
Add employee (alias)
curl --request POST \
  --url https://sandbox.finhub.cloud/api/v2.1/customer/organization/{organizationId}/employee \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'User-Agent: <user-agent>' \
  --header 'X-Forwarded-For: <x-forwarded-for>' \
  --header 'X-Forwarded-From: <x-forwarded-from>' \
  --header 'X-Tenant-ID: <x-tenant-id>' \
  --header 'deviceId: <deviceid>' \
  --header 'platform: <platform>' \
  --data '
{
  "person": {
    "fullName": "Jane Compliance",
    "email": "compliance.1773494456556@acmecorp.com",
    "firstName": "Jane",
    "lastName": "Compliance",
    "middleName": "<string>",
    "dateOfBirth": "1990-03-25",
    "nationality": "Lithuania",
    "gender": "1",
    "phoneNumber": "+37068076104",
    "countryCode": "<string>",
    "names": [
      {
        "value": "<string>",
        "type": "<string>"
      }
    ],
    "contacts": [
      {
        "type": "<string>",
        "value": "<string>",
        "isPrimary": true
      }
    ],
    "addresses": [
      {
        "id": "<string>",
        "addressLine1": "<string>",
        "addressLine2": "<string>",
        "city": "<string>",
        "state": "<string>",
        "country": "<string>",
        "postalCode": "<string>",
        "addressType": "<string>"
      }
    ]
  },
  "position": "COMPLIANCE_OFFICER",
  "roles": [
    "COMPLIANCE_OFFICER",
    "TRANSACTION_APPROVER",
    "EMPLOYEE",
    "ADMIN_USER"
  ],
  "responsibility": "Compliance Management",
  "department": "Compliance",
  "organizationRole": "ACCOUNT_OWNER",
  "status": "ACTIVE",
  "sharePercentage": 123,
  "ultimatePercentage": 123,
  "groupId": "<string>",
  "documentId": "<string>"
}
'
{
  "success": true,
  "data": {
    "employees": [
      {
        "employeeId": "emp_12345",
        "firstName": "Alice",
        "lastName": "Worker",
        "email": "alice.worker@acme.com",
        "department": "Finance",
        "role": "ACCOUNTANT",
        "status": "ACTIVE",
        "hiredDate": "2023-03-15"
      }
    ],
    "pagination": {
      "total": 25,
      "page": 0,
      "size": 20
    }
  }
}

Organization Employees API

APIs for managing employees and their roles within business organizations.
Base URL: https://sandbox.finhub.cloud

Available Operations

List Employees

GET /employees

Add Employee

POST /employees

Update Roles

PUT /employees/{id}/roles

List Employees

Retrieves all employees for an organization with their assigned roles.
For complete details on authentication and headers, refer to the Standard HTTP Headers reference documentation.

Request

organizationId
string
required
Organization identifier
Authorization
string
required
Bearer token for authentication
X-Tenant-ID
string
required
Tenant identifier
department
string
Filter by department
role
string
Filter by role

Code Examples

curl -X GET "https://sandbox.finhub.cloud/api/v2.1/customer/organization/org_12345/employees?department=Finance" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "X-Tenant-ID: 97e7ff29-15f3-49ef-9681-3bbfcce4f6cd" \
  -H "X-Forwarded-From: e2e-test" \
  -H "User-Agent: YourApp/1.0" \
  -H "platform: web" \
  -H "deviceId: 356938035643809"
{
  "success": true,
  "data": {
    "employees": [
      {
        "employeeId": "emp_12345",
        "firstName": "Alice",
        "lastName": "Worker",
        "email": "alice.worker@acme.com",
        "department": "Finance",
        "role": "ACCOUNTANT",
        "status": "ACTIVE",
        "hiredDate": "2023-03-15"
      }
    ],
    "pagination": {
      "total": 25,
      "page": 0,
      "size": 20
    }
  }
}

Add Employee

Adds a new employee to the organization (requires ADMIN role).

Request

organizationId
string
required
Organization identifier
person
object
required
Employee personal information
position
string
required
Employee position within the organizationExample: "COMPLIANCE_OFFICER"
roles
string[]
required
Array of role identifiersValid Roles:
  • COMPLIANCE_OFFICER
  • TRANSACTION_APPROVER
  • EMPLOYEE
  • ADMIN_USER
Example: ["COMPLIANCE_OFFICER", "TRANSACTION_APPROVER", "EMPLOYEE", "ADMIN_USER"]
department
string
Department nameExample: "Compliance"

Code Examples

curl -X POST "https://sandbox.finhub.cloud/api/v2.1/customer/organization/{organizationId}/employee" \
  -H "Accept: application/json, text/plain, */*" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "X-Tenant-ID: 97e7ff29-15f3-49ef-9681-3bbfcce4f6cd" \
  -H "X-Forwarded-From: e2e-test" \
  -H "platform: web" \
  -H "deviceId: 356938035643809" \
  -d '{
    "person": {
      "firstName": "Jane",
      "lastName": "Compliance",
      "email": "compliance@acmecorp.com",
      "phoneNumber": "+37068076104",
      "dateOfBirth": "1990-03-25",
      "nationality": "Lithuania",
      "gender": "1",
      "fullName": "Jane Compliance"
    },
    "position": "COMPLIANCE_OFFICER",
    "roles": ["COMPLIANCE_OFFICER", "TRANSACTION_APPROVER", "EMPLOYEE", "ADMIN_USER"],
    "department": "Compliance"
  }'
{
  "success": true,
  "data": {
    "employeeId": "emp_67890",
    "userId": "user_11111",
    "status": "PENDING_ACTIVATION",
    "createdAt": "2024-01-15T10:30:00Z"
  }
}

Remove Employee

Removes an employee from the organization.

Code Examples

curl -X DELETE "https://sandbox.finhub.cloud/api/v2.1/customer/organization/org_12345/employees/emp_67890" \
  -H "Accept: application/json, text/plain, */*" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "X-Tenant-ID: 97e7ff29-15f3-49ef-9681-3bbfcce4f6cd" \
  -H "X-Forwarded-From: e2e-test" \
  -H "platform: web" \
  -H "deviceId: 356938035643809"

Employee Roles

RoleDescription
ADMINFull organization access
OPERATORTransaction operations
ACCOUNTANTFinancial reporting
VIEWERRead-only access

Response Codes

CodeDescription
200Employees retrieved/updated successfully
201Employee added successfully
204Employee removed successfully
400Invalid request data or role validation failed
403Access denied
404Organization not found
500Internal server error

API Schema Reference

For the complete OpenAPI schema specification, see the API Schema Mapping document.

Headers

X-Organization-ID
string

Organization identifier header (must match path)

Example:

"b4c3d4e7-f8a9-0123-b4c5-d6e7f8a9012b"

User-Agent
string
required

Browser user agent

Example:

"Mozilla/5.0"

X-Forwarded-For
string
required

Client/application Ip address

Example:

"192.168.0.1"

X-Forwarded-From
string
required

Client/application identifier for request source tracking

Example:

"playground"

X-Tenant-ID
string
required

Tenant identifier

Example:

"97e7ff29-15f3-49ef-9681-3bbfcce4f6cd"

X-User-Roles
string

Comma-separated user roles

Example:

"ADMIN_USER,COMPLIANCE_OFFICER"

platform
string
required

Client platform identifier. Also accepted as sec-ch-ua-platform

Example:

"web"

deviceId
string
required

Device identifier

Example:

"e2e-test-device"

Authorization
string
required

Bearer token from admin or customer session creation

Example:

"Bearer <token>"

Path Parameters

organizationId
string
required

Organization identifier (UUID)

Example:

"b4c3d4e7-f8a9-0123-b4c5-d6e7f8a9012b"

Body

application/json
person
object
required
position
string
required
Example:

"COMPLIANCE_OFFICER"

roles
string[]
required
Example:
[
"COMPLIANCE_OFFICER",
"TRANSACTION_APPROVER",
"EMPLOYEE",
"ADMIN_USER"
]
responsibility
string
Example:

"Compliance Management"

department
string
Example:

"Compliance"

organizationRole
string
Example:

"ACCOUNT_OWNER"

status
string
Example:

"ACTIVE"

sharePercentage
number<float>
ultimatePercentage
number<float>
groupId
string
documentId
string

Response

200 - application/json

Employee added successfully

Standard API response wrapper used by all endpoints

code
integer

HTTP status code

Example:

200

data
object

Response from adding an employee to an organization

message
string

Human-readable status message

Example:

"Success"