Onerway
POST

FX Rate Query

Query the indicative FX rate from a source currency to a target currency.

Request

merchantNo
Merchant number assigned by Onerway. Retrieve it from the merchant portal or onboarding material after your sandbox or production account is created.
Example:
sourceAmount
Optional source amount used to calculate the target amount.
Example:
sourceCurrency
Source currency.
Example:
targetCurrency
Target currency.
Example:
sign
Request signature string. Generate it according to the Transfer request-signing rules with your merchant private key.

Request example

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

respCode
Response code returned by Onerway.
respMsg
Response message returned by Onerway.
FX quote result.

Response example

{
  "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.