Convert currency

​

Convert an amount from one currency to another

Body·

required
application/json
  • Amount to convert

  • Source currency code (ISO 4217)

  • Target currency code (ISO 4217)

Responses

  • application/json
  • application/json
Request Example for post/currencies/convert
curl https://crm.dreamhub.ai/api/v1/settings/currencies/convert \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "amount": 1,
  "fromCurrency": "",
  "toCurrency": ""
}'
{
  "amount": 1,
  "from_currency": "string",
  "to_currency": "string",
  "converted_amount": 1,
  "rate": 1,
  "date": "string"
}