supportedCountries
Overview
Get a list of all supported countries, with detailed information. For UI and internationalization purposes.
Special Considerations
- Does not take any inputs.
Inputs
N/A
Returns
Promise<PublicCountryDetailed[]>
Returns a promise containing the following array of data (for each country):
PublicCountryDetailed: {
name: string,
code: COUNTRY,
phoneCountryCode: string,
phoneFormat: string,
currency: CURRENCY,
personalTaxIdName: string,
businessTaxIdName: string,
businessTaxIdFormat: string,
routingNumberName: string,
zoneCodeName: string,
postalCodeName: string,
dateFormat: [string],
directDebitServiceName: string,
}
Example
Running this query:
query {
supportedCountries {
name
currency
}
}
Gives us:
{
"data": {
"supportedCountries": [
{
"name": "Australia",
"currency": "AUD"
},
{
"name": "Canada",
"currency": "CAD"
},
{
"name": "United Kingdom",
"currency": "GBP"
},
{
"name": "United States",
"currency": "USD"
}
]
}
}
Common Errors
N/A