Calls: {root}/{version}/lookup


POST/v4/country
Route {root}/v4/lookup/country
Request type BODY
User level NONE
Requires authentication Yes
Response type Array()

Parameters

Sample cURL

curl --location --request POST "{{ROOT}}/v4/lookup/country/" \
-H "Authorization: Bearer {{BEARER_TOKEN}}" \
-H "app-id:{{APP_ID}}" \
-H "Content-Type: application/json" \
-H "Accept-Encoding: gzip" \
-H "accept: */*" \
--data '{"name": "sample","public_holiday_only": false}'

Sample response

[
{
"object_name":"country_id",
"type":"Int32",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"name",
"type":"String",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"code_2",
"type":"String",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"code_3",
"type":"String",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"eu_member",
"type":"Boolean",
"is_nullable":false,
"nest":null,
"custom":null
"note":
}
]
GET/v4/values
Route {root}/v4/lookup/values
Request type URL
User level NONE
Requires authentication Yes
Response type Array()
Sample call{root}/v0/lookup/values

Sample cURL

curl --location --request GET "{{ROOT}}/v4/lookup/values/-H "Authorization: Bearer {{BEARER_TOKEN}}" \
-H "app-id:{{APP_ID}}" \
-H "Content-Type: application/json" \
-H "Accept-Encoding: gzip" \
-H "accept: */*" \

Sample response

[
{
"object_name":"id",
"type":"Int32",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"name",
"type":"String",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"type",
"type":"String",
"is_nullable":false,
"nest":null,
"custom":null
"note":
}
]


Don't have a WhosOff account yet?

Instantly reduce time spent on leave management with your FREE, no obligation trial today!
Sign up today and get until Sunday, 26th July 2026 to try the full service, for Free!

Get your instant FREE account today