Payin Quotes

Preview sender and receiver values before starting a payin.

What is a payin quote?

A payin quote will show you how much you or your customers need to send in fiat money and how much the receiver is going to receive in stablecoins.

So, let's say you want to onramp 1,000 USD to a receiver with a blockchain wallet on polygon network. The quote will show that you need to send 1,000 USD and the receiver will receive 990 USDC on his wallet.

Who are going to pay for the fees?

BlindPay provides two ways of paying for the fees:

  1. The receiver pays the fees: In this case, the fees are calculated based on the stablecoin (USDC, USDT) that the receiver is going to receive.
  2. The sender pays the fees: In this case, the fees are calculated based on the fiat currency (USD, BRL) that the sender is going to send.

Receiver paying for the fees

This is the most common scenario, so just keep the Cover all payin fees disabled and the fees will be calculated to the receiver.

BlindPay receiver paying for the fees

Sender paying for the fees

In this case, you should enable the Cover all payin fees option before creating the quote.

BlindPay receiver paying for the fees

Creating a payin quote

You can check the required fields in the BlindPay API Docs. Before creating a quote through the API, you need to:

  1. Create an account on BlindPay
  2. Create a development instance
  3. Create your API key
  4. Create a receiver
  5. Add a blockchain wallet
cURL
curl https://api.blindpay.com/v1/instances/in_000000000000/payin-quotes \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "blockchain_wallet_id": "bw_000000000000",
  "currency_type": "sender",
  "cover_fees": true,
  "request_amount": 1000,
  "payment_method": "pix",
  "token": "USDC"
}'