> ## 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 briefly (`expiresAt`). `amountSide: target` (default) fixes the stablecoin the wallet receives; `source` fixes the fiat the payer sends. The total the payer must send (including the provider's processing fee and VAT) is returned when the order is created.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/onramp/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/onramp/quotes:
    post:
      tags:
        - On-ramp
      summary: Create a quote session
      description: >-
        Prices the conversion and returns a single-use `sessionId` valid briefly
        (`expiresAt`). `amountSide: target` (default) fixes the stablecoin the
        wallet receives; `source` fixes the fiat the payer sends. The total the
        payer must send (including the provider's processing fee and VAT) is
        returned when the order is created.
      operationId: createOnrampQuote
      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
                amount:
                  type: string
                  example: '100.00'
                amountSide:
                  type: string
                  enum:
                    - target
                    - source
                  default: target
                  description: >-
                    target = stablecoin the wallet receives; source = fiat the
                    payer sends
      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
                      amount:
                        type: string
                        description: Stablecoin the wallet receives
                      amountFiat:
                        type: string
                        description: Fiat sent, before the provider's processing fee/VAT
                      rate:
                        type: string
                        description: Fiat per unit of stablecoin
                      expiresAt:
                        type: string
                        format: date-time
        '400':
          description: Invalid input or unsupported asset
          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.