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
| Name | Type | Description |
|---|---|---|
_id | ID! | Internal database identifier. |
name | String! | Country name. |
code | String! | ISO 3166-1 alpha-2 country code (e.g., "US", "GB", "FR"). |
continent | String! | Continent where the country is located. |
phoneNumberPrefix | Int! | International phone number prefix for the country. |
collectTaxesOutsideCountryOrArea | Boolean! | Whether taxes should be collected for transactions outside the country or area. |
zones | [CountryZone!]! | Tax zones within the country with specific tax rules. |
collectTaxesOnShipping | Boolean! | Whether taxes should be collected on shipping costs. |
currency | String! | ISO 4217 currency code (e.g., "USD", "EUR", "GBP"). |
currencySymbol | String! | Currency symbol (e.g., "$", "€", "£"). |
currencySymbolPosition | String! | Position of the currency symbol relative to the amount ("before" or "after"). |
formattedCurrency | String! | Formatted currency string combining symbol and position. |
languages | [String!]! | ISO 639-1 language codes used in the country (e.g., ["en", "fr"]). |
emoji | String! | Emoji flag representing the country. |
tax | CountryTax | National tax information for the country. |