Convert currency
Convert an amount from one currency to another
Body·
required
application/json
- Type: numberamountgreater than:0required
Amount to convert
- Type: stringfrom
Currency min length:3max length:3requiredSource currency code (ISO 4217)
- Type: stringto
Currency min length:3max length:3requiredTarget 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"
}
