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

# Quote a Stripe onramp amount

> Return an informational price estimate for an onramp purchase.

An informational price estimate. Pin exactly one of `source_amount` or
`destination_amount`. Display only — the binding amounts are set when the
session opens at [Open a Stripe onramp session](/api/stripe/session).


## OpenAPI

````yaml api/openapi.json GET /v1/stripe/quote
openapi: 3.1.0
info:
  description: Fiat-to-USDC onramp API. The URL prefix (`/v1`) is the version contract.
  license:
    identifier: LicenseRef-Proprietary
    name: Proprietary
  title: Calm API
  version: v1
servers:
  - description: Production
    url: https://api.calmtreasury.xyz
  - description: Sandbox
    url: https://api.sandbox.calmtreasury.xyz
security: []
paths:
  /v1/stripe/quote:
    get:
      summary: Quote a Stripe onramp amount
      description: >-
        Returns an informational price estimate for a source amount (fiat spend)
        or destination amount (target USDC) — the destination amount, the
        buyer's all-in source total, the fee components, and when the rate was
        fetched. Pin exactly one. No authenticated buyer is needed.
        Display-only: the final amounts are set at session creation.
      operationId: getStripeQuote
      parameters:
        - in: query
          name: source_amount
          required: false
          schema:
            pattern: ^\d+(\.\d+)?$
            type: string
        - in: query
          name: destination_amount
          required: false
          schema:
            pattern: ^\d+(\.\d+)?$
            type: string
        - in: query
          name: source_currency
          required: false
          schema:
            const: USD
            default: USD
            type: string
        - in: query
          name: destination_currency
          required: false
          schema:
            default: usdc
            minLength: 1
            type: string
        - in: query
          name: destination_network
          required: false
          schema:
            default: base
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  destination_amount:
                    type: string
                  network_fee:
                    type: string
                  rate_fetched_at:
                    type: number
                  source_total_amount:
                    type: string
                  transaction_fee:
                    type: string
                required:
                  - destination_amount
                  - source_total_amount
                  - network_fee
                  - transaction_fee
                  - rate_fetched_at
                type: object
          description: The price estimate for the requested amount.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            Bad Request — `error.code` includes: publishable_key_missing,
            validation_error.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Unauthorized — `error.code` includes: invalid_publishable_key.'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Forbidden — `error.code` includes: origin_not_allowed.'
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Too Many Requests — `error.code` includes: rate_limited.'
        '502':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Bad Gateway — `error.code` includes: quote_unavailable.'
      security:
        - publishableKey: []
components:
  schemas:
    Error:
      properties:
        error:
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
          type: object
      required:
        - error
      type: object
  securitySchemes:
    publishableKey:
      description: Publishable key identifying the calling app.
      in: header
      name: x-calm-publishable-key
      type: apiKey

````