/accounts/{accountId}/countries
Get a list of countries for your account.
| Name | In | Default | Constraints | Description | |
|---|---|---|---|---|---|
x-auth-token |
header | The authentication token | |||
accountId |
required | path | int | the unique identifier of the account | |
filterId |
query | |
optional saved Filter.Country ID; empty string for all | ||
page |
query | 0 |
int | zero-based page index | |
size |
query | 10 |
int | number of items per page |
<pagedData>
<records>...</records>
<totalElements>...</totalElements>
</pagedData>
{
"pagedData" : {
"records" : [ { }, { } ],
"totalElements" : 12345
}
}
/accounts/{accountId}/countries/{countryId}
Get a single country by its id.
| Name | In | Default | Constraints | Description | |
|---|---|---|---|---|---|
x-auth-token |
header | The authentication token | |||
accountId |
required | path | int | the unique identifier of the account | |
countryId |
required | path | int | the unique identifier of the country |
<country>
<id>...</id>
<code>UK</code>
<name>United Kingdom</name>
<standardVat>
<id>...</id>
<percentValue>19</percentValue>
</standardVat>
<reducedVat>
<id>...</id>
<percentValue>19</percentValue>
</reducedVat>
<currency>
<id>...</id>
<code>EUR</code>
<symbol>€</symbol>
<name>Euro</name>
</currency>
<pricePrecision>2</pricePrecision>
<priceFractionalDigits>2</priceFractionalDigits>
<default>...</default>
</country>
{
"country" : {
"id" : 12345,
"code" : "UK",
"name" : "United Kingdom",
"standardVat" : {
"id" : 12345,
"percentValue" : 19.0
},
"reducedVat" : {
"id" : 12345,
"percentValue" : 19.0
},
"currency" : {
"id" : 12345,
"code" : "EUR",
"symbol" : "€",
"name" : "Euro"
},
"pricePrecision" : 2,
"priceFractionalDigits" : 2,
"default" : true
}
}