Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | (% class="auto-cursor-target" %) | ||
| 2 | \\ | ||
| 3 | |||
| 4 | |=((( | ||
| 5 | Method | ||
| 6 | )))|=((( | ||
| 7 | URL | ||
| 8 | )))|=((( | ||
| 9 | Example | ||
| 10 | ))) | ||
| 11 | |((( | ||
| 12 | GET | ||
| 13 | )))|((( | ||
| 14 | /api/v1/countries/<countryId> | ||
| 15 | )))|((( | ||
| 16 | [[https:~~/~~/api.spreadshirt.net/api/v1/countries/1?mediaType=json>>url:https://api.spreadshirt.net/api/v1/countries/1?mediaType=json||shape="rect"]] | ||
| 17 | ))) | ||
| 18 | |||
| 19 | \\ | ||
| 20 | |||
| 21 | 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). | ||
| 22 | |||
| 23 | \\ | ||
| 24 | |||
| 25 | {{code language="js" title="Example Payload"}} | ||
| 26 | { | ||
| 27 | "href" : "https://api.spreadshirt.net/api/v1/countries/1", | ||
| 28 | "id" : "1", | ||
| 29 | "name" : "Germany", | ||
| 30 | "isoCode" : "DE", | ||
| 31 | "thousandsSeparator" : ".", | ||
| 32 | "decimalPoint" : ",", | ||
| 33 | "length" : | ||
| 34 | { | ||
| 35 | "unit" : "cm", | ||
| 36 | "unitFactor" : 1 | ||
| 37 | }, | ||
| 38 | "currency" : | ||
| 39 | { | ||
| 40 | "href" : "https://api.spreadshirt.net/api/v1/currencies/1", | ||
| 41 | "id" : "1" | ||
| 42 | }, | ||
| 43 | "currencyPattern" : "% $", | ||
| 44 | "defaultLanguage" : | ||
| 45 | { | ||
| 46 | "href" : "https://api.spreadshirt.net/api/v1/languages/1", | ||
| 47 | "id" : "1" | ||
| 48 | }, | ||
| 49 | "defaultVatRate" : 19 | ||
| 50 | } | ||
| 51 | {{/code}} | ||
| 52 | |||
| 53 | (% class="auto-cursor-target" %) | ||
| 54 | \\ |