Query Quote
Returns an executable foreign-exchange quote for a currency pair, amount, and fixed side.
Endpoint
POST /remittance/exchange/query-quote
Sandbox base URL: https://rem-api-sandbox.pagsmile.com
Content-Type: application/json; charset=UTF-8
The request uses the standard Remittance API request envelope. The fields below describe the decrypted biz_data object.
Request body
Decrypted biz_data fields
merchant_id
long
M
Pagsmile-assigned unique identifier of the merchant or institution whose account will be debited for the transaction.
sell_currency
string
M
Three-letter ISO 4217 code of the currency being sold.
buy_currency
string
M
Three-letter ISO 4217 code of the currency being purchased.
fixed_side
string
O
Specifies whether the sell amount or buy amount is fixed when calculating the quote.
See Fixed Side for supported values.
Default: SELL.
tx_amount
string
M
Amount used to calculate the foreign-exchange quote. Its value must be equivalent to at least USD 2.00.
Plaintext biz_data example
{
"merchant_id": 100398,
"sell_currency": "USD",
"buy_currency": "USD",
"fixed_side": "sell",
"tx_amount": "100.00"
}Request example
Response
The data field in the response envelope is AES-encrypted. Decrypt random_key with your RSA private key, then use the resulting AES key to decrypt data. See Security for implementation details.
Encrypted response example
Decrypted data example
Response data fields
merchant_id
long
M
Pagsmile-assigned unique identifier of the merchant associated with the returned record.
quote_id
string
O
Pagsmile-assigned unique identifier of the foreign-exchange quote.
sell_currency
string
M
Three-letter ISO 4217 code of the currency being sold.
buy_currency
string
M
Three-letter ISO 4217 code of the currency being purchased.
conversion_rate
string
M
Conversion rate applied between the sell and buy currencies.
sell_amount
string
M
Amount of the sell currency in the foreign-exchange transaction.
buy_amount
string
M
Amount of the buy currency in the foreign-exchange transaction.
fixed_side
string
M
Specifies whether the sell amount or buy amount is fixed when calculating the quote. See Fixed Side for supported values.
expired_at
long
O
Quote validity period in seconds. This field may be null when the selected quote provider does not return an expiration period.
Related APIs
Last updated