# Currency single rate

REST API, Service version 1.0.0

> API reference: [`GET /currency/1.0/rate`](https://benomad.com/dev/doc/bemap-api/api/map-context/currency-rate.md)

To get single currency rate for a currency code.

## Summary
1. Request
 1. Parameters
2. Response
 1. Details of fields
 2. Response samples

## Request
The request must be sent with the HTTP method `GET`. 

URI: `/bgis/service/currency/1.0/rate`

Sample: `/bgis/service/currency/1.0/rate?code=FJD`

### __Parameters__
No parameters are required by this service.

## Response
Return the currency rate of the input currency code.

### Details of fields

- `lastUpdate` (integer (int64)): Time stamp of data will be updated.
- `rate` (Currency): Rate of currency.
  - `updateDate` (integer (int64)): Update date, time stamp in milliseconds.
  - `base` (string): Base of rate. Currency ISO 4217 Code.
  - `code` (string): Currency ISO 4217 Code.
  - `rate` (number (float)): Rate of currency.
  - `label` (string): Label / name of currency.

### Response samples

JSON Sample:
```javascript
{
    "lastUpdate":1559896137641,
    "rate":{
        "base":"EUR",
        "code":"FJD",
        "rate":2.416988,
        "label":"Fijian Dollar"
    }
}
```
