Onerway
POST

FX Rate Query

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

Request

merchantNo
Merchant number of the request initiator.
Example:
onBehalfOf
Merchant number that the request is for. Include only when making a request on behalf of another merchant.
sourceAmount
Amount denominated in sourceCurrency.
Example:
Constraints
Rule
Optional. If omitted, sourceAmount in the response is null.
sourceCurrency
Source currency.
Example:
targetCurrency
Target currency.
Example:
sign
Request signature. Generate it using the signing method and credentials configured for the initiating merchant, following the request-signing rules.

Request example

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

respCode
Response code; 20000 indicates successful request processing. All other values are error codes.
respMsg
Human-readable description of the response code.
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.