# Get FX Rate

## Method and URL

<mark style="color:green;">`GET`</mark> \[<mark style="color:orange;">BASE\_URL</mark>]/xb/fx-rate

## **Request Params**

| Key                 | Value                   |
| ------------------- | ----------------------- |
| destinationCurrency | {{destinationCurrency}} |
| sourceCurrency      | IDR                     |

## Response

**Response Body**

```json
{
    "code": "00",
    "message": "Success",
    "data": {
        "fxRate": "0.000066142872",
        "destinationFxRate": "15118.7871007476058796",
        "expiryAt": "2024-09-27T09:00:00Z"
    }
}
```

**Detail Parameter Response**

<table><thead><tr><th width="208">Parameter</th><th width="110">Data Type</th><th width="133">Requirement</th><th>Description</th></tr></thead><tbody><tr><td>code</td><td>String</td><td>M</td><td>Response code</td></tr><tr><td>message</td><td>String</td><td>M</td><td>Response description</td></tr><tr><td>data</td><td>Object</td><td>M</td><td><br></td></tr><tr><td><ul><li>fxRate</li></ul></td><td>String</td><td>M</td><td>Conversion rate from source currency to destination currency</td></tr><tr><td><ul><li>destinationFxRate</li></ul></td><td>String</td><td>M</td><td>Conversion rate from destination currency to source currency</td></tr><tr><td><ul><li>expiryAt</li></ul></td><td>String</td><td>M</td><td>FX rate object expired time in ISO-8601 format. i.e. 2024-10-02T08:36:44.967496538Z<br></td></tr></tbody></table>
