Skip to content

ConvertCurrency

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

Possible Gateways

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)
AMOUNTAmount to convert/The amount given in the request
FROMCurrency to convert from/The original currency of the amount
TOCurrency to convert to/The currency the command converted the amount into
CONVERTED_AMOUNTThe amount after the convertion
RATEConvertion rate used to convert the amount