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

# Get Offramp Quote

> Get a quote for converting crypto to fiat and sending to a registered destination account



## OpenAPI

````yaml /api-reference/openapi.json post /payment/api/v1/offramp/get-quote
openapi: 3.0.0
info:
  title: Carbn Connect API
  version: 1.0.0
  description: >-
    API documentation for Carbn Connect services including user onboarding, KYC,
    wallet management, and transfers.
servers:
  - url: https://api.carbnconnect.com
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /payment/api/v1/offramp/get-quote:
    post:
      tags:
        - Payments
      summary: Get Offramp Quote
      description: >-
        Get a quote for converting crypto to fiat and sending to a registered
        destination account
      operationId: offrampGetQuote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OfframpGetQuoteRequest'
      responses:
        '200':
          description: Quote retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OfframpQuoteResponse'
        '400':
          description: Invalid request
        '401':
          description: Unauthorized - API key is missing or invalid
      deprecated: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    OfframpGetQuoteRequest:
      type: object
      required:
        - user_id
        - crypto
        - blockchain
        - destination_currency
      description: >-
        Request a quote for offramp transfer. Either amount_in or amount_out
        must be provided (but not both).
      properties:
        user_id:
          type: string
          format: uuid
          example: 0d64857d-1052-4252-a95b-c118ee86efa9
          description: The unique identifier of the user
        crypto:
          type: string
          example: USDC
          description: The cryptocurrency to convert (e.g., USDC, USDT)
        blockchain:
          type: string
          example: solana
          description: The blockchain network (e.g., solana, ethereum, polygon)
        destination_currency:
          type: string
          example: PHP
          description: The destination fiat currency code (ISO 4217)
        amount_in:
          type: number
          example: 0.3
          description: >-
            Amount of crypto to convert (input amount). Either amount_in or
            amount_out must be provided.
        amount_out:
          type: number
          example: 17.87
          description: >-
            Amount of fiat to receive (output amount). Either amount_in or
            amount_out must be provided.
    OfframpQuoteResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 733bb4d7-9ae3-44f6-b73c-82909bba8352
          description: Unique identifier for the quote
        amount_in:
          type: number
          example: 0.3
          description: Amount of crypto to convert (input amount)
        amount_out:
          type: number
          example: 17.87
          description: Amount of fiat to be received (output amount)
        rail_fee:
          type: number
          example: 10
          description: Rail fee charged for the transfer
        crypto:
          type: string
          example: USDC
          description: The cryptocurrency being converted
        blockchain:
          type: string
          example: solana
          description: The blockchain network used
        destination_currency:
          type: string
          example: PHP
          description: The destination fiat currency code (ISO 4217)
        carbn_exchange_rate:
          type: number
          example: 59.57
          description: Carbn's exchange rate for the conversion
        exchange_rate:
          type: number
          example: 59.46
          description: The exchange rate applied for the conversion
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Must be included in the x-api-key header.

````