Business Unit
This API is to get all the list of available business unit. This is an authendicated API so we need to pass bearer token in request header to access the data.
Query parameters
-
regions array
-
clients array
-
status string
active, inactive, lapsed, potential
-
is_deleted boolean
0 or 1
GET
/business-unit/list
curl \
-X GET https://api-console.logezy.co/v1/business-unit/list \
-H "Authorization: Bearer your-access-token" \
-H "Accept: application/json"
Response examples (200)
{
"data": [
{
"id": 214,
"break": null,
"email": "aksdkasjdajsda@gmail.com",
"status": "active",
"regions": [
{
"id": 1,
"name": "Birmingham"
}
],
"ref_code": "BU73DE214",
"client_id": 193,
"client_name": "A Care",
"address_line": "Mahatma Gandhi Main Rd, Kanka, Ranchi, Jharkhand 834001, India",
"mobile_number": "+78 9654-21",
"portal_access": "no_account",
"has_split_rate": 1,
"business_unit_name": "A Care -Flat Rate",
"holiday_split_rate": 0,
"client_invoice_milage_rate": null,
"candidate_invoice_milage_rate": null
}
],
"status": "success",
"message": "Business unit list retrieved successfully."
}