GET
/
v1
/
cash_in
/
quote
curl --request GET \
  --url https://api.sandbox.meso.network/v1/cash_in/quote \
  --header 'Authorization: Basic <encoded-value>'
{
  "quote": {
    "source_total": {
      "amount": "1.45",
      "currency_code": "solana/SOL"
    },
    "source_total_usd": {
      "amount": "1.45",
      "currency_code": "solana/SOL"
    },
    "source_subtotal": {
      "amount": "1.45",
      "currency_code": "solana/SOL"
    },
    "source_subtotal_usd": {
      "amount": "1.45",
      "currency_code": "solana/SOL"
    },
    "destination_total": {
      "amount": "1.45",
      "currency_code": "solana/SOL"
    },
    "destination_total_usd": {
      "amount": "1.45",
      "currency_code": "solana/SOL"
    },
    "meso_fee": {
      "amount": "1.45",
      "currency_code": "solana/SOL"
    },
    "meso_fee_usd": {
      "amount": "1.45",
      "currency_code": "solana/SOL"
    },
    "network_fee": {
      "amount": "1.45",
      "currency_code": "solana/SOL"
    },
    "network_fee_usd": {
      "amount": "1.45",
      "currency_code": "solana/SOL"
    },
    "expires_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Use partnerId and secretKey as the username and password respectively. The client must send these credentials in the Authorization header, encoded in Base64. The format for the header is Authorization: Basic {credentials}, where "credentials" is the Base64 encoding of "partnerId:secretKey".

Query Parameters

source_total
string
required

The total fiat amount represented as a stringified number. This value can include minor units (decimals).

Examples: 25, 0.12, 0.246810, 5000.00

source_currency_code
string
required

The currency code of the source asset (in this case, fiat currency) to use for the transfer.

Currently only fiat/USD and fiat/EUR are supported.

destination_currency_code
string
required

The currency to use as the destination asset (the crypto that will be purchased) for a transfer.

The following values are supported:

  • bitcoin/BTC
  • ethereum/ETH
  • ethereum/USDC
  • solana/SOL
  • solana/USDC
  • arbitrum-one/ETH
  • arbitrum-one/USDC
  • base/ETH
  • base/USDC
  • polygon/MATIC
  • polygon/USDC
  • optimism/ETH
  • optimism/USDC
payment_method
enum<string>

The kind of payment method that will be used to fund the transfer.

Available options:
debit
wallet_address
string

The wallet address of the user requesting the quote.

Minimum length: 1
residence_country_code
string

A 2-character ISO 3166-2 country code for the user.

Note: Currently, only the United States (US) is supported.

Examples: US, DE, IT.

Required string length: 2

Response

200
application/json
The Meso quote for the transfer.
quote
object
required