{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/emporix/main/json-schema/emporix-exchange-rate-creation-request-schema.json",
  "title": "exchangeRate",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/emporix-currency-service-openapi.yml#/components/schemas/exchangeRateCreationRequest",
  "type": "object",
  "properties": {
    "sourceCurrency": {
      "type": "string",
      "description": "The source currency code. The currency symbol must consist of three capital letters and must be a valid ISO-4217 code (https://www.iso.org/iso-4217-currency-codes.html) defined in the system."
    },
    "targetCurrency": {
      "type": "string",
      "description": "The target currency code. The currency symbol must consist of three capital letters and must be a valid ISO-4217 code (https://www.iso.org/iso-4217-currency-codes.html) defined in the system."
    },
    "rate": {
      "type": "string",
      "description": "Represents the exchange rate.\n\nThe value of the field is represented by a number where the cent part is separated by a comma. For example `1.09`. The cent part is not limited just to two digits. A rate with any precision can be returned. For example: `1.091934212`"
    }
  },
  "required": [
    "sourceCurrency",
    "targetCurrency",
    "rate"
  ]
}