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

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# Create FX Quote

> Quote a USD price in the customer's local currency and hold it until it expires

Quote a USD amount in the customer's local currency. The rate is Yuno's daily [reference rate](https://docs.y.uno/reference/fx-rates/get-fx-rates.md) plus the markup agreed for your organization. Charge the local amount with the quote before `expires_at`. See [Local price and taxes](https://docs.y.uno/docs/payment-features/subscriptions/local-price-and-taxes.md).

> [!NOTE]
>
> **Enabled per organization**
>
> FX quotes are enabled per organization. Contact your Key Account Manager (KAM) to enable them.

* Only `USD` amounts can be quoted.
* `404 FX_QUOTE_NOT_AVAILABLE` means there is no published rate for that currency on the latest available day: charge in USD.
* An expired quote is refused at payment time. Quote again and show the customer the new amount.


## OpenAPI

````yaml openapi/fx-rates/create-fx-quote.json POST /fx-rates/quote
openapi: 3.0.1
info:
  title: Yuno FX Rates API
  version: '1.0'
servers:
  - url: https://api-sandbox.y.uno/v1
  - url: https://api.y.uno/v1
security: []
paths:
  /fx-rates/quote:
    post:
      summary: Create FX quote
      description: >-
        Quotes a USD amount in the customer's local currency, with Yuno's daily
        reference rate plus your markup, and holds it until `expires_at`. Send
        the quote with the payment to charge the local amount.
      operationId: create-fx-quote
      parameters:
        - in: header
          name: PUBLIC-API-KEY
          required: true
          schema:
            type: string
          description: Your public API key.
        - in: header
          name: PRIVATE-SECRET-KEY
          required: false
          schema:
            type: string
          description: >-
            Your private secret key, when you quote from your backend. Never
            expose it client-side.
        - in: header
          name: X-Account-Code
          required: false
          schema:
            type: string
          description: The account the quote is for.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - amount
                - target_currency
              properties:
                checkout_session:
                  type: string
                  description: >-
                    The checkout session the quote is for. Required with a
                    public key.
                account_id:
                  type: string
                  description: The account the quote is for.
                amount:
                  type: object
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      enum:
                        - USD
                      description: Only `USD`.
                    value:
                      type: number
                      description: From 0.0001 to 9999999999.
                target_currency:
                  type: string
                  description: Three-letter ISO currency to quote in.
                  example: BRL
            example:
              checkout_session: <checkout_session>
              amount:
                currency: USD
                value: 29
              target_currency: BRL
      responses:
        '200':
          description: FX quote
          content:
            application/json:
              schema:
                type: object
                properties:
                  fx_quote_id:
                    type: string
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                      value:
                        type: number
                  local_amount:
                    type: object
                    properties:
                      currency:
                        type: string
                      value:
                        type: number
                  reference_rate:
                    type: number
                  markup_percentage:
                    type: number
                  rate:
                    type: number
                  fx_date:
                    type: string
                    description: Day of the reference rate.
                  expires_at:
                    type: string
                    description: Until when the quote can be charged.
              example:
                fx_quote_id: fxq_D8BBCB40182E44799D4AE3F6BBF2D1FB
                amount:
                  currency: USD
                  value: 29
                local_amount:
                  currency: BRL
                  value: 152.55
                reference_rate: 5.1572
                markup_percentage: 2
                rate: 5.2603
                fx_date: '2026-11-19'
                expires_at: '2026-11-21T22:24:07Z'
        '400':
          description: Invalid body, for example an amount that is not in USD
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: INVALID_PARAMETERS
                messages:
                  - ...
        '403':
          description: The product is not enabled for your organization
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: PRODUCT_NOT_ENABLED
                messages:
                  - ...
        '404':
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: FX_QUOTE_NOT_AVAILABLE
                messages:
                  - No published rate for BRL on the latest available day.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.