Contents
Get Currency - Plugixa Multi Currency for WooCommerce
GET /plugixa-multi-currency/v1/currencies/{code}
One currency, by its code or its id.
Needs a user with the plugixa_multi_currency_view capability (signed in with an Application Password, or the login cookie with an X-WP-Nonce header). Administrators hold it; see Capabilities.
Request
GET https://your-store.example/wp-json/plugixa-multi-currency/v1/currencies/EUR
Path parameters
| Name | Type | Description |
|---|---|---|
code |
string |
The currency’s ISO code (EUR, any case) or its numeric id |
Responses
200 OK.
{
"success": true,
"data": {
"id": 2,
"code": "EUR",
"enabled": true,
"sort": 20,
"symbol": "€",
"position": "right_space",
"decimals": 2,
"thousand_sep": ".",
"decimal_sep": ",",
"flag": "EU",
"in_switcher": true,
"rate": "0.9099181073",
"rate_source": "ecb",
"rate_locked": false,
"margin_pct": "1",
"margin_fixed": "0",
"rounding": {
"price": {
"step": "0",
"mode": "nearest"
},
"shipping": {
"step": "0",
"mode": "nearest"
},
"fee": {
"step": "0",
"mode": "nearest"
}
},
"checkout_mode": "selected",
"rate_updated_at": "2026-11-20 16:20:17",
"created_at": "2026-11-19 16:05:53",
"updated_at": "2026-11-20 16:20:17",
"name": "Euro",
"is_base": false
}
}
Fields as in List Currencies.
Errors
| Status | Code | When |
|---|---|---|
401 / 403 |
plugixa_multi_currency_forbidden |
The caller lacks the capability. |
404 |
plugixa_multi_currency_not_found |
The currency is not in your list: This currency is not in your list. |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-store.example/wp-json/plugixa-multi-currency/v1/currencies/EUR" \
-u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-store.example/wp-json/plugixa-multi-currency/v1/currencies/EUR');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => getenv('WP_USER') . ':' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-store.example/wp-json/plugixa-multi-currency/v1/currencies/EUR', {
headers: {
'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
},
});
const { data } = await response.json();
Quick Links
Share