Skip to main content

Country Object

Description

Represents a country with tax rules, currency, language, and regional information.

Declaration

type Country {
_id: ID!
name: String!
code: String!
continent: String!
phoneNumberPrefix: Int!
collectTaxesOutsideCountryOrArea: Boolean!
zones: [CountryZone!]!
collectTaxesOnShipping: Boolean!
currency: String!
currencySymbol: String!
currencySymbolPosition: String!
formattedCurrency: String!
languages: [String!]!
emoji: String!
tax: CountryTax
}

Fields

NameTypeDescription
_idID!Internal database identifier.
nameString!Country name.
codeString!ISO 3166-1 alpha-2 country code (e.g., "US", "GB", "FR").
continentString!Continent where the country is located.
phoneNumberPrefixInt!International phone number prefix for the country.
collectTaxesOutsideCountryOrAreaBoolean!Whether taxes should be collected for transactions outside the country or area.
zones[CountryZone!]!Tax zones within the country with specific tax rules.
collectTaxesOnShippingBoolean!Whether taxes should be collected on shipping costs.
currencyString!ISO 4217 currency code (e.g., "USD", "EUR", "GBP").
currencySymbolString!Currency symbol (e.g., "$", "€", "£").
currencySymbolPositionString!Position of the currency symbol relative to the amount ("before" or "after").
formattedCurrencyString!Formatted currency string combining symbol and position.
languages[String!]!ISO 639-1 language codes used in the country (e.g., ["en", "fr"]).
emojiString!Emoji flag representing the country.
taxCountryTaxNational tax information for the country.