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

# Create a crypto payment quote

> Generate a fee estimation quote for a transit payment

## Settlement Configuration

Currently only supports **USDC to USDC** settlements on **Solana**.

* `settlement_via`: Must be `ONE_TO_ONE`
* `currency`: Must be `USDC`
* `rail`: Must be `SOLANA`

## Rebalance Fee Behavior

* **`rebalance_fee: true`** — Fees absorbed into order amount. `total_order_amount` = `order_amount`.
* **`rebalance_fee: false`** — Fees added on top. `total_order_amount` = `order_amount` + `total_fee`.

<Note>
  The quote has a limited validity period indicated by `expire_at`. Generate a new quote if it has expired.
</Note>


## OpenAPI

````yaml POST /v1/transit/quote
openapi: 3.1.0
info:
  title: Fin.com API
  version: 1.0.0
  description: A simple API specification
servers:
  - url: https://sandbox.api.fin.com
    description: Sandbox server
  - url: https://api.fin.com
    description: Production server
security: []
tags:
  - name: Authentication
    description: A modified OAuth 2.0 Client Credential Flow
  - name: Customers
    description: Customer management and document upload operations
  - name: Balances
    description: Retrieve wallet balance information
  - name: Catalogue
    description: |
      A set of endpoints to retrieve contextual data to assemble requests
      to fin.com's API
  - name: Beneficiaries
    description: Manage beneficiary accounts for payments and transfers
  - name: Transactions
    description: Transaction history and management for beneficiaries
  - name: Virtual Accounts
    description: Create and manage virtual accounts for USD to USDC conversions
  - name: Fees & FX Rates
    description: Retrieve fees and foreign exchange rates
paths:
  /v1/transit/quote:
    post:
      tags:
        - Crypto Orchestration
      summary: Create a crypto payment quote
      description: Generate a fee estimation quote for a transit payment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - order_amount
                - integration_type
                - settlement_config
              properties:
                order_amount:
                  type: string
                  example: '100.00'
                integration_type:
                  type: string
                  enum:
                    - BYBIT
                    - PASS_THROUGH
                  example: BYBIT
                settlement_config:
                  type: object
                  required:
                    - settlement_via
                    - rebalance_fee
                    - destination_details
                  properties:
                    settlement_via:
                      type: string
                      enum:
                        - ONE_TO_ONE
                        - MARKET_ORDER
                        - FEE_RETENTION
                      example: ONE_TO_ONE
                    rebalance_fee:
                      type: boolean
                      example: true
                    destination_details:
                      type: object
                      required:
                        - wallet_address
                        - currency
                        - rail
                      properties:
                        wallet_address:
                          type: string
                          example: SOLANA_WALLET_ADDRESS
                        currency:
                          type: string
                          enum:
                            - USDC
                            - USDT
                            - BTC
                            - ETH
                          example: USDC
                        rail:
                          type: string
                          enum:
                            - SOLANA
                            - BITCOIN
                            - ETHEREUM
                            - BASE
                          example: SOLANA
            examples:
              rebalanceFeeTrue:
                summary: Quote with rebalance fee absorbed
                value:
                  order_amount: '100.00'
                  integration_type: BYBIT
                  settlement_config:
                    settlement_via: ONE_TO_ONE
                    rebalance_fee: true
                    destination_details:
                      wallet_address: SOLANA_WALLET_ADDRESS
                      currency: USDC
                      rail: SOLANA
              rebalanceFeeFalse:
                summary: Quote with fees added on top
                value:
                  order_amount: '100.00'
                  integration_type: BYBIT
                  settlement_config:
                    settlement_via: ONE_TO_ONE
                    rebalance_fee: false
                    destination_details:
                      wallet_address: SOLANA_WALLET_ADDRESS
                      currency: USDC
                      rail: SOLANA
      responses:
        '200':
          description: Quote created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      quote_id:
                        type: string
                        format: uuid
                        example: FIN_PROVIDED_UUID
                      expire_at:
                        type: integer
                        example: 1770916749
                      order_amount:
                        type: string
                        example: '100.00'
                      integration_type:
                        type: string
                        example: BYBIT
                      settlement_config:
                        type: object
                        properties:
                          settlement_via:
                            type: string
                            example: ONE_TO_ONE
                          rebalance_fee:
                            type: boolean
                            example: true
                          destination_details:
                            type: object
                            properties:
                              wallet_address:
                                type: string
                                example: SOLANA_WALLET_ADDRESS
                              currency:
                                type: string
                                example: USDC
                              rail:
                                type: string
                                example: SOLANA
                      quote_estimation:
                        type: object
                        properties:
                          payment_fee:
                            type: string
                            example: '0.50'
                          conversion_fee:
                            type: string
                            example: '0.00'
                          withdrawal_fee:
                            type: string
                            example: '1.00'
                          gas_fee:
                            type: string
                            example: '0.50'
                          total_fee:
                            type: string
                            example: '2.00'
                          total_order_amount:
                            type: string
                            example: '100.00'
                          ata_fee_applied:
                            type: boolean
                            example: true
        '401':
          $ref: '#/components/responses/AuthenticationError'
      security:
        - bearerAuth: []
components:
  responses:
    AuthenticationError:
      description: Authentication failed due to invalid credentials
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                example: Authentication failed
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer token authentication. Obtain token from [Issue a
        Token](https://developer.fin.com/api-reference/authentication/issue-a-token)
        endpoint

````