POST/ country
Route | {root}/v4/lookup/country |
Request type | BODY |
User level | NONE |
Requires authentication | Yes |
Response type | Array() |
Parameters
Name | Type | Nullable? | Required? | Min. | Max. | Nest | Custom |
---|---|---|---|---|---|---|---|
name | STRING | OPTIONAL | 0 | 250 | - | - | |
public_holiday_only | BOOLEAN | OPTIONAL | - | - |
Sample cURL
curl --location --request POST "{{ROOT}}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":
}
]