> ## Documentation Index
> Fetch the complete documentation index at: https://nextgen-docs.enfuce.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ECB Exchange Rates

> This operation is to get ECB rate for a given “from” and “to” currency pair.



## OpenAPI

````yaml json-files/fx.openapi.json get /v1/ecb/{fromCurrency}/{toCurrency}
openapi: 3.1.0
info:
  title: OpenAPI definition
  version: v0
servers:
  - url: http://localhost:8080
    description: Generated server url
security: []
tags:
  - name: Get FX exchange rates
    description: the Get FX exchange rates API
  - name: Get ECB supported currencies
    description: the Get ECB supported currencies API
  - name: Get ECB exchange rate
    description: the Get ECB exchange rate API
paths:
  /v1/ecb/{fromCurrency}/{toCurrency}:
    get:
      tags:
        - Get ECB exchange rate
        - Get ECB supported currencies
      summary: ECB Exchange Rates
      description: >-
        This operation is to get ECB rate for a given “from” and “to” currency
        pair.
      operationId: getEcbRateV1
      parameters:
        - name: auditUser
          in: query
          description: The audit user to log the request
          required: true
          schema:
            type: string
        - name: fromCurrency
          in: path
          required: true
          schema:
            type: string
            pattern: '[A-Z]{3}'
        - name: toCurrency
          in: path
          required: true
          schema:
            type: string
            pattern: '[A-Z]{3}'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEcbRateV1Response'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    GetEcbRateV1Response:
      type: object
      properties:
        rate:
          type:
            - number
            - 'null'
          description: ECB Exchange Rate
    ErrorResponse:
      type: object
      properties:
        code:
          type:
            - string
            - 'null'
          description: An error code indicating what kind of error. I.e. HTTP error code
        message:
          type:
            - string
            - 'null'
          description: Error message in human-readable format
        id:
          type:
            - string
            - 'null'
          format: uuid
          description: Unique error identifier
        errorCode:
          type:
            - string
            - 'null'
          description: Enfuce code for a specific error type
        errorType:
          type:
            - string
            - 'null'
          description: Error type
          enum:
            - STATIC_VALIDATION_ERROR
            - DYNAMIC_VALIDATION_ERROR
            - INTEGRATION_ERROR
            - SECURITY_ERROR
            - UNEXPECTED_ERROR
        errorReason:
          type:
            - string
            - 'null'
          description: Free-form text explaining the error reason
        timestamp:
          type:
            - string
            - 'null'
          format: date-time
          description: Datetime when error occurred

````