If you would like to get a list of currencies can use the following to browse through all available currencies in our catalog.
API Function: get_currencies
| Name | Type | Description |
| username | string | Your API username. You should have received this with your account |
| subscription_id | string | Your Subscription ID. You can copy or regenerate it from your API management interface. |
Response fields:
| Name | Type | Description |
| currency_id | numeric | The unique ID associated with the currency |
| currency_name | string | The name of the currency |
<?php
$api_username = '*******';
$api_subscription = '*******';
try
{
$client = new SoapClient('https://synced.io/api/v2?wsdl');
$currencies = $client->get_currencies($api_username, $api_subscription);
}
catch(Exception $e)
{
echo $e->getMessage();
}
if(!empty($currencies))
{
print_r($currencies);
}
?>