{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paypal/json-schema/paypal-quote-exchange-rates-request-schema.json",
  "title": "Request Object for quoting exchange rates.",
  "description": "Request Object for quoting exchange rates.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paypal-quote-exchange-rates-api-openapi.yml#/components/schemas/quote_exchange_rates_request",
  "type": "object",
  "properties": {
    "organization": {
      "description": "Organization this managed account belongs to, in the partner's hierarchy, in the form of a path.",
      "type": "string",
      "pattern": "^\\w{2,20}(\\/\\w{2,20})*$",
      "maxLength": 100,
      "minLength": 2
    },
    "quote_items": {
      "$ref": "#/$defs/quote_item_list"
    }
  },
  "required": [
    "quote_items"
  ],
  "$defs": {
    "currency_code": {
      "description": "The [3-character ISO-4217 currency code](/api/rest/reference/currency-codes/) that identifies the currency.",
      "type": "string",
      "minLength": 3,
      "maxLength": 3,
      "x-security-classification": {
        "data_class": "class4",
        "data_category": "INTRINSIC"
      }
    },
    "percentage": {
      "type": "string",
      "description": "The percentage, as a fixed-point, signed decimal number. For example, define a 19.99% interest rate as `19.99`.",
      "format": "ppaas_common_percentage_v2",
      "pattern": "^((-?[0-9]+)|(-?([0-9]+)?[.][0-9]+))$"
    },
    "quote_item": {
      "type": "object",
      "title": "Request object for exchange rate quote.",
      "description": "Request object for exchange rate quote.",
      "properties": {
        "base_currency": {
          "description": "The currency code of the base amount to be converted for the presentment and in which the final transaction amount needs to be settled into merchant PayPal business account. This could be your primary currency, or any other PayPal supported holding currency. You can find currency codes [here](/docs/reports/reference/paypal-supported-currencies).",
          "$ref": "#/$defs/currency_code"
        },
        "base_amount": {
          "description": "Product price in base currency. If not provided, PayPal returns only the exchange rate and does not calculate the <code>quote_amount</code>.",
          "type": "string",
          "maxLength": 32,
          "minLength": 1,
          "pattern": "^([0-9]+[.][0-9]+)$"
        },
        "quote_currency": {
          "description": "The currency code in which the conversion should take place using this API. This is the currency in which the transaction is performed, and the transaction amount gets converted into base currency.",
          "$ref": "#/$defs/currency_code"
        },
        "markup_percent": {
          "description": "The percentage of the merchant or partner spread to be included as part of the exchange rate. markup_percent can range from 0 to 100.",
          "$ref": "#/$defs/percentage"
        },
        "fx_id": {
          "description": "Unique identifier that links a quoted FX rate to an order.",
          "pattern": "^[ -~]+$",
          "type": "string",
          "maxLength": 4000,
          "minLength": 1
        }
      }
    },
    "quote_item_list": {
      "type": "array",
      "description": "Parameters required to request an exchange rate, passed in the quote_items array: <ul><li>base_currency</li><li>base_amount</li><li>quote_currency</li><li>markup_percent</li><li>fx_id.</li></ul>",
      "items": {
        "$ref": "#/$defs/quote_item"
      },
      "maxItems": 250,
      "minItems": 1
    }
  }
}