/convert-currency

Endpoint Information


Method: GET
Endpoint URL: https://node.nodetrigger.com/api/convert-currency
Content Type: application/json

Required Parameters:

  • amount: The amount you wish to convert (e.g., 100).
  • source_currency: The currency you are converting from (e.g., USD).
  • target_currency: The currency you want to convert to (e.g., EUR).

Example Requests

GET https://node.nodetrigger.com/api/convert-currency?amount=100&source_currency=USD&target_currency=EUR

Notes

  • Ensure that the currencies you specify are in valid ISO 4217 format (e.g., USD, EUR).
  • All parameters (amount, source_currency, target_currency) are required for a successful API call.
  • If any of the required parameters are missing or incorrect, you will receive an error message stating “Missing required parameters” or “Invalid source or target currency.”
  • If there is an issue with connecting to the external exchange rates provider, you might receive an error message stating “Unable to retrieve conversion rate.”

“`