> ## Documentation Index
> Fetch the complete documentation index at: https://yn-c9bb3266.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Exchange Rates

> Returns the conversion rate and converted amount between two currencies.

<Warning>
  This endpoint may return 404 in sandbox. Currency conversion requires enablement. Contact Yuno support if you need this feature.
</Warning>


## OpenAPI

````yaml GET /v1/currency-conversion
openapi: 3.1.0
info:
  title: Yuno Payments API
  description: >-
    Yuno payment orchestration platform — unified REST API for payments,
    checkout sessions, customers, payment methods, subscriptions, payouts,
    marketplace transfers, and banking connectivity across Latin America.
  version: 1.0.0
  contact:
    name: Yuno Support
    email: support@y.uno
    url: https://docs.y.uno
  license:
    name: Proprietary
    url: https://y.uno
servers:
  - url: https://api-sandbox.y.uno
    description: Sandbox
  - url: https://api.y.uno
    description: Production
security:
  - publicApiKey: []
    privateSecretKey: []
paths:
  /v1/currency-conversion:
    get:
      tags:
        - Currency Conversion
      summary: Get currency conversion rates
      description: Returns the conversion rate and converted amount between two currencies.
      operationId: getCurrencyConversion
      parameters:
        - name: from
          in: query
          required: true
          description: Source ISO 4217 currency code
          schema:
            type: string
            example: USD
        - name: to
          in: query
          required: true
          description: Target ISO 4217 currency code
          schema:
            type: string
            example: BRL
        - name: amount
          in: query
          required: true
          description: Amount to convert
          schema:
            type: number
            example: 100
      responses:
        '200':
          description: Currency conversion result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrencyConversion'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CurrencyConversion:
      type: object
      properties:
        from:
          type: string
          description: Source currency code
          example: USD
        to:
          type: string
          description: Target currency code
          example: BRL
        rate:
          type: number
          description: Exchange rate
          example: 5.12
        amount:
          type: number
          description: Original amount
          example: 100
        converted_amount:
          type: number
          description: Converted amount
          example: 512
        timestamp:
          type: string
          format: date-time
          example: '2026-03-01T14:00:00.000Z'
      example:
        from: USD
        to: BRL
        rate: 5.12
        amount: 100
        converted_amount: 512
        timestamp: '2026-03-01T14:00:00.000Z'
    Error:
      type: object
      description: >-
        Standard error envelope returned by every Yuno service for any 4xx or
        5xx response. Top level. `code` is a stable SCREAMING_SNAKE_CASE
        identifier. `messages` is always an array of strings, even when there is
        only one entry. There is no `error` wrapper, no singular `message`, no
        `type`, no `details`. See the Error handling guide for the full code
        catalog.
      required:
        - code
        - messages
      properties:
        code:
          type: string
          description: >-
            Stable, machine readable identifier. Branch on this in your client.
            Common values include `BAD_REQUEST`, `VALIDATION_ERROR`,
            `INVALID_REQUEST`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`,
            `TOO_MANY_REQUESTS`, `INTERNAL_ERROR`, `BAD_GATEWAY`,
            `SERVICE_UNAVAILABLE`, plus business codes like
            `CUSTOMER_ID_DUPLICATED`, `RECIPIENT_NOT_FOUND`, `INVALID_STATE`,
            and the `PROVIDER_*` family for downstream provider errors.
          example: VALIDATION_ERROR
        messages:
          type: array
          description: >-
            Human readable details. Validation errors put one entry per failed
            field, formatted `"fieldName message"`.
          items:
            type: string
          example:
            - merchant_customer_id must not be blank
      example:
        code: VALIDATION_ERROR
        messages:
          - amount must be greater than 0
          - country must not be blank
  securitySchemes:
    publicApiKey:
      type: apiKey
      in: header
      name: public-api-key
      description: Your public API key from the Yuno Dashboard
    privateSecretKey:
      type: apiKey
      in: header
      name: private-secret-key
      description: Your private secret key (server-side only)

````