# Foreign Exchange

## Scope

This applies to scenarios where end users are making an exchange:

1. From foreign currency (USD, GBP, EUR, CNY, TZS, UGX, or RWF) to KES
2. From KES to foreign currency (USD, GBP, EUR, CNY, TZS, UGX, or RWF)&#x20;

## Steps

{% stepper %}
{% step %}

### Query Live FX rate

Call endpoint `/query/v2/getForeignExchangeRate` to initiate a transfer request
{% endstep %}

{% step %}

### Initiate FX Request

Call endpoint `/trans/v2/applyForFcExchange` to initiate a transfer request

Status: `1-SUBMITTED`
{% endstep %}

{% step %}

### Confirm OTP

Call endpoint `/common/sendOtp` to request for OTP, filling the value of `applicationId` to `businessId` parameter. Call endpoint `/common/confirmOperation` to confirm the OTP code received.

Status: `2-PROCESSING`

{% hint style="info" %}
The endpoint `/common/sendOtp` can also be used to resend OTP.
{% endhint %}
{% endstep %}

{% step %}

### Processing

Status: `2-PROCESSING`&#x20;
{% endstep %}

{% step %}

### Get Onboarding Result

* Get it from `0013 - Foreign Exchange Result Notification`
* Query transaction status by calling the endpoint `/query/v2/getFxRequestStatus`
  {% endstep %}
  {% endstepper %}

## Status

<figure><img src="/files/IsBYizR66CrWDutvQI3a" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://choice-bank.gitbook.io/choice-bank/transfer/foreign-exchange.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
