{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/meld/json-schema/meld-crypto-quote-response20260203-schema.json",
  "title": "CryptoQuoteResponse20260203",
  "description": "Crypto quote response (API version 2026-02-03)",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/meld-retail-ramp-api-openapi.yml#/components/schemas/CryptoQuoteResponse20260203",
  "type": "object",
  "properties": {
    "quotes": {
      "type": "array",
      "description": "List of quotes",
      "items": {
        "$ref": "#/$defs/CryptoQuote20260203"
      }
    }
  },
  "$defs": {
    "CryptoQuote20260203": {
      "type": "object",
      "description": "Crypto quote (API version 2026-02-03)",
      "properties": {
        "countryCode": {
          "type": "string",
          "description": "Two-letter country code (ISO 3166-1 alpha-2)"
        },
        "destinationAmount": {
          "type": "number",
          "description": "Destination currency amount to be received for this quote"
        },
        "destinationAmountWithoutFees": {
          "type": "number",
          "description": "The fiat amount exchanged when selling crypto, excluding fees. This will be deprecated in the future."
        },
        "destinationCurrencyCode": {
          "type": "string",
          "description": "Code of currency being quoted: BTC, ETH, ..."
        },
        "exchangeRate": {
          "type": "number",
          "description": "The exchange rate at the time the request is sent"
        },
        "fiatAmountWithoutFees": {
          "type": "number",
          "description": "The fiat amount exchanged when buying or selling crypto, excluding fees."
        },
        "isNativeAvailable": {
          "type": "boolean",
          "default": false,
          "description": "Indicates if native Apple Pay flow is available for this quote (Mercuryo specific)"
        },
        "networkFee": {
          "type": "number",
          "description": "The network fee applied to a crypto transaction. To ensure that transactions are processed on cryptocurrency networks, outgoing transactions to external cryptocurrency addresses typically incur a \"mining\" or \"network\" fee. This fee is paid to cryptocurrency miners, which are the systems that process the transactions and secure the respective network."
        },
        "partnerFee": {
          "type": "number",
          "description": "The fee amount charged by the partner to process your customer's purchase."
        },
        "paymentMethodType": {
          "type": "string",
          "description": "Payment Method Type used for this quote",
          "enum": [
            "APPLE_PAY",
            "MASTERCARD",
            "SEPA",
            "VISA"
          ]
        },
        "rampIntelligence": {
          "description": "A collection of information on how to rank the quotes returned to you, based on Meld's scoring algorithms. Read more about this [here](https://docs.meld.io/docs/ramp-intelligence).",
          "allOf": [
            {
              "$ref": "#/$defs/RampIntelligence"
            }
          ]
        },
        "serviceProvider": {
          "type": "string",
          "description": "Service Provider used on this quote",
          "enum": [
            "ALCHEMYPAY",
            "BANXA",
            "BILIRA",
            "BINANCECONNECT",
            "BINANCEPAY",
            "BLOCKCHAINDOTCOM",
            "BOOMFI",
            "BTCDIRECT",
            "COINBASEPAY",
            "FONBNK",
            "GUARDARIAN",
            "KRYPTONIM",
            "KOYWE",
            "MESH",
            "MERCURYO",
            "MESO",
            "ONMETA",
            "ONRAMPMONEY",
            "PAYBIS",
            "PAYPAL",
            "RAMP",
            "REVOLUT",
            "ROBINHOOD",
            "SARDINE",
            "SHIFT4",
            "SIMPLEX",
            "SKRILLCRYPTO",
            "STRIPE",
            "SWAPPED",
            "TOPPER",
            "TRANSAK",
            "TRANSFI",
            "UNLIMIT",
            "YELLOWCARD"
          ]
        },
        "sourceAmount": {
          "type": "number",
          "description": "Amount requested + fees"
        },
        "sourceAmountWithoutFees": {
          "type": "number",
          "description": "The fiat amount being used to buy crypto, excluding fees. This will be deprecated in the future."
        },
        "sourceCurrencyCode": {
          "type": "string",
          "description": "Three-letter ISO currency code. Must be a supported currency"
        },
        "totalFee": {
          "type": "number",
          "description": "The total amount of fees that will be charged."
        },
        "transactionFee": {
          "type": "number",
          "description": "The fee amount charged by the service provider to process your customer's purchase"
        },
        "transactionType": {
          "type": "string",
          "description": "The type of crypto transaction, which is CRYPTO_PURCHASE or CRYPTO_SELL."
        }
      }
    },
    "RampIntelligence": {
      "type": "object",
      "description": "Ramp intelligence: ramp score and low KYC indicator for the quote",
      "properties": {
        "lowKyc": {
          "type": "boolean",
          "default": false,
          "description": "LowKYC indicates if the quote amount is below the provider's low KYC threshold, meaning the user may not need to upload documents, which can increase conversion. Read more about this feature [here](https://docs.meld.io/docs/conversion-routing)."
        },
        "previouslyUsed": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp of previously successful purchase for this customer on this ramp"
        },
        "rampScore": {
          "type": "number",
          "description": "A numerical score representing the expectation a Customer will convert (Ramp score). Read more about this feature [here](https://docs.meld.io/docs/conversion-routing)."
        }
      }
    }
  }
}