Quote

/v1/quote

Creates a quote for a crypto payout and returns its price and expiration time.

post/v1/quote

Request

  • Base URL
    https://cs-api.sandbox.paybis.com
  • URL
    https://cs-api.sandbox.paybis.com/v1/quote
  • Auth
    API key in header Authorization and API key in header x-request-signature

Headers

Authorizationstring required

Api key

X-Request-Signaturestring required

Base64 encoded string, containing request body, encrypted with the sha512 algorithm using RSA 4096 bit public key

Request body

quote_idstring uuid required

Partner-generated identifier of a specific quote in UUID format.

crypto_currencystring required

Crypto asset code.

fiat_currencystring required

Fiat currency code.

requested_currencystring required

Base crypto or fiat currency for quote calculation, see request examples.

requested_amountstring required

Requested amount with precision 2 for fiat and 8 for crypto.

requested_amount_typestring nullable required

Allowed values are: from / to

direction'buy' | 'sell'

Quote direction. Allowed values are: buy / sell.

Response

OK

statusstring required

Example response

{
  "result": {
    "fees": {
      "network_fee": {
        "amount": "1.59",
        "currency": "USD"
      },
      "service_fee": {
        "amount": "26.34",
        "currency": "USD",
        "breakdown": {
          "partner_fee": {
            "amount": "0.00",
            "currency": "USD"
          }
        }
      },
      "total_fee": {
        "amount": "27.93",
        "currency": "USD"
      },
      "fee_discount": {
        "amount": "1.93",
        "currency": "USD"
      }
    },
    "exchange_rate_fiat_to_crypto": {
      "from": "EUR",
      "to": "USDT",
      "rate": "1.2345"
    },
    "exchange_rate_crypto_to_fiat": {
      "from": "EUR",
      "to": "USDT",
      "rate": "1.2345"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.