Fonbnk Docs
  • Intro
  • Integration Guide
  • On-ramp
    • How it works
    • URL Parameters
    • Webhook
  • Off-ramp
    • How it works
    • URL Parameters
    • Webhook
  • Reference
    • Servers
    • Signing requests
    • Endpoints
      • On-ramp
        • Assets
        • Order
        • Orders
        • Price
        • Providers
        • Limits
      • Off-ramp
        • Order
        • Orders
        • Best offer
        • Limits
        • Countries
        • Wallets
        • Validate fields
        • Create order
        • Confirm order
      • Util
        • Check address
        • Assets
      • Kyc
        • State
        • Submit
    • Specification
Powered by GitBook
On this page
  1. Reference
  2. Endpoints
  3. On-ramp

Price

PreviousOrdersNextProviders

Get price

get

Returns expected price in USDC, cUSD etc. for a given amount of mobile money and vice versa.

Authorizations
Query parameters
networkstring · enumRequiredPossible values:
assetstring · enumRequiredPossible values:
currencystring · enumRequiredPossible values:
amountnumberRequired
countrystringRequired

country ISO code, e.g. NG

providerstring · enumRequiredPossible values:
carrierIdstringOptional
Responses
200
Successful response
application/json
get
GET /api/pay-widget-merchant/price HTTP/1.1
Host: sandbox-api.fonbnk.com
x-client-id: YOUR_API_KEY
Accept: */*
200

Successful response

{
  "quoteId": "651e764399a4b360c7eb0178",
  "cryptoTotalAmount": 5.12,
  "cryptoWithdrawAmount": 5,
  "cryptoFeeAmount": 0.12,
  "cryptoGasAmount": 0,
  "localCurrencyAmount": 5120,
  "feePercent": 2.5,
  "fonbnkFeePercent": 1.5,
  "partnerFeePercent": 1,
  "totalAmount": 5.12,
  "withdrawAmount": 5,
  "feeAmount": 0.12,
  "localCurrencyFeeAmount": 120,
  "fonbnkFeeAmount": 0.07,
  "localCurrencyFonbnkFeeAmount": 70,
  "partnerFeeAmount": 0.05,
  "localCurrencyPartnerFeeAmount": 50,
  "networkFeeAmount": 0,
  "localCurrencyNetworkFeeAmount": 0,
  "usdcTotalAmount": 5.12,
  "usdcWithdrawAmount": 5,
  "usdcFeeAmount": 0.12,
  "usdcGasAmount": 0
}