On this Work Structure Location page you can use the method :
1. GET
- Get List of Locations based on active parameter
Objective : To get a list of company locations based on active parameters
Method : GET
API Endpoint : [[baseurl]]/api/integration/v1/locations?active=[[value]]
📝Notes Parameter [[value]] filled with “true” if the company's location data is active or “false” if the company's location data is not active.
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]]'
📝Notes To find out [[baseurl]], And [[tenantid]], You can learn about it on the page Integration Credential. And for [[accesstoken]] can be studied on the page 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
}
]