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

# Create Quote

> Exchange rate quote for currency conversion.
[  *Stablecoin Account API Publisher Disclaimer*](/stablecoin-account/v1.6/guide/stablecoin-account-api-publisher-disclaimer)




## OpenAPI

````yaml /stablecoin-account/v1.6/ramp.yaml post /v1/ramp/conversion/quote
openapi: 3.0.2
info:
  title: Stablecoin Account API
  version: 1.0.4
  description: >
    UQPAY Stablecoin Account API provides comprehensive stablecoin account
    management and payment solutions for fiat-cryptocurrency conversion,
    enabling complete fund flow loop functionality.


    ## Key Features

    - Asset Management: Query and manage wallet balances across multiple
    currencies

    - Fiat Transfer: Transfer funds between Stablecoin Account and Global
    Account systems

    - Currency Exchange: Crypto-Fiat mutual conversion with real-time quotes

    - Cryptocurrency Deposit: Receive crypto deposits with address management

    - Cryptocurrency Withdrawal: Initiate and track crypto withdrawals


    ## Authentication

    Use API keys to authenticate your client requests when utilizing UQPAY APIs.

    API keys are unique data strings used to authenticate users and enable
    access to privileged operations.

    Your API key should be kept confidential and secure at all times.


    ## Getting Started

    1. Obtain API credentials (x-client-id and x-api-key)

    2. Request access token via POST /api/v1/connect/token

    3. Set up test environment using sandbox URL

    4. Implement authentication with x-auth-token header

    5. Start with basic operations


    ## Support

    For technical support and integration assistance, contact UQPAY support
    team.
  contact:
    name: UQPAY Support
    url: https://www.uqpay.com/support
    email: ramp.tech@uqpay.com
  license:
    name: Proprietary
    url: https://www.uqpay.com/legal/api-terms
  termsOfService: https://www.uqpay.com/legal/terms
  x-api-id: ramp-api-v1.0.0
  x-logo:
    url: https://uqpay.com/img/UQPAY_LogoAnimv2.gif
    backgroundColor: '#FFFFFF'
    altText: UQPAY Logo
  x-categories:
    - Stablecoin Account
    - Payment Processing
    - Cryptocurrency
    - Fiat Exchange
servers:
  - url: https://api-sandbox.uqpaytech.com/api
    description: Sandbox base URL.
  - url: https://api.uqpay.com/api
    description: Production base URL.
security: []
tags:
  - name: Assets
    description: >-
      Manage stablecoin wallet accounts and query balances across different
      currencies.
  - name: Transfer (Out/In)
    description: Transfer funds between Stablecoin Account and Global Account systems.
  - name: Conversions
    description: Execute currency conversions between cryptocurrency and fiat currencies.
  - name: Deposits
    description: Manage cryptocurrency deposit addresses and track deposit transactions.
  - name: Withdrawals
    description: Create and manage cryptocurrency withdrawal requests.
  - name: Configuration
    description: Query supported assets, networks, and system configuration.
  - name: Address Book
    description: Manage wallet address book entries for withdrawals.
  - name: Travel Rule
    description: >-
      Reference data (VASPs, countries, regions) used to populate Travel Rule
      beneficiary information for address book entries.
paths:
  /v1/ramp/conversion/quote:
    post:
      tags:
        - Conversions
      summary: Create Quote
      description: >
        Exchange rate quote for currency conversion.

        [  *Stablecoin Account API Publisher
        Disclaimer*](/stablecoin-account/v1.6/guide/stablecoin-account-api-publisher-disclaimer)
      operationId: create-quote
      parameters:
        - $ref: '#/components/parameters/XOnBehalfOf'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuoteCreateRequest'
      responses:
        '200':
          headers:
            x-response-id:
              $ref: '#/components/headers/XResponseId'
          description: Quote created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuoteCreateResponse'
                title: QuoteCreateResponse
      security:
        - XAuthToken: []
      externalDocs:
        description: API Publisher Disclaimer – UQPAY Australia
        url: >-
          /stablecoin-account/v1.6/guide/stablecoin-account-api-publisher-disclaimer
components:
  parameters:
    XOnBehalfOf:
      in: header
      name: x-on-behalf-of
      schema:
        type: string
      required: false
      description: >
        Specifies the sub-account on whose behalf the request is made. This
        should be set to the `account_id`, which can be retrieved via the List
        Connected Accounts API. If omitted or empty, the request is executed
        using the master account.

        More information at Connected Accounts.
      example: 18523f72-f4de-4f9c-bb8e-ec7d1c4f32be
  schemas:
    QuoteCreateRequest:
      type: object
      required:
        - sell_currency
        - amount
        - buy_currency
        - fixed_currency
      properties:
        sell_currency:
          type: string
          description: >
            Selling currency.\

            For crypto-to-crypto, only USDT with one other supported coin is
            allowed.
          example: USDT
        buy_currency:
          type: string
          description: >
            Buying currency. \

            For crypto-to-crypto, only USDT with one other supported coin is
            allowed.
          example: USD
        amount:
          type: string
          description: Amount for conversion
          example: '1000.00'
        fixed_currency:
          type: string
          description: >
            The currency to fix the amount for (either sell or buy currency). \

            If either side is volatile (for example BTC or ETH), only USDT is
            allowed.
          example: USD
    QuoteCreateResponse:
      type: object
      required:
        - code
        - message
        - data
      properties:
        code:
          type: integer
          example: 200
        message:
          type: string
          example: Success
        data:
          $ref: '#/components/schemas/QuoteResponse'
    QuoteResponse:
      type: object
      required:
        - quote_id
        - sell_currency
        - sell_amount
        - buy_currency
        - buy_amount
        - currency_pair
        - direct_rate
        - inverse_rate
        - processing_fee
        - network_fee
        - valid_from
        - valid_to
      properties:
        quote_id:
          type: string
          format: uuid
          description: Quote ID
          example: 958813b7-8523-4b93-862e-46eddb87b56d
        sell_currency:
          type: string
          description: Selling currency
          example: USDT
        sell_amount:
          type: string
          description: Selling amount
          example: '100'
        buy_currency:
          type: string
          description: Buying currency
          example: SGD
        buy_amount:
          type: string
          description: Buying amount
          example: '133.84'
        currency_pair:
          type: string
          description: Currency pair
          example: USDTSGD
        direct_rate:
          type: string
          description: Direct exchange rate
          example: '1.3384723'
        inverse_rate:
          type: string
          description: Inverse exchange rate
          example: '0.74712043'
        processing_fee:
          type: string
          description: Processing fee
          example: '0'
        network_fee:
          type: string
          description: Network fee
          example: '0'
        valid_from:
          type: string
          format: date-time
          description: Quote validity start time (ISO 8601)
          example: '2026-04-27T10:47:26+08:00'
        valid_to:
          type: string
          format: date-time
          description: Quote validity end time (ISO 8601)
          example: '2026-04-27T10:50:26+08:00'
  headers:
    XResponseId:
      description: >-
        Universally unique identifier (UUID v4) for the response. Helpful for
        identifying a request when communicating with UQPAY support.
      schema:
        type: string
        format: uuid
        example: 2adba88e-9d63-44bc-b975-9b6ae3440dde
  securitySchemes:
    XAuthToken:
      type: apiKey
      in: header
      name: x-auth-token
      description: The API token for login provided by UQPay.

````