POST
/
quotes
curl --request POST \
  --url https://extensions-sandbox.lumx.io/payments/quotes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "payin",
  "blockchainAccountId": "ba_000000000000",
  "bankAccountId": "ba_000000000000",
  "paymentMethod": "pix",
  "amount": 1000,
  "token": "USDX"
}'
{
  "id": "qu_000000000000",
  "type": "payin",
  "expiresAt": 1712958191,
  "commercialQuotation": 595,
  "providerQuotation": 585,
  "providerContract": {
    "address": "0x0000000000000000000000000000000000000000",
    "amount": "1000000000000000000"
  },
  "receiverAmount": 5240,
  "senderAmount": 1010,
  "flatFee": 50
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
type
enum<string>
required

Type of quote to create.

Available options:
payin,
payout
amount
number
required

100 represents 1.00, 1000 represents 10.00.

Required range: x > 100
token
enum<string>
required

Token to be used in the transaction.

Available options:
USDC,
USDT,
USDX
blockchainAccountId
string

The ID of the blockchain account.

bankAccountId
string

The ID of the bank account.

paymentMethod
enum<string>

Payment method for the transaction.

Available options:
pix

Response

201 - application/json
id
string
required

Quote identifier.

type
enum<string>
required

Type of quote.

Available options:
payin,
payout
expiresAt
number
required

Unix timestamp when the quote expires.

commercialQuotation
number
required

1 USD = 5.95 BRL.

providerQuotation
number
required

1 USD = 5.85 BRL (commercial quotation - provider taxes).

providerContract
object
required

The provider contract details for approval.

receiverAmount
number
required

52.40 BRL.

senderAmount
number
required

10.10 USDX needs to be sent to bank account blockchain address.

flatFee
number
required

0.50 USDX