Method | URL | Example |
---|---|---|
GET | /api/v1/countries/<countryId> | https://api.spreadshirt.net/api/v1/countries/1?mediaType=json |
Allows to look up localization data of the country your shop is based in. Most notably, fields "decimalPoint", "thousandsSeparator" and "currencyPattern" can be used to format prices in a localized way (as described in the tutorial).
Example Payload
{ "href" : "https://api.spreadshirt.net/api/v1/countries/1", "id" : "1", "name" : "Germany", "isoCode" : "DE", "thousandsSeparator" : ".", "decimalPoint" : ",", "length" : { "unit" : "cm", "unitFactor" : 1 }, "currency" : { "href" : "https://api.spreadshirt.net/api/v1/currencies/1", "id" : "1" }, "currencyPattern" : "% $", "defaultLanguage" : { "href" : "https://api.spreadshirt.net/api/v1/languages/1", "id" : "1" }, "defaultVatRate" : 19 }