Skip to main content
Aria Knowledge Central

get_client_currencies_m Sample Call and Response

This example shows a client retrieving the list of currencies assigned to that client, based on the get_client_currencies_m method defined in plsql_m_r73.yml.

The example shows every field the method accepts, since the only inputs are the client_no and auth_key fields common to nearly every Aria API call. It does not attempt to filter the currency list, since the method does not offer a filter argument.

Sample call

{
  "rest_call": "get_client_currencies_m",
  "output_format": "json",
  "client_no": 4009,
  "auth_key": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"
}

This call has no arguments beyond client_no and auth_key; get_client_currencies_m always returns the full list of currencies configured for the client. The rest_call and output_format fields are added by the REST layer.

Sample response

{
  "error_code": 0,
  "error_msg": "",
  "client_currency": [
    {
      "currency_cd": "usd",
      "currency_name": "US Dollar",
      "currency_short_name": "Dollar",
      "iso_4217n": 840,
      "currency_symbol": "$",
      "currency_html": "$",
      "default_ind": 1
    },
    {
      "currency_cd": "eur",
      "currency_name": "Euro",
      "currency_short_name": "Euro",
      "iso_4217n": 978,
      "currency_symbol": "€",
      "currency_html": "€",
      "default_ind": 0
    },
    {
      "currency_cd": "gbp",
      "currency_name": "British Pound",
      "currency_short_name": "Pound",
      "iso_4217n": 826,
      "currency_symbol": "£",
      "currency_html": "£",
      "default_ind": 0
    }
  ]
}

An error_code value of zero together with an empty error_msg indicates that Aria found and returned the client's currency list successfully. The client_currency field is an array because a client is typically configured to bill in more than one currency; this example shows three representative entries, but a client active in many regions could have several more. The default_ind field is a boolean value; only the usd entry shows a value of one, meaning that currency is the client's default, while the eur and gbp entries show a value of zero. This example omits the error_details field.

TOP
  • Was this article helpful?