Space Invoices provides informational queries for a list of 250 countries, covering aspects such as English names, native names, currencies, taxes, and more. While all countries are present in the list, data about local taxes and currencies for some less common countries may not be available. We continually update our country information collection as it's used for matching organizations created through our API.
We always welcome suggestions on how we can improve this feature, so feel free to get in touch with us if you have any ideas or feedback.
Please note that due to pagination limitations, it's not possible to list all 250 countries in this response. However, you can refer to the Space Invoices API documentation on pagination on how to load all results.
Endpoints:
- GET /v1/Countries
The Country object
Parameters
-
name string
-
alpha2Code string
-
alpha3Code string
-
nativeName string
-
numericCode string
-
taxes array[object]
-
states array[object]
-
currency string
-
translations array[object]
-
union string
-
defaults array[object]
Country specific default overrides
{
"name": "string",
"alpha2Code": "string",
"alpha3Code": "string",
"nativeName": "string",
"numericCode": "string",
"taxes": [{}],
"states": [{}],
"currency": "string",
"translations": [{}],
"union": "string",
"defaults": [{}]
}
Find Countries
GET /v1/Countries
Parameters
Query
-
filter string optional
Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string (`{"where":{"something":"value"}}`). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.
const response = await fetch('https://api.spaceinvoices.com/v1/Countries', {
method: 'GET',
headers: {
'Authorization': 'ACCESS_TOKEN',
'content-type': 'application/json'
}
});
Login to auto-populate your access token.
Your access token is displayed in examples.
Prerequisite: npm install node-fetch
curl -X GET https://api.spaceinvoices.com/v1/Countries \
-H 'Authorization: ACCESS_TOKEN' \
-H 'Content-Type: application/json'
Login to auto-insert your own access token.
Your access token displayed in examples.
import requests
url = 'https://api.spaceinvoices.com/v1/Countries'
headers = {
'Authorization': 'ACCESS_TOKEN',
'content-type': 'application/json',
}
response = requests.get(url, params={}, headers=headers)
Login to auto-insert your own access token.
Your access token displayed in examples.
Response:
[
{
"name": "string",
"alpha2Code": "string",
"alpha3Code": "string",
"nativeName": "string",
"numericCode": "string",
"taxes": [{}],
"states": [{}],
"currency": "string",
"translations": [{}],
"union": "string",
"defaults": [{}]
}
]