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

# Create a quote session

> Prices the conversion and returns a single-use `sessionId` valid for a short window (`expiresAt`). `amountSide: source` (default) fixes the stablecoin you send; `target` fixes the fiat the recipient receives. Rejects if the wallet's balance is known to be insufficient.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/offramp/quotes
openapi: 3.0.3
info:
  title: XentFi API
  version: 1.0.0
  description: >-
    API documentation for XentFi.The XentFi API gives you access to pretty much
    all the features you can use on our dashboard and lets you extend them for
    use in your application. It strives to be RESTful and is organized around
    the main resources you would be interacting with - with a few notable
    exceptions.
servers:
  - url: https://api.xentfi.com
    description: Production server
security: []
tags: []
paths:
  /v1/offramp/quotes:
    post:
      tags:
        - Off-ramp
      summary: Create a quote session
      description: >-
        Prices the conversion and returns a single-use `sessionId` valid for a
        short window (`expiresAt`). `amountSide: source` (default) fixes the
        stablecoin you send; `target` fixes the fiat the recipient receives.
        Rejects if the wallet's balance is known to be insufficient.
      operationId: createOfframpQuote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - walletId
                - assetId
                - currency
                - amount
              properties:
                walletId:
                  type: string
                  format: uuid
                assetId:
                  type: string
                  format: uuid
                currency:
                  type: string
                  enum:
                    - NGN
                    - GHS
                    - USD
                    - EUR
                amount:
                  type: string
                  example: '100.00'
                amountSide:
                  type: string
                  enum:
                    - source
                    - target
                  default: source
      responses:
        '201':
          description: Quote session
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      sessionId:
                        type: string
                        format: uuid
                      walletId:
                        type: string
                      assetId:
                        type: string
                      currency:
                        type: string
                      amountSide:
                        type: string
                      sourceAmount:
                        type: string
                        description: Stablecoin amount that will be sent
                      fiatAmount:
                        type: string
                        description: Fiat the recipient receives
                      rate:
                        type: string
                      fee:
                        type: object
                        properties:
                          amount:
                            type: string
                          currency:
                            type: string
                      expiresAt:
                        type: string
                        format: date-time
        '400':
          description: Invalid input, unsupported asset/corridor, or insufficient balance
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        example: NOT_FOUND
                      message:
                        type: string
                        example: Wallet not found
                      timestamp:
                        type: string
                        format: date-time
                      requestId:
                        type: string
        '404':
          description: Wallet or asset not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        example: NOT_FOUND
                      message:
                        type: string
                        example: Wallet not found
                      timestamp:
                        type: string
                        format: date-time
                      requestId:
                        type: string
      security:
        - ApiKeyAuth: []
          OrgIdAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apiKey
    OrgIdAuth:
      type: apiKey
      in: header
      name: orgId

````

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