get https://app.ecwid.com/api/v3//currencyByCountry?countryCode=US&lang=en
Query parameters
Name | Type | Description |
---|---|---|
countryCode | string | Optional parameter allowing getting specific currency and country match. Response will contain all currencies and countries if countryCode is not specified. Country code must be in ISO 639-1 format |
lang | string | Optional parameter for changing response language. Response will be in English if lang is not specified. |
Response
A JSON object with the following fields in an array for every country:
Field | Type | Description |
---|---|---|
countryCode | string | Two-digit country code in ISO 639-1 format |
currencyCode | string | Three-digit currency code in ISO 4217 format |
currencyName | string | Currency name in specified language |
prefix | string | Currency prefix symbol |
suffix | string | Currency suffix symbol |
decimalPlaces | string | Quantity of decimal places for currency subunit |