> For the complete documentation index, see [llms.txt](https://pivot-payment.gitbook.io/pivot-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pivot-payment.gitbook.io/pivot-docs/api-references/api-lists/payout-international/get-fx-rate.md).

# 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>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://pivot-payment.gitbook.io/pivot-docs/api-references/api-lists/payout-international/get-fx-rate.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
