---
title: "Create a quote"
method: POST
path: "/quote"
tags: ["Quote"]
---

# Create a quote

`POST /quote`

Create a quote for a given currency

## Request body

- CreateQuote
  - `amount` number
  - `sourceCurrency` 'BTC' | 'NGN' | 'KES', string
  - `targetCurrency` 'NGN' | 'BTC' | 'KES', string
  - `paymentMethod` 'LIGHTNING' | 'ONCHAIN' | 'USDT', string
  - `paymentCurrency` 'BTC' | 'NGN' | 'KES', string
  - `implicitFees` boolean

## Response `200`

Quote response

- object
  - `status` string, string
  - `data` Quote
    - `id` string, uuid
    - `exchangeRate` number
    - `usdToTargetCurrencyRate` number
    - `sourceCurrency` 'BTCSAT' | 'NGNKOBO' | 'KESCENT', string
    - `targetCurrency` 'NGNKOBO' | 'KESCENT', string
    - `transactionFeesInSourceCurrency` number
    - `transactionFeesInTargetCurrency` string, string
    - `amountInSourceCurrency` number
    - `amountInTargetCurrency` string, string
    - `paymentMethod` 'LIGHTNING' | 'ONCHAIN' | 'USDT', string
    - `expiry` string, date-time
    - `isValid` boolean
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400` — Unexpected error

## Changes

- **2024-06-15** `9dd2ff89497c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/stealthmoney/apis/mavapay-api/changes/quote/post.md)

---

[API](https://skmtc.dev/stealthmoney/apis/mavapay-api.md) · [All operations](https://skmtc.dev/stealthmoney/apis/mavapay-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stealthmoney/apis/mavapay-api/revisions/9dd2ff89497c?raw)
