Skip to main content
POST
/
api
/
v1
/
business-offramp
/
quote
Get Offramp Quote
curl --request POST \
  --url https://aboki-b2b-eobk.onrender.com/api/v1/business-offramp/quote \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "tokenAmount": 123,
  "targetToken": "<string>",
  "targetNetwork": "<string>"
}'
{
  "success": true,
  "data": {
    "tokenAmount": 123,
    "grossNgnAmount": 123,
    "feeAmount": 123,
    "netNgnAmount": 123,
    "exchangeRate": 123,
    "expiresAt": "<string>",
    "breakdown": {}
  }
}

Get Offramp Quote

Calculate how much NGN your customer will receive for selling crypto tokens. Shows exact amounts including fees and exchange rates.
Authorization
string
required
Your Public Key from the dashboard. Format: Bearer pk_live_your_key_here
Content-Type
string
required
Must be application/json

Body Parameters

tokenAmount
number
required
Amount of tokens to convert (e.g., 100 for 100 USDC)
targetToken
string
required
Token symbol to convert: USDC, USDT, ETH, SOL
targetNetwork
string
required
Blockchain network: base, ethereum, or solana

Response

success
boolean
Whether the quote was generated successfully
data
object
tokenAmount
number
Amount of tokens being converted
grossNgnAmount
number
Total NGN value before fees
feeAmount
number
Fee amount in NGN
netNgnAmount
number
Final NGN amount customer receives
exchangeRate
number
Current USD to NGN exchange rate
expiresAt
string
Quote expiration time (5 minutes)
breakdown
object
Detailed breakdown for customer display

Example Response

{
  "success": true,
  "data": {
    "tokenAmount": 100,
    "targetToken": "USDC",
    "targetNetwork": "base",
    "grossNgnAmount": 165000,
    "feeAmount": 2475,
    "netNgnAmount": 162525,
    "exchangeRate": 1650,
    "breakdown": {
      "youSend": "100 USDC",
      "grossValue": "₦165,000",
      "businessFee": "₦2,475 (1.5%)",
      "youReceive": "₦162,525"
    },
    "expiresAt": "2025-08-20T22:32:55.052Z"
  }
}


I