The Reference API allows you to easily access a list of supported Countries, States, TimeZones and Currencies.
https://reference.azure.net/v1
[
{
"Id": 1,
"Code": "CA",
"Name": "Canada",
"Version": 1,
"States": [
{
"Name": "Alberta",
"Code": "AB"
},
...
]
}
]
Name | Description |
---|---|
Id (Integer ) |
Identifier |
Code (String ) |
Country Code. Uses the ISO 3166-1 alpha-2 standard |
Name (String ) |
Country name |
Version (Integer ) |
Latest version number |
States (Array[State]) | States/Provinces |
{
"Name": "Alberta",
"Code": "AB"
}
Name | Description |
---|---|
Name (String ) |
Country name |
Code (String ) |
State/Province Code. Based off the ISO 3166-2 standard |
[
{
"Id": "Alaskan Standard Time",
"Name": "(UTC-09:00) Alaska",
"SupportsDaylightSavingTime": true
}
]
Name | Description |
---|---|
Id (String ) |
Identifier |
Name (String ) |
Name |
SupportsDaylightSavingTime (Boolean ) |
A flag to indicate if this TimeZone observes Daylight Savings Time |
To represent a Currency symbol in unicode, use the format &#(Code);
, for USD this would be $
which is displayed as $
[
{
"Id": 106,
"Name": "United States Dollar",
"Code": "USD",
"Symbol": [
36
],
"Version": 1
}
]
Name | Description |
---|---|
Id (Integer ) |
Identifier |
Name (String ) |
Currency Name |
Code (String ) |
Identifier for the Currency |
Symbol (Array[integer] ) |
Unicode decimal value for symbols associated with this currency |
Version (Integer ) |
Latest version number |
GET /Countries
GET /Countries
Accept: application/json
HTTP 200 Content-Type: application/json
[
{
"Id": 1,
"Code": "CA",
"Name": "Canada",
"Version": 1,
"States": [
{
"Name": "Alberta",
"Code": "AB"
}
]
}
]
Array[Country]
GET /TimeZones
GET /TimeZones
Accept: application/json
HTTP 200 Content-Type: application/json
[
{
"Id": "Alaskan Standard Time",
"Name": "(UTC-09:00) Alaska",
"SupportsDaylightSavingTime": true
}
]
Array[TimeZone]
Currency resources are returned in ascending alphabetical order by Code.
GET /Currencies
GET /Currencies
Accept: application/json
HTTP 200 Content-Type: application/json
[
{
"Id": 106,
"Name": "United States Dollar",
"Code": "USD",
"Symbol": [
36
],
"Version": 1
}
]
Array[Currency]
Here is the API -> https://swaggerhub.com/apis/notadoctor/References/1.0.0
NOTE: This is done using OpenAPI version 3 which is still in beta and unfortunately has no Markdown support.