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

Body

application/json
clientId
string
Example:

"eff455bda8da192d6ae0019c"

symbolIn
string
Example:

"CLP"

symbolOut
string
Example:

"BNB"

amountIn
number
Example:

200000

amountOut
number
Example:

1

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.

Example:

"632d7fe6237ded3a748112cf"

executable
boolean
Example:

false

Response

200
application/json
successful operation
quoteId
string
Example:

"63da8100c6d0af192f9f9e8c"

amountIn
number
Example:

238228

amountOut
number
Example:

1

symbolIn
string
Example:

"CLP"

symbolOut
string
Example:

"BNB"

paymentMethodId
string
Example:

"632d7fe6237ded3a748112cf"

exchangeRate
number
Example:

235816

koyweFee
number
Example:

2358.16

networkFee
number
Example:

54

co2
number
Example:

0

validFor
number
Example:

10

validUntil
number
Example:

1675264266