POST
/
quotes
curl --request POST \
  --url https://api-test.koywe.com/rest/quotes \
  --header 'Content-Type: application/json' \
  --data '{
  "clientId": "eff455bda8da192d6ae0019c",
  "symbolIn": "CLP",
  "symbolOut": "BNB",
  "amountIn": 200000,
  "amountOut": 1,
  "paymentMethodId": "632d7fe6237ded3a748112cf",
  "executable": true
}'
{
  "quoteId": "63da8100c6d0af192f9f9e8c",
  "amountIn": 238228,
  "amountOut": 1,
  "symbolIn": "CLP",
  "symbolOut": "BNB",
  "paymentMethodId": "632d7fe6237ded3a748112cf",
  "exchangeRate": 235816,
  "koyweFee": 2358.16,
  "networkFee": 54,
  "co2": 123,
  "validFor": 10,
  "validUntil": 1675264266
}

Body

application/json
clientId
string
symbolIn
string
symbolOut
string
amountIn
number
amountOut
number
paymentMethodId
string

This is a crucial attribute when creating 'on-ramp' orders. It acts as an identifier for the payment method that will be used to receive funds. Its purpose is to ensure alignment between the system and the client regarding the transaction mechanism, paving the way for efficient transaction processing and tracking. For 'off-ramp' orders, providing this attribute is not required.

executable
boolean

Response

200 - application/json
quoteId
string
amountIn
number
amountOut
number
symbolIn
string
symbolOut
string
paymentMethodId
string
exchangeRate
number
koyweFee
number
networkFee
number
co2
number
validFor
number
validUntil
number