POST
FX Rate Query
Query the indicative FX rate from a source currency to a target currency.
Request
merchantNoMerchant number assigned by Onerway. Retrieve it from the merchant portal or onboarding material after your sandbox or production account is created.
Example:
801129sourceAmountOptional source amount used to calculate the target amount.
Example:
11.87sourceCurrencySource currency.
Example:
USDtargetCurrencyTarget currency.
Example:
PKRsignRequest signature string. Generate it according to the Transfer request-signing rules with your merchant private key.
curl -X POST 'https://sandbox-api.onerway.com/payout/api/v1/acct/queryExchangeRate' \
-H 'Content-Type: application/json' \
--data-raw '{
"merchantNo": "801129",
"sign": "{{SIGN}}",
"sourceAmount": 11.87,
"sourceCurrency": "USD",
"targetCurrency": "PKR"
}'Response
respCodeResponse code returned by Onerway.
respMsgResponse message returned by Onerway.
data{ sourceAmount, sourceCurrency, ... }FX quote result.
{
"respCode": "20000",
"respMsg": null,
"data": {
"sourceAmount": 11.87,
"sourceCurrency": "USD",
"targetAmount": 3286.32,
"targetCurrency": "PKR",
"convRate": 276.859578,
"rateDateTime": "2025-10-30 23:10:17"
}
}No error responses are documented for this endpoint.