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

# Create quote

> Lock an exchange rate for five minutes. Pass the quote id when you create a conversion or a payout in another currency.



## OpenAPI

````yaml /openapi.json post /v1/quotes
openapi: 3.0.0
info:
  title: Payve API
  version: v1
  description: >-
    Send, collect and convert money across African corridors. Amounts are
    integers in minor units.
servers:
  - url: https://sandbox.api.payvehq.com
    description: Sandbox
  - url: https://api.payvehq.com
    description: Live
security:
  - api-key: []
tags:
  - name: quotes
    description: Lock an exchange rate and fee before you move money.
    x-group: Quotes
  - name: payouts
    description: Send money to bank accounts and mobile money wallets.
    x-group: Payouts
  - name: payins
    description: Collect money from a payer.
    x-group: Pay-ins
  - name: payment-links
    description: Hosted checkout pages you can share.
    x-group: Payment links
  - name: conversions
    description: Move a balance from one of your wallets to another currency.
    x-group: Conversions
  - name: wallets
    description: Balances and virtual accounts.
    x-group: Wallets
  - name: beneficiaries
    description: Saved payout recipients.
    x-group: Beneficiaries
  - name: refunds
    description: Return a pay-in to the payer.
    x-group: Refunds
  - name: statements
    description: Statement files for your wallets.
    x-group: Statements
  - name: webhooks
    description: Read your endpoints and delivery history.
    x-group: Webhooks
  - name: reference-data
    description: Currencies, indicative rates, banks and operators. No key needed.
    x-group: Reference data
paths:
  /v1/quotes:
    post:
      tags:
        - quotes
      summary: Create quote
      description: >-
        Lock an exchange rate for five minutes. Pass the quote id when you
        create a conversion or a payout in another currency.
      operationId: QuotesController_createQuote
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateQuoteDto'
      responses:
        '201':
          description: Quote created — locked for 5 minutes
        '400':
          description: Currency pair not supported or no wallet for currency
      security:
        - api-key: []
components:
  schemas:
    CreateQuoteDto:
      type: object
      properties:
        sourceCurrency:
          type: string
          enum:
            - NGN
            - GHS
            - KES
          example: NGN
          description: Source currency — must match a wallet held by the merchant
        destinationCurrency:
          type: string
          enum:
            - NGN
            - GHS
            - KES
          example: GHS
          description: Destination currency — must match a wallet held by the merchant
        amount:
          type: number
          description: >-
            Amount in minor units (kobo, pesewas, cents…) — a positive WHOLE
            number. There is no half-kobo, so a fractional amount is rejected
            rather than rounded.
          example: 1000000
        transactionType:
          type: string
          enum:
            - payout
            - conversion
          default: payout
          description: >-
            Intent for this quote. Use "conversion" for a wallet-to-wallet FX
            conversion so an auto (provider-settled) corridor is priced at the
            provider rate the settlement will actually apply. "payout" (the
            default) prices a cross-currency payout at the internal rate.
      required:
        - sourceCurrency
        - destinationCurrency
        - amount
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: Your secret key. It starts with sk_test_ or sk_live_.

````