Location

Pada halaman Work Structure Location ini Anda dapat menggunakan metode :

1. GET
  • Get List of Locations based on active parameter

Tujuan : Untuk mendapatkan daftar lokasi perusahaan berdasarkan parameter active

Method : GET
API Endpoint : [[baseurl]]/api/integration/v1/locations?active=[[value]]

๐Ÿ“Catatan Parameter [[value]] diisi dengan “true” jika data lokasi perusahaan tersebut aktif atau “false” jika data lokasi perusahaan tersebut tidak aktif.

HEADER

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

curl --location --request GET '[[baseurl]]/api/integration/v1/locations?active=[[value]]' 
--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 :

[
  {
    "id": "4bbbfb88-8a3c-11ec-a56c-560003594849",
    "name": "Kantor Pusat",
    "description": "Kantor Pusat",
    "locationGroupId": "e53d4b91-f065-4324-94b8-ef9dd9a7c3ee",
    "locationGroupName": "Head Office",
    "mainPhone": "083516843212",
    "otherPhone": "083516843311",
    "minimumWage": null,
    "address": "Jalan Casablanca No. 12",
    "province": "DKI Jakarta",
    "city": "Jakarta Selatan",
    "district": null,
    "subDistrict": null,
    "postalCode": "14430",
    "npwpNo": null,
    "npwpName": null,
    "taxAuthorizeEmployeeId": null,
    "taxAuthorizeEmployeeName": "",
    "timezone": 7,
    "toleranceInMeter": 100,
    "latitude": -6.22485159,
    "longitude": 106.8402171,
    "active": true
  }
]