POST
FX Rate Query
Query the indicative FX rate from a source currency to a target currency.
Request
merchantNoMerchant number of the request initiator.
Example:
800699onBehalfOfMerchant number that the request is for. Include only when making a request on behalf of another merchant.
sourceAmountAmount denominated in
sourceCurrency.Example:
11.87Constraints
- Rule
- Optional. If omitted, sourceAmount in the response is null.
sourceCurrencySource currency.
Example:
USDtargetCurrencyTarget currency.
Example:
PKRsignRequest signature. Generate it using the signing method and credentials configured for the initiating merchant, following the request-signing rules.
curl -X POST 'https://sandbox-api.onerway.com/payout/api/v1/acct/queryExchangeRate' \
-H 'Content-Type: application/json' \
--data-raw '{
"merchantNo": "800699",
"sign": "{{SIGN}}",
"sourceAmount": 11.87,
"sourceCurrency": "USD",
"targetCurrency": "PKR"
}'Response
respCodeResponse code;
20000 indicates successful request processing. All other values are error codes.respMsgHuman-readable description of the response code.
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.