GET currencies/show
This method returns information related with a currency. A single currency is returned by each call
Resource URL
Parameters
Name | Type | Description | |||||||||
token (mandatory) | String | The token retrieved from the login method | |||||||||
currency_identifier (mandatory) | Currency Identifier | The identifier of the currency that should be returned as a result. The allowed currency identifier fields are the following:
| |||||||||
fields_set (optional) | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Restrictions
- It is mandatory to specify one of the semi-optional parameters.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved currency |
code | String | The code of the currency |
prefix | String | The prefix symbol for the specified currency |
suffix | String | The suffix symbol for the specified currency |
life_cycle_state | String | The life cycle state of the retrieved currency which can be EFFECTIVE or NOT_EFFECTIVE Available from CRM.COM R14.0.0 |
integer_part_name | String | The integer part name for the specified currency |
decimal_part_name | String | The decimal part name for the specified currency |
Log Information Object | The log information related with the retrieved currency |
Referred Objects Response Data
Examples
GET currencies/list
This method returns information regarding all Currencies which are configured in CRM.COM to be set as an accounts receivable's currency. Multiple currencies are returned by each call.
Resource URL
Parameters
Name | Type | Description |
token (mandatory) | String | The token retrieved from the login method |
number_of_results (optional) | Number | The number of results that can be retrieved through each call Available from CRM.COM R13.0.0 |
offset (optional) | Number | Defines the number of entities that should be skipped from the results. If it is set to 0 then none results should be skipped, otherwise the results will begin from the provided offset number Available from CRM.COM R13.0.0 |
fields_set (optional) | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Restrictions
- It is mandatory to specify one of the semi-optional parameters.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved currency |
code | String | The code of the currency |
prefix | String | The prefix symbol for the specified currency |
suffix | String | The suffix symbol for the specified currency |
life_cycle_state | String | The life cycle state of the retrieved currency which can be EFFECTIVE or NOT_EFFECTIVE Available from CRM.COM R14.0.0 |
integer_part_name | String | The integer part name for the specified currency |
decimal_part_name | String | The decimal part name for the specified currency |
Log Information Object | The log information related with the retrieved currency |
Referred Objects Response Data
Examples
GET currencies/convert_to_default_currency
This method accepts a value (price rate, amount) in a currency and converts it into CRM.COM's default currency value. The method uses the effective currency period rate in order to convert the value into the default currency.
Resource URL
Parameters
Name | Type | Description | |||||||||
token (mandatory) | String | The token retrieved from the login method | |||||||||
value (mandatory) | Number | The value that will be converted into CRM.COM default currency value | |||||||||
currency_identifier (mandatory) | Currency Identifier | The identifier of the provided value's related currency. The allowed currency identifier fields are the following:
|
Restrictions
- It is mandatory to specify one of the semi-optional parameters.
Response Data
Name | Type | Description |
value | Number | The value that was converted into CRM.COM default currency value |
converted_value | Number | The value converted into default currency value |
default_currency | Currency Object | CRM.COM's default currency as this is defined in General Settings |
currency_period_rate | Currency Period Rate Object | The Currency Rate Period which was used in order to convert the provided value into default currency value. |
Referred Objects Response Data
Examples
GET currencies/convert_from_default_currency
This method accepts a value (price rate, amount) in CRM.COM's default currency and converts it into another currency value. The method uses the effective currency period rate in order to convert the value from the default currency to the required currency.
Resource URL
Parameters
Name | Type | Description | |||||||||
token (mandatory) | String | The token retrieved from the login method | |||||||||
value (mandatory) | Number | The value in CRM.COM's default currency that will be converted into another currency's value | |||||||||
currency_identifier (mandatory) | Currency Identifier | The identifier of the currency to which value will be converted to. The allowed currency identifier fields are the following:
|
Restrictions
- It is mandatory to specify one of the semi-optional parameters.
Response Data
Name | Type | Description |
value | Number | The value in the default currency |
converted_value | Number | The converted value into the required currency |
default_currency | Currency Object | CRM.COM's default currency as this is defined in General Settings |
currency_period_rate | Currency Period Rate Object | The Currency Rate Period of the Currency to which the value in the default currency was converted |
Referred Objects Response Data