CentralNic Reseller Homepage
CentralNic Reseller Homepage

ConvertCurrency

Converts a decimal amount from one currency to another currency with the current exchange rate.

Possible Gateways

The command ConvertCurrency is available via the following gateways:

Required Parameters

The following parameters are standard parameters for this command.

Command

COMMAND = ConvertCurrency
AMOUNT = (DECIMAL)
FROM = (TEXT)
TO = (TEXT)

Response

code = (INT)
description = (TEXT)
property[AMOUNT][0] = (DECIMAL)
property[FROM][0] = (TEXT)
property[TO][0] = (TEXT)
property[CONVERTED_AMOUNT][0] = (DECIMAL)
property[RATE][0] = (DECIMAL)

Attributes

AMOUNT Amount to convert/The amount given in the request
FROM Currency to convert from/The original currency of the amount
TO Currency to convert to/The currency the command converted the amount into
CONVERTED_AMOUNT The amount after the convertion
RATE Convertion rate used to convert the amount

We domains
-