API reference
POST/quotes

Preview a payment quote

Preview the fee and exact charge or debit without moving funds

Overview

Calculate the current fee and exact payer charge or wallet debit without creating a payment. An idempotency header is unnecessary because this operation moves no funds.

A quote does not reserve funds, lock the fee or promise live provider availability. Show the returned amount to the payer before creating the payment.

Example request

Preview a payment quote
curl -X POST https://api.nuepay.net/v1/quotes \
  -H "Authorization: Bearer $NUEPAY_TEST_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"type":"collection","amount":"500.00","currency":"UGX"}'

Request body

FieldTypeDetails
typerequiredstringcollection, disbursement
amountrequiredstringWallet principal for collections; recipient amount for disbursements.
currencyrequiredstringUGX

Example response

Illustrative sandbox response
{
  "data": {
    "type": "collection",
    "currency": "UGX",
    "amount": "500.00",
    "fee": "20.00",
    "gross_amount": "520.00",
    "payer_charge": "520.00",
    "wallet_credit": "500.00",
    "recipient_amount": null,
    "wallet_debit": null,
    "mode": "test"
  }
}

Examples omit timestamps for readability. Use POST /quotes to confirm current fees rather than hard-coding these examples.

Response fields

FieldTypeDetails
amountstringSee the response and related guide.
feestringSee the response and related guide.
gross_amountstringSee the response and related guide.
currencystringSee the response and related guide.
payer_chargestring or nullSee the response and related guide.
wallet_creditstring or nullSee the response and related guide.
recipient_amountstring or nullSee the response and related guide.
wallet_debitstring or nullSee the response and related guide.
typestringcollection, disbursement
modestringlive, test

HTTP status codes

StatusMeaning
200Quote in UGX decimal strings. Collection total is rounded up to whole UGX. Quotes do not reserve funds or guarantee provider availability.
201Invalid credentials.
202Access unavailable or operation paused.
203Resource not found in this application and environment.
204Idempotency conflict, insufficient funds, or payout setup required.
205Invalid input; inspect errors and code.
206Rate limit exceeded.
207Live provider unavailable; accepted payments can still be read or retried.

Errors contain a stable code and support request_id. See error handling for recovery guidance.

Made for builders. Built in Uganda.NuePay API v1

Search endpoints, guides and examples.