Client

Pada halaman Employee Client ini Anda dapat menggunakan metode :

1. GET
  • Get detail Employee Clients with employeeNo parameter

Tujuan : Untuk mendapatkan detail klien dari Karyawan dengan parameter employeeNo

Method : GET
API Endpoint : [[baseurl]]/api/integration/v1/employee/clients?active=[[value]]&employeeNo=[[employeenumber]]

๐Ÿ“Catatan Parameter [[value]] diisi dengan “true” jika data karyawan tersebut aktif atau “false” jika data karyawan tersebut tidak aktif. Dan parameter [[employeenumber]] diisi dengan nomor karyawan yang diinginkan.

HEADER

X-TenantID: [[tenantid]]
Authorization: Bearer [[accesstoken]]
CONSUME VIA CURL

curl --location --request GET '[[baseurl]]/api/integration/v1/employee/clients?active=[[value]]&employeeNo=[[employeenumber]]' 
--header 'X-TenantID: [[tenantid]]' 
--header 'Authorization: Bearer [[accesstoken]]'

๐Ÿ“Catatan Untuk mengetahui [[baseurl]], dan [[tenantid]], Anda dapat mempelajarinya pada halaman Integration Credential. Dan untuk [[accesstoken]] dapat dipelajari pada halaman Authorization Token.

API Response :

[
  {
    "employeeId": "eba2b46b-929c-11eb-97ce-0adbcc9eaaa8",
    "employeeNo": "1219003",
    "details": [
      {
        "id": "3d1a6398-bb55-4636-9649-1b9627cdf731",
        "clientId": "14164573-0d24-11ec-817f-560003594849",
        "clientName": "GIT",
        "clientProjectId": "aba9f96b-9561-45d9-a059-e9e536812acc",
        "clientProjectName": "XL",
        "role": "Functional",
        "startDate": "2021-03-01",
        "endDate": "2021-06-30",
        "estimatedRevenue": 2500000,
        "active": true
      },
      {
        "id": "196178b7-6a10-494c-99b6-bafebfd0454d",
        "clientId": "14164573-0d24-11ec-817f-560003594849",
        "clientName": "GIT",
        "clientProjectId": "141c4fa1-0d24-11ec-817f-560003594849",
        "clientProjectName": "StarConnect",
        "role": "Technical",
        "startDate": "2021-01-01",
        "endDate": "2021-03-31",
        "estimatedRevenue": 1000000,
        "active": true
      }
    ]
  }
]