post https://api-lib.bambu.life/api/country/v2/convertCurrency
This API can be used for converting from one base currency to another.
The following table describes the parameters for the Convert Currency API:
Name | Data Type | Technical Description | Mandatory | Sample Value | Functional Description |
---|---|---|---|---|---|
amount | Number | amount after conversion | Y | 1438250 | Passed as input from the front end |
fromCurrencyCode | String | base currency | Y | USD | Should be passed as input from the front end |
toCurrencyCode | String | required conversion currency | Y | IDR | Can either be input from the front end or hardcoded in the front end |
currencyRate | Number | conversion rate | Y | 14382.5 | Conversion rate as of that day. This value is derived from fixer.io |