query

country

Get details about a particular country and its address format customized for different business scenarios.
Arguments
countryIsoCode
String!
Required
The ISO 3166-1 alpha-2 code representing the country (e.g., "IN" for India, "US" for the United States).
Response
Details about the country’s currency, including code, name, and symbol (e.g., {"code": "USD", "name": "United States Dollar", "symbol": "$"}).
display_name
String
User-friendly version of the geographical data, which may be more descriptive or formatted differently.
Address-related information in a country.
Levels within the country (e.g., states, cities) and their slugs (e.g., [{"name": "State", "slug": "state"}, {"name": "City", "slug": "city"}]).
iso2
String
Two-letter ISO code representing the country.
iso3
String
Three-letter ISO code representing the country.
name
String
The name of the packaging.
phone_code
String
International dialing code for the country (e.g., "+1").
timezones
[String]
List of time zones used in the country (e.g., ["America/New_York", "America/Los_Angeles"]).
Unique identifier for the country.
latitude
String
Geographical latitude of the country.
longitude
String
Geographical longitude of the country.
type
String
Indicates the type of object.
Query
1query country($countryIsoCode: String!) {
2 country(countryIsoCode: $countryIsoCode) {
3 currency {
4 code
5 symbol
6 name
7 }
8 display_name
9 fields {
10 serviceability_fields
11 }
12 hierarchy {
13 name
14 slug
15 }
16 iso2
17 iso3
18 name
19 phone_code
20 timezones
21 id
22 latitude
23 longitude
24 type
25 }
26}
Try it
Input Variables
1{
2 "countryIsoCode": "countryIsoCode"
3}
Response
1{
2 "country": {
3 "currency": {
4 "code": "code",
5 "symbol": "symbol",
6 "name": "A name"
7 },
8 "display_name": "display_name",
9 "fields": {
10 "serviceability_fields": [
11 "serviceability_fields"
12 ]
13 },
14 "hierarchy": [
15 {
16 "name": "A name",
17 "slug": "slug"
18 }
19 ],
20 "iso2": "iso2",
21 "iso3": "iso3",
22 "name": "A name",
23 "phone_code": "phone_code",
24 "timezones": [
25 "timezones"
26 ],
27 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
28 "latitude": "latitude",
29 "longitude": "longitude",
30 "type": "type"
31 }
32}