Get off-ramp quote
curl --request POST \
--url https://api.zet.money/v1/offramp/quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"amount": "100",
"tokenSymbol": "USDC",
"bankCode": "044",
"accountNumber": "0123456789",
"chain": "base"
}
'import requests
url = "https://api.zet.money/v1/offramp/quote"
payload = {
"amount": "100",
"tokenSymbol": "USDC",
"bankCode": "044",
"accountNumber": "0123456789",
"chain": "base"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '100',
tokenSymbol: 'USDC',
bankCode: '044',
accountNumber: '0123456789',
chain: 'base'
})
};
fetch('https://api.zet.money/v1/offramp/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zet.money/v1/offramp/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => '100',
'tokenSymbol' => 'USDC',
'bankCode' => '044',
'accountNumber' => '0123456789',
'chain' => 'base'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zet.money/v1/offramp/quote"
payload := strings.NewReader("{\n \"amount\": \"100\",\n \"tokenSymbol\": \"USDC\",\n \"bankCode\": \"044\",\n \"accountNumber\": \"0123456789\",\n \"chain\": \"base\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zet.money/v1/offramp/quote")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"100\",\n \"tokenSymbol\": \"USDC\",\n \"bankCode\": \"044\",\n \"accountNumber\": \"0123456789\",\n \"chain\": \"base\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zet.money/v1/offramp/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"100\",\n \"tokenSymbol\": \"USDC\",\n \"bankCode\": \"044\",\n \"accountNumber\": \"0123456789\",\n \"chain\": \"base\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"quoteId": "qt_01H8X4...",
"cryptoAmount": "100",
"tokenSymbol": "USDC",
"chain": "base",
"fiatAmount": "148500",
"fiatCurrency": "NGN",
"rate": "1540.50",
"fees": {
"platformFee": "50",
"providerFee": "148.50",
"swapFee": "20",
"totalFee": "218.50"
},
"bankAccount": {
"bankName": "Access Bank",
"bankCode": "044",
"accountNumber": "0123456789",
"accountName": "John Doe"
},
"expiresAt": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "INVALID_REQUEST",
"message": "The 'amount' field must be a positive number."
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API key."
}
}{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Try again in 60 seconds."
}
}Off-Ramp
Get Off-Ramp Quote
Get a price quote for selling crypto for Nigerian Naira (NGN).
The quote includes all fees broken down:
- Platform fee: 20 NGN
- Processing fee: 0.1% of fiat amount (capped at 200 NGN)
- Stamp duty: 50 NGN for amounts ≥ 10,000 NGN
- Swap fee: 20 NGN if source token is not CNGN (for the Token → CNGN conversion)
Also verifies the bank account and returns the resolved account name.
POST
/
offramp
/
quote
Get off-ramp quote
curl --request POST \
--url https://api.zet.money/v1/offramp/quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"amount": "100",
"tokenSymbol": "USDC",
"bankCode": "044",
"accountNumber": "0123456789",
"chain": "base"
}
'import requests
url = "https://api.zet.money/v1/offramp/quote"
payload = {
"amount": "100",
"tokenSymbol": "USDC",
"bankCode": "044",
"accountNumber": "0123456789",
"chain": "base"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '100',
tokenSymbol: 'USDC',
bankCode: '044',
accountNumber: '0123456789',
chain: 'base'
})
};
fetch('https://api.zet.money/v1/offramp/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zet.money/v1/offramp/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => '100',
'tokenSymbol' => 'USDC',
'bankCode' => '044',
'accountNumber' => '0123456789',
'chain' => 'base'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zet.money/v1/offramp/quote"
payload := strings.NewReader("{\n \"amount\": \"100\",\n \"tokenSymbol\": \"USDC\",\n \"bankCode\": \"044\",\n \"accountNumber\": \"0123456789\",\n \"chain\": \"base\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zet.money/v1/offramp/quote")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"100\",\n \"tokenSymbol\": \"USDC\",\n \"bankCode\": \"044\",\n \"accountNumber\": \"0123456789\",\n \"chain\": \"base\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zet.money/v1/offramp/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"100\",\n \"tokenSymbol\": \"USDC\",\n \"bankCode\": \"044\",\n \"accountNumber\": \"0123456789\",\n \"chain\": \"base\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"quoteId": "qt_01H8X4...",
"cryptoAmount": "100",
"tokenSymbol": "USDC",
"chain": "base",
"fiatAmount": "148500",
"fiatCurrency": "NGN",
"rate": "1540.50",
"fees": {
"platformFee": "50",
"providerFee": "148.50",
"swapFee": "20",
"totalFee": "218.50"
},
"bankAccount": {
"bankName": "Access Bank",
"bankCode": "044",
"accountNumber": "0123456789",
"accountName": "John Doe"
},
"expiresAt": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "INVALID_REQUEST",
"message": "The 'amount' field must be a positive number."
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API key."
}
}{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Try again in 60 seconds."
}
}Authorizations
Your Zet API key. Contact zetdotmoney@gmail.com to obtain your keys.
Body
application/json
Amount of crypto to sell.
Example:
"100"
Available options:
CNGN, USDC, ETH, cbBTC, BNB, USDT Example:
"USDC"
Nigerian bank code from /onramp/banks.
Example:
"044"
10-digit NUBAN account number.
Example:
"0123456789"
Primary chains where Zet-managed wallets operate
Available options:
base, bsc 