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

# Create quote

> Prices a transfer from one payment account to another. Each account must belong to the organization in the route or to your API key's organization. The quote and its order belong to the organization in the route, even when an account belongs to your organization, so quote under the organization you want the order reported under. Pass the quote's `quoteId` to `POST /organization/{organizationId}/order` with the same `organizationId` before `expiresAt`; a quote is valid for 2 minutes.

One side must be a wallet. Supported shapes: fiat to crypto (onramp), crypto to fiat (offramp), a swap between two wallets on one chain or on two chains, and a transfer of one token between wallets on two chains. Fiat to fiat is not supported.

**Rails.** Each side moves on one rail. Omit `sourceRail` or `destinationRail` and we use the account's default rail for that direction (the rail with `isDefault: true` in the account's `rails`). When two of an account's rails tie, name the rail. The account's status for that direction on that rail must be `ready`, or the quote fails with `409` `payment-account-not-ready`.

**Assets.** Send an `asset` from [`GET /supported_assets`](/api-reference/assets/list-supported-assets): a currency code such as `MXN` for a fiat side, a token's `asset` for a crypto side. Filter that list by `paymentAccountId` to see what each account can use. Send each side's `asset` on that side's chain. When both sides are the same token, pick the destination chain from the source token's `bridgeDestinations`. When they are different tokens, we bridge to the chain where we exchange them and bridge the result to the destination chain.

**Approval.** The organization must be approved, or the quote fails with `409` `organization-not-approved`.



## OpenAPI

````yaml https://api.etherfuse.com/openapi-v2.json post /organization/{organizationId}/quote
openapi: 3.1.0
info:
  title: Etherfuse FX API
  description: >-
    Partner-facing ramp API, version 2: payment accounts, quotes, orders and
    webhooks.
  license:
    name: Proprietary
  version: 2.0.0
servers:
  - url: https://api.sand.etherfuse.com
    description: Sandbox
security:
  - ApiKeyAuth: []
tags:
  - name: Payment Accounts
    description: >-
      Register the bank accounts and wallets that money moves from and to, and
      read their readiness per rail.
  - name: Quotes
    description: Price a transfer between two registered payment accounts.
  - name: Orders
    description: Create orders from quotes and track them.
  - name: Webhook Subscriptions
    description: Subscribe to webhook events.
  - name: Webhook Events
    description: Payloads Etherfuse sends to your webhook subscriptions.
  - name: Sandbox
    description: Endpoints that work only in sandbox, for testing.
  - name: Assets
    description: The markets and tokens a quote can use, and the balances of a wallet.
  - name: Authentication
    description: >-
      Partner JWT authentication: exchange a JWT for an access token, or launch
      a user into the app.
  - name: KYC
    description: >-
      Submit a customer's verification data, documents and questionnaire
      answers, import a verification they already passed elsewhere, and check
      where their KYC stands.
  - name: KYB
    description: Check where a business organization's KYB stands.
  - name: Lookup
    description: >-
      Public reference data: exchange rates, stablebonds, bond costs, country
      codes.
  - name: Organizations
    description: >-
      Your organization, your default partner fee, and the customer
      organizations you create.
  - name: Members
    description: >-
      The people who belong to a customer business organization and complete its
      KYB.
  - name: Statements
    description: >-
      Monthly revenue share statements for closed months, as a list or as a CSV
      or PDF download.
paths:
  /organization/{organizationId}/quote:
    post:
      tags:
        - Quotes
      summary: Create quote
      description: >-
        Prices a transfer from one payment account to another. Each account must
        belong to the organization in the route or to your API key's
        organization. The quote and its order belong to the organization in the
        route, even when an account belongs to your organization, so quote under
        the organization you want the order reported under. Pass the quote's
        `quoteId` to `POST /organization/{organizationId}/order` with the same
        `organizationId` before `expiresAt`; a quote is valid for 2 minutes.


        One side must be a wallet. Supported shapes: fiat to crypto (onramp),
        crypto to fiat (offramp), a swap between two wallets on one chain or on
        two chains, and a transfer of one token between wallets on two chains.
        Fiat to fiat is not supported.


        **Rails.** Each side moves on one rail. Omit `sourceRail` or
        `destinationRail` and we use the account's default rail for that
        direction (the rail with `isDefault: true` in the account's `rails`).
        When two of an account's rails tie, name the rail. The account's status
        for that direction on that rail must be `ready`, or the quote fails with
        `409` `payment-account-not-ready`.


        **Assets.** Send an `asset` from [`GET
        /supported_assets`](/api-reference/assets/list-supported-assets): a
        currency code such as `MXN` for a fiat side, a token's `asset` for a
        crypto side. Filter that list by `paymentAccountId` to see what each
        account can use. Send each side's `asset` on that side's chain. When
        both sides are the same token, pick the destination chain from the
        source token's `bridgeDestinations`. When they are different tokens, we
        bridge to the chain where we exchange them and bridge the result to the
        destination chain.


        **Approval.** The organization must be approved, or the quote fails with
        `409` `organization-not-approved`.
      operationId: v2CreateQuote
      parameters:
        - name: organizationId
          in: path
          description: >-
            The organization this call acts for: your API key's organization or
            one of its customer organizations. Any other id returns `404`
            `not-found`.
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateQuoteRequest'
        required: true
      responses:
        '200':
          description: The quote.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Quote'
        '400':
          description: >-
            `invalid-request`: the body is malformed; `sourceAmount` is not a
            positive decimal or is too small to cover the fees; a side is
            `inline` or is not registered to the organization; the pair is fiat
            to fiat, has no route between its two assets, or uses an unknown or
            unsupported asset; the named rail cannot carry that direction; or
            two rails tie and none was named. `amount-out-of-range`: the amount
            is too large for an order. `sandbox-limit-exceeded`: the sandbox
            limit for onramps was exceeded.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/OrganizationNotFound'
        '409':
          description: >-
            `organization-not-approved`: the organization is not approved.
            `payment-account-disabled`: a side's account is disabled.
            `payment-account-not-ready`: a side's account is not `ready` on the
            chosen rail in that direction, is not registered on the named rail,
            or has no rail that can carry that direction.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '422':
          description: >-
            `quote-unavailable`: we cannot price this route right now. Retry
            later. `unsupported`: the route is not supported, for example a
            principal token on a chain that does not carry it, or a cross-chain
            transfer to a chain missing from the token's `bridgeDestinations`.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    CreateQuoteRequest:
      type: object
      required:
        - source
        - destination
        - sourceAmount
        - sourceAsset
        - destinationAsset
      properties:
        destination:
          $ref: '#/components/schemas/PaymentAccountRef'
        destinationAsset:
          type: string
          description: >-
            An `asset` from `GET /supported_assets`: a currency code for a fiat
            destination, or a

            token's `asset` for a crypto destination.
          example: USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN
        destinationRail:
          $ref: '#/components/schemas/PaymentRail'
          description: >-
            The rail the destination moves on. Omit to use the destination
            account's default rail.
        partnerFeeBpsOverride:
          type: integer
          format: int32
          description: >-
            Partner fee for this quote in basis points, in place of your
            organization's default

            partner fee. Values above 500 are capped at 500. We use it only when
            you quote for one

            of your customer organizations, and ignore it on a quote an
            organization makes for

            itself.
          minimum: 0
        source:
          $ref: '#/components/schemas/PaymentAccountRef'
        sourceAmount:
          type: string
          description: Amount the source sends, as a positive decimal string.
          example: '1000'
        sourceAsset:
          type: string
          description: >-
            An `asset` from `GET /supported_assets`: a currency code such as
            `MXN` for a fiat

            source, or a token's `asset` for a crypto source.
          example: MXN
        sourceRail:
          $ref: '#/components/schemas/PaymentRail'
          description: >-
            The rail the source moves on. Omit to use the source account's
            default rail.
      example:
        destination:
          id: 8c1d2e3f-4a5b-4c6d-8e7f-901a2b3c4d5e
          type: stored
        destinationAsset: USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN
        source:
          id: 3f9a2c1e-5b7d-4e8f-9a01-2b3c4d5e6f70
          type: stored
        sourceAmount: '1000'
        sourceAsset: MXN
    Quote:
      type: object
      required:
        - quoteId
        - sourceAmount
        - destinationAmount
        - sourceAsset
        - destinationAsset
        - sourceRail
        - destinationRail
        - rateAfterFees
        - rateBeforeFees
        - feeBps
        - feeAmount
        - fees
        - createdAt
        - expiresAt
      properties:
        createdAt:
          type: string
          format: date-time
        destinationAmount:
          type: string
          description: >-
            Decimal string. What the destination receives after fees. On an
            onramp into a

            stablebond, we price the bond at the end of the order's funding
            window, so this is

            slightly less than today's price gives. See [Fees](/fees).
        destinationAsset:
          type: string
        destinationRail:
          $ref: '#/components/schemas/PaymentRail'
        expiresAt:
          type: string
          format: date-time
          description: Create the order before this time. 2 minutes after `createdAt`.
        feeAmount:
          type: string
          description: >-
            Total fee as a decimal string, in the source asset, rounded down to
            that asset's

            decimals. Each line in `fees` is in its own `asset`, so the lines do
            not add up to this

            total when their assets differ.
        feeBps:
          type: integer
          format: int32
          description: Total fee in basis points.
          minimum: 0
        fees:
          type: array
          items:
            $ref: '#/components/schemas/Fee'
          description: >-
            The fee lines. The order created from this quote returns the same
            lines.
        midMarketRate:
          type: string
          description: >-
            The mid-market FX rate, as a decimal string. Present only on quotes
            that convert

            between currencies.
        quoteId:
          type: string
          format: uuid
          description: >-
            Pass to `POST /organization/{organizationId}/order`. Becomes the
            order's `id`.
        rateAfterFees:
          type: string
          description: The rate the customer gets after fees, as a decimal string.
        rateBeforeFees:
          type: string
          description: The rate before our fee, as a decimal string.
        sourceAmount:
          type: string
          description: Decimal string.
        sourceAsset:
          type: string
        sourceRail:
          $ref: '#/components/schemas/PaymentRail'
    Problem:
      type: object
      description: >-
        RFC 9457 problem details. Every v2 error uses this body with content
        type

        `application/problem+json`. `errors` is present on `validation-error`,
        and on

        `invalid-request` when an account number has the wrong format.
        `required`

        and `missing` are present only on `registration-info-required`.
      required:
        - type
        - title
        - status
        - detail
        - instance
      properties:
        detail:
          type: string
          description: Human-readable explanation of this occurrence. Do not parse it.
          example: >-
            quote 5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b has expired or does not
            exist
        errors:
          type: array
          items:
            $ref: '#/components/schemas/FieldViolation'
          description: >-
            Present on `validation-error`, and on `invalid-request` for an
            invalid CLABE or PIX key. One entry per invalid field.
        instance:
          type: string
          description: Unique identifier for this occurrence. Quote it to support.
          example: >-
            tag:etherfuse.com,2026-08-28:R2-10120/0b1c2d3e-4f50-4a6b-8c7d-9e0f1a2b3c4d
        missing:
          type: array
          items:
            type: string
          description: >-
            Present on `registration-info-required`. The required fields you
            must still send, as JSON Pointers into the request.
        required:
          type: array
          items:
            type: string
          description: >-
            Present on `registration-info-required`. Every registration field
            the route requires, as JSON Pointers into the request, for example
            `#/registrationInfo/taxId`.
        status:
          type: integer
          format: int32
          description: The HTTP status code.
          example: 400
          minimum: 0
        title:
          type: string
          description: Short summary of the problem type.
          example: Quote expired
        traceId:
          type: string
          description: >-
            Trace ID of the request, 32 hex characters, the same value as the
            `X-Trace-Id`

            response header. Quote it to support. Absent when tracing is
            unavailable.
          example: 4bf92f3577b34da6a3ce929d0e0e4736
        type:
          type: string
          format: uri
          description: >-
            `https://docs.etherfuse.com/ramp/v2/errors/` followed by the problem
            slug, for example

            `https://docs.etherfuse.com/ramp/v2/errors/quote-expired`. Switch on
            this value.
          example: https://docs.etherfuse.com/ramp/v2/errors/quote-expired
    PaymentAccountRef:
      oneOf:
        - type: object
          title: stored
          required:
            - id
            - type
          properties:
            id:
              type: string
              format: uuid
              description: >-
                A payment account `id` held by the organization in the route, or
                by your own

                organization when the route names one of your customers.
            type:
              type: string
              enum:
                - stored
        - type: object
          title: inline
          required:
            - type
          properties:
            type:
              type: string
              enum:
                - inline
      description: >-
        A payment account in a quote, tagged by `type`. Use `stored` with a
        registered account's `id`. `inline` is not supported yet and returns
        `400` `invalid-request`.
    PaymentRail:
      type: string
      description: The network that moves the money. For a wallet, the rail is its chain.
      enum:
        - spei
        - pix
        - solana
        - base
        - polygon
        - monad
        - stellar
        - avalanche
    Fee:
      type: object
      required:
        - type
        - amount
        - asset
        - bps
      properties:
        amount:
          type: string
          description: Decimal string.
        asset:
          type: string
          description: The asset the fee is charged in.
        bps:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            The fee rate in basis points, when the fee has one. Always null on a
            quote.
        type:
          $ref: '#/components/schemas/FeeType'
    FieldViolation:
      type: object
      required:
        - detail
        - pointer
      properties:
        detail:
          type: string
          description: What is wrong with the field.
          example: This field is required.
        pointer:
          type: string
          description: >-
            JSON Pointer to the field in the request, for example
            `#/accountDetails/clabe`.
          example: '#/accountDetails/clabe'
    FeeType:
      type: string
      description: >-
        `networkFee` and `walletSigning` appear only on orders that move an
        embedded wallet's funds. We invoice them at cost, so they are not part
        of `feeBps`, `feeAmount` or `destinationAmount`. See [Fees and
        billing](/guides/embedded-wallets#fees-and-billing).
      enum:
        - transactionFee
        - partnerFee
        - walletSponsor
        - bridge
        - networkFee
        - walletSigning
  responses:
    Unauthorized:
      description: >-
        `unauthorized`: the `Authorization` header is missing, not ASCII, or
        does not hold a valid API key.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    OrganizationNotFound:
      description: '`not-found`: your API key cannot act for this organization.'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    PayloadTooLarge:
      description: '`payload-too-large`: the request body is too large.'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    InternalError:
      description: >-
        `internal-error`: an unexpected error on our side. Retry with backoff,
        and quote `instance` to support if it persists.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API key sent in the Authorization header, with no `Bearer` prefix.

````

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