Wiki source code of Currency

Last modified by Shop Team on 2023/02/13 22:56

Show last authors
1 (% class="auto-cursor-target" %)
2 \\
3
4 |=(((
5 Method
6 )))|=(((
7 URL
8 )))|=(((
9 Example
10 )))
11 |(((
12 GET
13 )))|(((
14 /api/v1/currencies/<currencyId>
15 )))|(((
16 [[https:~~/~~/api.spreadshirt.net/api/v1/currencies/1?mediaType=json>>url:https://api.spreadshirt.net/api/v1/currencies/1?mediaType=json||shape="rect"]]
17 )))
18
19 \\
20
21 Allows to look up meta data of your shop's currency. Most notably, fields "symbol", "decimalCount" and "pattern" 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/currencies/1",
28 "id" : "1",
29 "plain" : "EUR",
30 "isoCode" : "EUR",
31 "symbol" : "€",
32 "decimalCount" : 2,
33 "pattern" : "% $"
34 }
35 {{/code}}
36
37 (% class="auto-cursor-target" %)
38 \\