# Create sub-account
Source: https://docs.monirates.com/api-reference/business-sub-account/create-sub-account
https://interface.monirates.com/v1/api-docs.json post /sub-account
Create a sub-account for a business. A sub-account is a user's account that is tied to a business.
# Get sub-account
Source: https://docs.monirates.com/api-reference/business-sub-account/get-sub-account
https://interface.monirates.com/v1/api-docs.json get /sub-account/{subAccountId}
Get a sub-account for a business.
# List sub-accounts
Source: https://docs.monirates.com/api-reference/business-sub-account/list-sub-accounts
https://interface.monirates.com/v1/api-docs.json get /sub-accounts
Get all sub-accounts for a business.
# Create an exchange
Source: https://docs.monirates.com/api-reference/exchange/create-an-exchange
https://interface.monirates.com/v1/api-docs.json post /offer/{offerId}/order
# Exchange history
Source: https://docs.monirates.com/api-reference/exchange/exchange-history
https://interface.monirates.com/v1/api-docs.json get /order/my-orders
# Lookup exchange
Source: https://docs.monirates.com/api-reference/exchange/lookup-exchange
https://interface.monirates.com/v1/api-docs.json get /order/{orderId}
# Payment made
Source: https://docs.monirates.com/api-reference/exchange/payment-made
https://interface.monirates.com/v1/api-docs.json post /order/{orderId}/buyer-paid
# Cancel payment link
Source: https://docs.monirates.com/api-reference/payment-link/cancel-payment-link
https://interface.monirates.com/v1/api-docs.json post /payment-link/{paymentRequestId}/cancel
Creator cancels a payment link
# Create exchange
Source: https://docs.monirates.com/api-reference/payment-link/create-exchange
https://interface.monirates.com/v1/api-docs.json post /offer/{offerId}/payment-request/order
Create an exchange from a payment link
# Create payment link
Source: https://docs.monirates.com/api-reference/payment-link/create-payment-link
https://interface.monirates.com/v1/api-docs.json post /payment-link
# Decline payment link
Source: https://docs.monirates.com/api-reference/payment-link/decline-payment-link
https://interface.monirates.com/v1/api-docs.json post /payment-link/decline
Payer declines a payment link
# Fetch payment link
Source: https://docs.monirates.com/api-reference/payment-link/fetch-payment-link
https://interface.monirates.com/v1/api-docs.json get /payment-link/pay
Payer fetches a payment link
# Get payment link
Source: https://docs.monirates.com/api-reference/payment-link/get-payment-link
https://interface.monirates.com/v1/api-docs.json get /payment-link/{paymentRequestId}
# Get payment links
Source: https://docs.monirates.com/api-reference/payment-link/get-payment-links
https://interface.monirates.com/v1/api-docs.json get /payment-links
# Payment link rate
Source: https://docs.monirates.com/api-reference/payment-link/payment-link-rate
https://interface.monirates.com/v1/api-docs.json get /utility/payment-link-rate
Get payment link rate to create an exchange
# Payment made
Source: https://docs.monirates.com/api-reference/payment-link/payment-made
https://interface.monirates.com/v1/api-docs.json post /order/{orderId}/payment-request/buyer-paid
Payment made from a payment link
# Update payment link
Source: https://docs.monirates.com/api-reference/payment-link/update-payment-link
https://interface.monirates.com/v1/api-docs.json patch /payment-link/{paymentRequestId}
# Get providers
Source: https://docs.monirates.com/api-reference/providers/get-providers
https://interface.monirates.com/v1/api-docs.json get /transaction/{method}/providers
# Initiate identity verification
Source: https://docs.monirates.com/api-reference/providers/initiate-identity-verification
https://interface.monirates.com/v1/api-docs.json get /utility/safehaven/identity-verification/initiate
# Verify bank account
Source: https://docs.monirates.com/api-reference/providers/verify-bank-account
https://interface.monirates.com/v1/api-docs.json post /transaction/verify-bank-account
# Create stable wallet
Source: https://docs.monirates.com/api-reference/stable-wallet/create-stable-wallet
https://interface.monirates.com/v1/api-docs.json post /stable-currency/wallet
Create a stable wallet for a user.
# Create sub-wallet
Source: https://docs.monirates.com/api-reference/stable-wallet/create-sub-wallet
https://interface.monirates.com/v1/api-docs.json post /stable-currency/sub-accounts/{subAccountId}/wallet
Create a stable wallet for a sub-account.
# Fund dev wallet
Source: https://docs.monirates.com/api-reference/stable-wallet/fund-dev-wallet
https://interface.monirates.com/v1/api-docs.json post /stable-currency/fund-dev-wallet
Testnet only. Fund a wallet with the specified amount. This endpoint is ony available in development environment. amount per transaction capped at 1000 USDT/USDC
# Get balance
Source: https://docs.monirates.com/api-reference/stable-wallet/get-balance
https://interface.monirates.com/v1/api-docs.json get /stable-currency/balance
Get USDT and USDC balances across all supported networks
# Get transactions
Source: https://docs.monirates.com/api-reference/stable-wallet/get-transactions
https://interface.monirates.com/v1/api-docs.json get /stable-currency/transactions
Fetch transaction histories for a user
# Lookup transaction
Source: https://docs.monirates.com/api-reference/stable-wallet/lookup-transaction
https://interface.monirates.com/v1/api-docs.json get /stable-currency/transaction/{transactionId}
Fetch a single transaction
# Sub-wallet balance
Source: https://docs.monirates.com/api-reference/stable-wallet/sub-wallet-balance
https://interface.monirates.com/v1/api-docs.json get /stable-currency/sub-accounts/{subAccountId}/balance
Get USDT and USDC balances across all supported networks for a sub-account
# Sub-wallet overview
Source: https://docs.monirates.com/api-reference/stable-wallet/sub-wallet-overview
https://interface.monirates.com/v1/api-docs.json get /stable-currency/sub-accounts/balance
Get paginated USDT and USDC balance totals for all sub-accounts under a business
# Sub-wallet transaction
Source: https://docs.monirates.com/api-reference/stable-wallet/sub-wallet-transaction
https://interface.monirates.com/v1/api-docs.json get /stable-currency/sub-accounts/{subAccountId}/transaction/{transactionId}
Fetch a single transaction for a sub-account
# Sub-wallet transactions
Source: https://docs.monirates.com/api-reference/stable-wallet/sub-wallet-transactions
https://interface.monirates.com/v1/api-docs.json get /stable-currency/sub-accounts/{subAccountId}/transactions
Fetch transaction histories for a sub-account
# Sub-wallet withdrawal
Source: https://docs.monirates.com/api-reference/stable-wallet/sub-wallet-withdrawal
https://interface.monirates.com/v1/api-docs.json post /stable-currency/sub-accounts/{subAccountId}/withdraw
Withdraw USDT or USDC from a sub-account to an external address
# Sweep to main
Source: https://docs.monirates.com/api-reference/stable-wallet/sweep-to-main
https://interface.monirates.com/v1/api-docs.json post /stable-currency/sweep-to-main
Sweep all sub-account balances to the main wallet.
# Withdraw stable currency
Source: https://docs.monirates.com/api-reference/stable-wallet/withdraw-stable-currency
https://interface.monirates.com/v1/api-docs.json post /stable-currency/withdraw
Withdraw USDT or USDC to an external address
# Fund wallet
Source: https://docs.monirates.com/api-reference/transaction/fund-wallet
https://interface.monirates.com/v1/api-docs.json post /transaction/fund-wallet
Fund wallet with the specified amount.
# Get transactions
Source: https://docs.monirates.com/api-reference/transaction/get-transactions
https://interface.monirates.com/v1/api-docs.json get /transactions
Get a list of all transactions for the user.
# Lookup transaction
Source: https://docs.monirates.com/api-reference/transaction/lookup-transaction
https://interface.monirates.com/v1/api-docs.json get /transactions/{transactionId}
Get details of a specific transaction.
# Withdraw to bank
Source: https://docs.monirates.com/api-reference/transaction/withdraw-to-bank
https://interface.monirates.com/v1/api-docs.json post /transaction/transfer/bank
Withdraw funds from a wallet to a bank account.
# Withdraw to mobile money
Source: https://docs.monirates.com/api-reference/transaction/withdraw-to-mobile-money
https://interface.monirates.com/v1/api-docs.json post /transaction/transfer/momo
Withdraw funds from a wallet to a mobile money account.
# Get rate
Source: https://docs.monirates.com/api-reference/utility/get-rate
https://interface.monirates.com/v1/api-docs.json get /utility/exchange-rate
# Create virtual bank account
Source: https://docs.monirates.com/api-reference/virtual-bank-accounts/create-virtual-bank-account
https://interface.monirates.com/v1/api-docs.json post /transaction/collection/virtual-account
Create a one-time virtual bank account for collection.
# Get virtual bank account
Source: https://docs.monirates.com/api-reference/virtual-bank-accounts/get-virtual-bank-account
https://interface.monirates.com/v1/api-docs.json get /virtual-account/{accountRef}
Get details of a specific virtual bank account.
# List virtual bank accounts
Source: https://docs.monirates.com/api-reference/virtual-bank-accounts/list-virtual-bank-accounts
https://interface.monirates.com/v1/api-docs.json get /virtual-accounts
Get a list of all virtual bank accounts for the user.
# Balance
Source: https://docs.monirates.com/api-reference/wallet/balance
https://interface.monirates.com/v1/api-docs.json get /wallet/balance
Get the balance of all wallets owned by the user. If currency query param is provided, returns balance for that currency only.
# Create wallet
Source: https://docs.monirates.com/api-reference/wallet/create-wallet
https://interface.monirates.com/v1/api-docs.json post /wallet
Create a wallet for a user. A user can have multiple FIAT wallets.
# Get webhooks
Source: https://docs.monirates.com/api-reference/webhook/get-webhooks
https://interface.monirates.com/v1/api-docs.json get /webhooks
# Retry webhook
Source: https://docs.monirates.com/api-reference/webhook/retry-webhook
https://interface.monirates.com/v1/api-docs.json post /webhook/{webhookId}/retry
# View webhook
Source: https://docs.monirates.com/api-reference/webhook/view-webhook
https://interface.monirates.com/v1/api-docs.json get /webhook/{webhookId}
# Authentication
Source: https://docs.monirates.com/getting-started/authentication
Authenticate your requests to the Monirates API using your API key.
All requests to the Monirates REST API must be authenticated using your **API key**. You can generate and manage your API key from the Monirates business portal.
***
## How It Works
Pass your API key in the request headers using the `x-api-key` key:
```text theme={null}
x-api-key: YOUR_API_KEY
```
This applies to both sandbox and production environments. The only difference between the two is **which API key you use** and **which base URL you target**.
***
## Example Request
```bash cURL theme={null}
curl https://dev.interface.monirates.com/your-endpoint \
-H "x-api-key: MR_v1_xxx" \
-H "Accept: application/json"
```
```javascript Node.js theme={null}
const response = await fetch("https://dev.interface.monirates.com/your-endpoint", {
headers: {
"x-api-key": "MR_v1_xxx",
"Accept": "application/json",
},
});
const data = await response.json();
console.log(data);
```
```python Python theme={null}
import requests
response = requests.get(
"https://dev.interface.monirates.com/your-endpoint",
headers={
"x-api-key": "MR_v1_xxx",
"Accept": "application/json",
},
)
print(response.json())
```
***
## Getting Your API Key
1. Log in to your Monirates business portal:
* **Production:** [business.monirates.com](https://business.monirates.com)
* **Sandbox:** [dev.business.monirates.com](https://dev.business.monirates.com)
2. Go to the **Settings** section.
3. Create or copy your API key.
***
## Sandbox vs. Production Keys
| Environment | Base URL | Portal |
| - | - | - |
| **Sandbox** | `https://dev.interface.monirates.com` | `dev.business.monirates.com` |
| **Production** | `https://interface.monirates.com` | `business.monirates.com` |
Your sandbox and production API keys are **separate and not interchangeable**. Always use the correct key for each environment. Never hardcode your API key in source code โ use environment variables instead.
***
## Security Best Practices
* Store your API key in environment variables (e.g., `MONIRATES_API_KEY`).
* Never commit your API key to version control.
* Rotate your key immediately if it is ever exposed.
* Use your **sandbox key** for development and testing, and your **production key** only for live traffic.
# Introduction
Source: https://docs.monirates.com/getting-started/index
Send and receive cross-border payments across Africa and beyond using the Monirates API.
# Monirates API
Monirates provides infrastructure for **cross-border FX payments**, enabling businesses to send, receive, and manage money across multiple currencies and countries โ all through a single, unified API.
***
## Why Monirates?
Building cross-border payments in Africa is complex:
* Fragmented banking systems
* FX liquidity challenges
* Regulatory differences across countries
* Poor developer infrastructure
Monirates abstracts all of this so you don't need to:
* Integrate multiple payment providers
* Handle FX conversions manually
* Manage settlement across regions
We handle the complexity โ you focus on your product.
***
## What You Can Do
With the Monirates API, you can:
* ๐ Send payments from Nigeria, Ghana, and other regions to African countries
* ๐ฑ Convert currencies in real-time using competitive FX rates
* ๐ณ Create payment links for easy collections
* ๐ Automate payouts and settlements
* ๐ Track transactions and balances programmatically
***
## Next Steps
Get up and running with the Monirates API in minutes.
Learn how to authenticate your API requests.
Test your integration safely before going live.
View all supported countries and corridors.
# Quickstart
Source: https://docs.monirates.com/getting-started/quickstart
Get up and running with the Monirates API in minutes.
This guide walks you through everything you need to start making API requests with Monirates โ from creating your account to sending your first request.
***
## Step 1: Create Your Account
Visit the Monirates business portal based on your environment:
| Environment | Portal URL |
| - | - |
| **Production** | [business.monirates.com](https://business.monirates.com) |
| **Sandbox** | [dev.business.monirates.com](https://dev.business.monirates.com) |
Sign up and complete your business profile to get access to the dashboard.
***
## Step 2: Generate Your API Key and Secret Key
Once logged in:
1. Navigate to the **Settings** section of your dashboard.
2. Create your API key and Secret key, then copy each one immediately. You won't be able to view them again after closing the modal.
3. Store it securely โ never commit it to version control.
Use environment variables to store your API key and Secret key. Keep your sandbox and production keys separate โ they are **not interchangeable**.
***
## Step 3: Set Your Webhook URL
Still in the **Developer** section of your dashboard, set your **Webhook URL**. Monirates will send real-time event notifications to this endpoint for transaction updates, payment status changes, and more.
***
## Step 4: Make Your First Request
Use your API key to authenticate requests by passing it in the `x-api-key` header.
```bash cURL theme={null}
curl https://interface.monirates.com/your-endpoint \
-H "x-api-key: YOUR_API_KEY" \
-H "Accept: application/json"
```
```javascript Node.js theme={null}
const response = await fetch("https://interface.monirates.com/your-endpoint", {
headers: {
"x-api-key": process.env.MONIRATES_API_KEY,
"Accept": "application/json",
},
});
const data = await response.json();
console.log(data);
```
```python Python theme={null}
import requests
response = requests.get(
"https://interface.monirates.com/your-endpoint",
headers={
"x-api-key": "YOUR_API_KEY",
"Accept": "application/json",
},
)
print(response.json())
```
***
## Environments at a Glance
| | Sandbox | Production |
| - | - | - |
| **Base URL** | `https://dev.interface.monirates.com` | `https://interface.monirates.com` |
| **Portal** | `dev.business.monirates.com` | `business.monirates.com` |
| **Transactions** | Simulated โ no real money | Live โ real money movement |
***
## Next Steps
Deep dive into how API key authentication works.
Learn about the sandbox environment for safe testing.
# Sandbox
Source: https://docs.monirates.com/getting-started/sandbox
The Monirates sandbox environment lets you integrate and test the API safely. All transactions in sandbox are **simulated** and carry no real-world value โ no actual money moves.
***
## Getting a Sandbox API Key
1. Visit the sandbox portal at [dev.business.monirates.com](https://dev.business.monirates.com).
2. Sign up or log in to your account.
3. Navigate to the **Settings** section of your dashboard.
4. Create or copy your **sandbox API key**.
Keep your sandbox API key secure. Never commit it to version control โ use environment variables instead.
***
## Sandbox Base URL
All sandbox requests go to:
```text theme={null}
https://dev.interface.monirates.com
```
Pass your sandbox API key in the `x-api-key` header, same as production.
### Example Request
```bash cURL theme={null}
curl https://dev.interface.monirates.com/your-endpoint \
-H "x-api-key: YOUR_SANDBOX_API_KEY" \
-H "Accept: application/json"
```
```javascript Node.js theme={null}
const response = await fetch("https://dev.interface.monirates.com/your-endpoint", {
headers: {
"x-api-key": process.env.MONIRATES_SANDBOX_API_KEY,
"Accept": "application/json",
},
});
const data = await response.json();
```
```python Python theme={null}
import requests
response = requests.get(
"https://dev.interface.monirates.com/your-endpoint",
headers={
"x-api-key": "YOUR_SANDBOX_API_KEY",
"Accept": "application/json",
},
)
print(response.json())
```
***
## Sandbox vs. Production
| Feature | Sandbox | Production |
| - | - | - |
| **Base URL** | `https://dev.interface.monirates.com` | `https://interface.monirates.com` |
| **Portal** | `dev.business.monirates.com` | `business.monirates.com` |
| **Transactions** | Simulated โ no real money | Live โ real money movement |
| **Onboarding** | Streamlined for testing | Full compliance review |
***
## Transitioning to Production
When you're ready to go live:
1. Log in to the production portal at [business.monirates.com](https://business.monirates.com).
2. Generate your **production API key** from the Settings section.
3. Update your environment variables to use the production key.
4. Switch your base URL to `https://interface.monirates.com`.
5. Start with small live transactions to verify everything works before scaling volume.
Never use your sandbox API key in production or your production key for sandbox testing. Keys are environment-specific and are **not interchangeable**.
# Supported Countries
Source: https://docs.monirates.com/getting-started/supported-countries
View all countries and corridors supported by the Monirates API.
Monirates supports cross-border payments across a growing list of countries and corridors. Below is a breakdown of currently supported regions.
***
## Supported Countries
| Country | Code | Payment Rails |
| - | - | - |
| ๐ณ๐ฌ Nigeria | `NG` | |
| ๐ฌ๐ญ Ghana | `GH` | |
| ๐ฐ๐ช Kenya | `KE` | |
| ๐บ๐ธ United States | `US` | |
| ๐ฌ๐ง United Kingdom | `GB` | |
| ๐บ๐ฌ Uganda | `UG` | |
| ๐ฒ๐ผ Malawi | `MW` | |
| ๐จ๐ฆ Canada | `CA` | |
| ๐จ๐ณ China | `CN` | |
| ๐ฎ๐ณ India | `IN` | |
| ๐ฟ๐ฆ South Africa | `ZA` | |
| ๐ง๐ฏ Benin | `BJ` | |
| ๐ฒ๐ฆ Morocco | `MA` | |
| ๐จ๐ฉ DR Congo | `CD` | |
| ๐จ๐ฎ Cรดte d'Ivoire | `CI` | |
For a full list of our supported corridors, visit the Monirates websites: [monirates.com](https://deploy-preview-60--sprightly-sundae-b100b9.netlify.app/corridors).
***
## Supported Corridors
Monirates enables payments between the following corridors:
* ๐ณ๐ฌ Nigeria โ African countries and beyond
* ๐ฌ๐ญ Ghana โ African countries and beyond
* ๐บ๐ธ United States โ African countries
* ๐ฌ๐ง United Kingdom โ African countries
***
## FX & Currency Support
Monirates supports real-time FX conversion across supported corridors, using competitive exchange rates. Currency conversion is handled automatically when sending cross-border payments.
***
## Need a Specific Corridor?
If the corridor you need isn't listed, contact the Monirates team:
* Visit [business.monirates.com](https://business.monirates.com) and reach out via the dashboard.
* New corridors are added regularly based on demand.
# Use Cases
Source: https://docs.monirates.com/getting-started/use-case-1
Various use cases monirates ICPs can leverage our products
***
## FX Settlement
Monirates enables instant and efficient foreign exchange settlement across multiple global corridors. Businesses can convert currencies at competitive rates and settle transactions within minutes, ensuring predictable cash flow and seamless cross-border operations.
***
## Family Remittances
Send money to family across borders with low fees, fast delivery, and full visibility. Monirates' hybrid fiatโstablecoin rails ensure recipients get value in minutes, whether to a bank account, wallet, or mobile money channel.
***
## Freelancer Payouts
Freelancers can receive payments from global clients without delays or excessive fees. Monirates supports multi-currency settlements, instant conversions, and flexible withdrawal options making international work simple and cash access faster.
***
## Multi-Currency Business Accounts
Businesses can hold, receive, and manage funds in multiple currencies from a single dashboard. Monirates provides accounts for collections, payouts, FX conversions, and treasury operations helping companies streamline finances across markets.
***
## Cross-Border Payments
Move money across regions with speed and compliance built in. Monirates supports payouts to bank accounts, mobile money systems, and on-chain addresses, enabling efficient global transfers without intermediaries or long settlement delays.
***
## FX Liquidity & Rate Engine
Monirates' rate engine provides real-time FX pricing backed by deep liquidity. This ensures accurate quotes, fast execution, and minimal slippage for both retail and enterprise users operating in volatile markets.
***
## API Infrastructure for Fintechs & Platforms
Fintechs, exchanges, and global platforms can integrate Monirates' APIs to power FX, stablecoin offramping/onramping, payouts, and compliance-ready financial flows. The infrastructure is built for scale, reliability, and high uptime enabling instant financial services within any product.
# Webhooks
Source: https://docs.monirates.com/getting-started/webhook
Receive real-time event updates from Monirates directly to your server.
Webhooks allow your system to receive real-time event notifications from Monirates. When key events happen โ like a payment, currency exchange, or wallet transaction โ Monirates sends an HTTP `POST` request with a JSON payload to your registered URL.
Every payload is wrapped in a consistent envelope with an `event` type, so you can safely handle events from multiple Monirates services (exchange, payment links, wallets, stablecoin wallets, and more) on the same webhook URL.
***
## Setup Overview
All webhook configuration happens in your Monirates dashboard:
1. Log in at [business.monirates.com](https://business.monirates.com) (or [dev.business.monirates.com](https://dev.business.monirates.com) for sandbox).
2. Navigate to **Settings**.
3. Generate your **API Key** and **Secret Key**.
4. Register your **Webhook URL**.
Monirates delivers all event types to a single registered webhook URL. Use the `event` field on every payload to route and handle each event type in your own system โ see [Event Types & Sample Payloads](#event-types--sample-payloads) below.
***
## Step 1: Generate Your API Key
Your API key authorizes requests and enables your webhook to receive events. Include it in your request headers:
```text theme={null}
x-api-key: MR_v1_your_unique_api_key
```
***
## Step 2: Generate Your Secret Key
The Secret Key is used to verify that incoming webhook events genuinely originate from Monirates. Every webhook delivery includes a signature header:
```text theme={null}
x-monirates-signature:
```
The signature is computed using **HMAC SHA256** over the raw request body โ the full envelope (`event`, `data`, and `timestamp` together) โ combined with your Secret Key. Signing the full envelope, not just `data`, ensures the `event` type itself can't be altered without invalidating the signature.
### Validating the Signature
Always validate the signature before processing any webhook event.
```javascript Node.js theme={null}
const crypto = require('crypto');
const signature = req.headers['x-monirates-signature'];
const computed = crypto
.createHmac('sha256', process.env.MONIRATES_SECRET_KEY)
.update(JSON.stringify(req.body))
.digest('hex');
if (computed !== signature) {
return res.status(401).send('Invalid signature');
}
// Safe to process the event
const { event, data, timestamp } = req.body;
```
```python Python theme={null}
import hmac
import hashlib
import json
import os
secret_key = os.environ.get("MONIRATES_SECRET_KEY").encode()
signature = request.headers.get("x-monirates-signature")
body = json.dumps(request.json, separators=(',', ':')).encode()
computed = hmac.new(secret_key, body, hashlib.sha256).hexdigest()
if not hmac.compare_digest(computed, signature):
return {"error": "Invalid signature"}, 401
# Safe to process the event
event_type = request.json["event"]
data = request.json["data"]
```
```php PHP theme={null}
$secretKey = getenv('MONIRATES_SECRET_KEY');
$signature = $_SERVER['HTTP_X_MONIRATES_SIGNATURE'];
$body = file_get_contents('php://input');
$computed = hash_hmac('sha256', $body, $secretKey);
if (!hash_equals($computed, $signature)) {
http_response_code(401);
exit('Invalid signature');
}
// Safe to process the event
$payload = json_decode($body, true);
$event = $payload['event'];
$data = $payload['data'];
```
Never share your Secret Key. Store it securely as an environment variable and never commit it to version control.
***
## Step 3: Register Your Webhook URL
Your webhook endpoint must:
* Accept **POST** requests
* Receive **JSON** payloads
* Be **publicly accessible** over HTTPS
Register your endpoint URL in the **Settings** section of your Monirates dashboard.
***
## Retry Behavior
If Monirates cannot reach your endpoint, deliveries are retried automatically:
| Attempt | Behavior |
| - | - |
| 1st | Initial delivery |
| 2nd | Retry after delay |
| 3rd | Final retry after increased delay |
| After 3rd failure | Retries stop |
Each retry re-signs the payload with a fresh `timestamp` โ a signature from an earlier attempt is not reused.
### Manual Retry via API
You can also view and retry failed webhook events programmatically:
| Method | Endpoint | Description |
| - | - | - |
| `GET` | `/webhooks` | List all webhook events |
| `GET` | `/webhook/{webhookId}` | View details of a specific event |
| `POST` | `/webhook/{webhookId}/retry` | Manually retry a failed event |
***
## Security Requirements
Two headers are used to secure webhook communication:
| Header | Purpose |
| - | - |
| `x-api-key` | Authorizes the incoming webhook request |
| `x-monirates-signature` | Validates authenticity and payload integrity |
Always reject webhook events that are missing or have an invalid `x-monirates-signature`. Do not process unsigned events.
***
## Event Types & Sample Payloads
Every webhook delivery uses the same envelope:
```json theme={null}
{
"event": "",
"data": { /* event-specific payload */ },
"timestamp": "2026-08-10T09:15:00.000Z"
}
```
| Field | Description |
| - | - |
| `event` | Identifies the event type. See the list below. |
| `data` | The event-specific payload โ shape depends on `event`. |
| `timestamp` | ISO 8601 timestamp of when this delivery was signed and sent. |
Some event types cover multiple states of the same resource (for example, a currency exchange moving from `PENDING` to `SUCCESSFUL`). In those cases the `event` stays the same across deliveries, and you distinguish the state using the `status` (or `type`) field inside `data`.
### `exchange`
Triggered when a currency exchange transaction is initiated or updated. `data.status` reflects the current state (e.g. `PENDING`, `PROCESSING`,`SUCCESSFUL`, `FAILED`).
```json theme={null}
{
"event": "exchange",
"data": {
"_id": "68ff77732efaebbdad28c843",
"globalId": "2fd81ca0-b33b-11f0-82b7-2929f12a03df",
"offerId": "68b5a636793705d3cc1578e7",
"buyerGlobalId": "6976ea90-0afd-11f0-8cd1-296b05bbd448",
"fromCurrency": "GBP",
"toCurrency": "NGN",
"rate": 1972.2,
"fee": 0,
"amount": 200,
"status": "SUCCESSFUL",
"buyerDebitPaymentMethod": "BANK_TRANSFER",
"buyerCreditPaymentMethod": "BANK_TRANSFER",
"buyerCreditPaymentDetails": {
"accountName": "MONIRATES LIMITED",
"accountNumber": "0115847370",
"providerName": "SAFE HAVEN SANDBOX BANK",
"bankCode": "999240",
"paymentMethod": "BANK_TRANSFER",
"iso2": "NG",
"currency": "NGN"
},
"buyerDebitPaymentDetails": {
"accountName": "MONIRATES LIMITED",
"accountNumber": "0115847370",
"providerName": "1234567",
"bankCode": "1234567",
"paymentMethod": "BANK_TRANSFER",
"iso2": "GB",
"currency": "GBP"
},
"sellerCreditPaymentDetails": {
"accountName": "Rahama Rahama",
"accountNumber": "2580369147",
"providerName": "5566447755",
"bankCode": "5566447755",
"paymentMethod": "BANK_TRANSFER",
"iso2": "GB",
"currency": "GBP",
"isUssdCode": false
},
"source": "API",
"buyerMadePayment": true,
"hasBuyerPaymentProof": false,
"buyerPaymentProofUrl": null,
"paymentReferenceCode": 938663,
"createdAt": "2025-10-27T13:45:23.941Z",
"updatedAt": "2025-10-27T13:55:26.972Z"
},
"timestamp": "2025-10-27T13:55:27.032Z"
}
```
### `payment_link`
Triggered when a payment link transaction is initiated or updated.
```json theme={null}
{
"event": "payment_link",
"data": {
"_id": "690df12b358c9311463ac6d4",
"userId": "67e5345cdce758f487ab6ca6",
"userGlobalId": "6976ea90-0afd-11f0-8cd1-296b05bbd448",
"amount": 105500,
"currencyIso2": "NG",
"paymentDetails": {
"accountName": "MONIRATES LIMITED",
"accountNumber": "0115847370",
"providerName": "MTN",
"bankCode": "90221",
"paymentMethod": "BANK_TRANSFER",
"currency": "NGN"
},
"payerDetails": {
"name": "Monirates",
"email": "info@monirates.com"
},
"displayMessage": "Payment",
"status": "PENDING",
"source": "API",
"globalId": "f7cfd470-bbdb-11f0-9062-8dd914a47085",
"createdAt": "2025-11-07T13:16:27.986Z",
"updatedAt": "2025-11-07T13:16:27.986Z"
},
"timestamp": "2025-11-07T13:16:28.114Z"
}
```
Payment link webhooks never include the payer authentication token. If your integration needs that token, retrieve it directly from the create-payment-link API response โ it's issued once, at creation, over an authenticated channel.
### `wallet.created`
Triggered when a new fiat wallet is created for your business.
```json theme={null}
{
"event": "wallet.created",
"data": {
"id": "10957760-7dad-13f1-bdb3-8c86b5ed01c6",
"balance": 0,
"heldBalance": 0,
"incomingBalance": 0,
"status": "ACTIVE",
"currency": "NGN",
"hasBankAccount": true,
"bankDetails": {
"accountName": "MoniratesLimite / SUDO",
"accountNumber": "5123456789",
"bankCode": "999240",
"bankName": "Safe Haven MFB",
"accountRef": "6a4fc22c38e1ef0024279ec6"
}
},
"timestamp": "2026-08-10T09:00:00.000Z"
}
```
### `wallet.virtual_account`
Triggered when a virtual bank account is created, funded (paid), or expires. `data.status` reflects the current state: `PENDING`, `PAID`, or `EXPIRED`.
```json theme={null}
{
"event": "wallet.virtual_account",
"data": {
"id": "6a75ca32f338aecf092bec26",
"walletId": "b00ee8b0-3caa-11f1-aa6b-8322aa66a919",
"amount": 25000,
"currency": "NGN",
"accountNumber": "5123456789",
"accountRef": "6a4fc22c38e1ef0024279ec6",
"expiryDate": "2026-08-10T12:00:00.000Z",
"validFor": 3600,
"status": "PAID",
"externalReference": "ext-ref-88213",
"bankCode": "999240",
"createdAt": "2026-08-10T09:00:00.000Z",
"updatedAt": "2026-08-10T09:45:12.000Z"
},
"timestamp": "2026-08-10T09:45:12.114Z"
}
```
### `wallet.transaction`
Triggered for any fiat wallet transaction โ funding, transfers, payouts, and bank transactions. `data.type` identifies whether it was a credit or debit; `data.status` reflects the current state.
```json theme={null}
{
"event": "wallet.transaction",
"data": {
"id": "6a01913a7a6ab126310a083b",
"reference": "REF-88213",
"currency": "NGN",
"amount": 15000,
"fee": 50,
"status": "SUCCESSFUL",
"paymentMethod": "MOBILE_MONEY",
"narration": "Wallet funding",
"purpose": "FUNDING",
"type": "CREDIT",
"valueGiven": true,
"isReversed": false,
"metadata": {
"originatingCountry": "GH",
"paymentMethod": "MOBILE_MONEY",
"phoneNumber": "0245555555",
"network": "MTN"
},
"createdAt": "2026-08-10T09:10:00.000Z",
"updatedAt": "2026-08-10T09:10:05.000Z"
},
"timestamp": "2026-08-10T09:10:05.114Z"
}
```
```json theme={null}
{
"originatingCountry": "NG",
"paymentMethod": "BANK_TRANSFER",
"receiver": {
"name": "Kwame Asamoah",
"accountNumber": "0245555555",
"bankName": "First Bank",
"bankCode": "999024"
}
}
```
### `stable_wallet.created`
Triggered when a new stablecoin wallet is created for your business.
If `data.parentId` is present, this wallet belongs to a **sub-account**. Sub-accounts don't have their own webhook URL โ this event, and every future event for that sub-account's wallet, is delivered to your **parent business's** registered webhook URL.
```json theme={null}
{
"event": "stable_wallet.created",
"data": {
"id": "9c1f3a10-3fbe-11f1-9a2c-8322aa66a919",
"userId": "67e5345cdce758f487ab6ca6",
"type": "BUSINESS",
"parentId": null,
"address": "0x8f3b1c2e9a4d5f6e7c8b9a0d1e2f3a4b5c6d7e8f",
"tronAddress": "TXYZabc123def456ghi789jkl012mno345",
"solanaAddress": "5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM6",
"createdAt": "2026-08-10T09:00:00.000Z",
"updatedAt": "2026-08-10T09:00:00.000Z"
},
"timestamp": "2026-08-10T09:00:00.114Z"
}
```
### `stable_wallet.transaction`
Triggered for stablecoin wallet activity โ deposits, and withdrawals as they move through `PENDING` and `CONFIRMED` states. `data.type` identifies the transaction type (`DEPOSIT`, `WITHDRAWAL`, `REVERSAL`); `data.status` reflects the current state.
For sub-account transactions, `data.userId` identifies the **sub-account**, but the webhook itself is always delivered to the **parent business's** webhook URL โ sub-accounts don't have independent webhook configuration. Use `data.userId` to attribute the transaction to the correct sub-account on your side.
```json theme={null}
{
"event": "stable_wallet.transaction",
"data": {
"id": "7b2e9f40-4cde-11f1-9a2c-8322aa66a919",
"walletId": "9c1f3a10-3fbe-11f1-9a2c-8322aa66a919",
"txHash": "0x4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b",
"userId": "67e5345cdce758f487ab6ca6",
"token": "USDT",
"network": "TRON",
"amount": "150.00",
"fee": "1.50",
"type": "WITHDRAWAL",
"status": "CONFIRMED",
"from": "TXYZabc123def456ghi789jkl012mno345",
"to": "TABCdef456ghi789jkl012mno345pqr678",
"createdAt": "2026-08-10T09:20:00.000Z",
"updatedAt": "2026-08-10T09:21:30.000Z"
},
"timestamp": "2026-08-10T09:21:30.114Z"
}
```
***
## Fetching Webhook Logs
Beyond the API, you can also view webhook delivery history directly in the Monirates dashboard โ filter by event type, `SUCCESSFUL`, or `FAILED`, and track retry attempts for reconciliation.
***
Need help integrating? Reach out to the Monirates support team from your dashboard.
# Create Payment Link
Source: https://docs.monirates.com/guides/create-payment-link
API reference for creating a payment link with flexible payment method configuration
When creating a payment link, the `expiresAt` field is optional. The `dispayMessage`, `payerDetails` and `paymentDetails` object is always required. The `paymentDetails`, its structure varies based on the selected `paymentMethod` and `currency`. Refer to the [Supported Payment Methods](/guides/supported-payment-methods) guide for the required fields per payment method.
***
## Country Code Consistency
The `currencyIso2` field at the root of the request must correspond to the country of the `currency` specified in `paymentDetails`. For example, if `paymentDetails.currency` is `NGN`, then `currencyIso2` must be `NG`. This ensures consistency between the requested currency and its country of issuance.
***
## Request Body
```json theme={null}
{
"amount": 100000,
"currencyIso2": "NG",
"displayMessage": "Pay on time",
"payerDetails": {
"name": "JOHN DOE",
"email": "johndoe@gmail.com"
},
"expiresAt": "2025-06-25T17:40:00Z",
"paymentDetails": {
"accountName": "MONIRATES LIMITED",
"accountNumber": "0115847370",
"providerName": "MTN",
"paymentMethod": "BANK_TRANSFER",
"currency": "NGN",
"bankCode": "90221"
}
}
```
### Fields
| Field | Required | Description |
| - | - | - |
| `amount` | Yes | The payment amount. |
| `currencyIso2` | Yes | The ISO2 country code corresponding to the `currency` in `paymentDetails`. |
| `displayMessage` | Yes | A custom message shown to the payer. |
| `payerDetails.name` | Yes | Name of the payer. |
| `payerDetails.email` | Yes | Email of the payer. |
| `expiresAt` | No | Expiry datetime for the payment link in ISO 8601 format. |
| `paymentDetails.accountName` | Yes | Name on the receiving account. |
| `paymentDetails.accountNumber` | Yes | Receiving account number. |
| `paymentDetails.providerName` | Yes | Bank name (for `NGN`), routing/sort code or institution name (for other `BANK_TRANSFER` currencies), or mobile money provider (for `MOBILE_MONEY`). |
| `paymentDetails.paymentMethod` | Yes | `BANK_TRANSFER` or `MOBILE_MONEY`. |
| `paymentDetails.currency` | Yes | The currency to collect payment in. |
| `paymentDetails.bankCode` | Conditional | Required for `BANK_TRANSFER`. Omit for `MOBILE_MONEY`. |
| `paymentDetails.network` | Conditional | Required for `MOBILE_MONEY`. Must match `providerName`. Omit for `BANK_TRANSFER`. |
# Create Wallet
Source: https://docs.monirates.com/guides/create-wallet
Create a wallet for a specific currency
This endpoint is used to create a wallet for a specific currency.
***
## ๐ณ๐ฌ NGN Wallet Creation Flow
For NGN (Nigerian Naira) wallets, identity verification is required before wallet creation.
### Step 1: Identity Verification
Call the utility endpoint (see Utility Section) `/utility/identity-verification` and provide the BVN of one of the founders/directors.
### Step 2: Create Wallet
After successful identity verification, call this endpoint and provide:
| Field | Value |
| - | - |
| `currency` | `NGN` |
| `bvn` | Same BVN used during identity verification |
| `companyRegistrationNumber` | The company's RC (registration) number |
**Sample NGN Payload:**
```json theme={null}
{
"currency": "NGN",
"bvn": "12345678901",
"companyRegistrationNumber": "123456"
}
```
***
## Other Currencies (e.g. GHS โ Ghanaian Cedi)
For other currencies like GHS, no identity verification is required. Simply provide the currency.
**Sample GHS Payload:**
```json theme={null}
{
"currency": "GHS"
}
```
***
## Notes
* The `bvn` and `companyRegistrationNumber` fields are **required only for `NGN`**.
* For currencies like `GHS`, `XOF`, `XAF`, etc., these fields **must be omitted**.
* Providing invalid or unnecessary fields may result in **validation errors**.
***
## Request Body
**Content-Type:** `application/json`
```json theme={null}
{
"currency": "GHS"
}
```
### Schema
| Field | Type | Required | Description |
| - | - | - | - |
| `currency` | `string` | โ
Always | The currency code (e.g. `NGN`, `GHS`, `XOF`) |
| `bvn` | `string` | โ
NGN only | Bank Verification Number of a founder/director |
| `companyRegistrationNumber` | `string` | โ
NGN only | The company's RC number |
# Fund Wallet
Source: https://docs.monirates.com/guides/fund-wallet
Fund a wallet using supported payment methods
This endpoint is used to fund a wallet using supported payment methods.
***
## ๐ณ๐ฌ NGN Wallet Funding (Bank Transfer)
For NGN (Nigerian Naira) wallets, users do **NOT** need to call this endpoint to fund their wallet.
Instead, users should:
1. Call `/wallet/balance` to retrieve their wallet details.
2. Locate the `bankDetails` object for the `NGN` wallet.
3. Transfer funds directly to the provided bank account using their banking app.
The `bankDetails` object includes:
| Field | Description |
| - | - |
| `accountName` | Name on the bank account |
| `accountNumber` | Bank account number to transfer to |
| `bankName` | Name of the receiving bank |
Once the transfer is completed, the wallet will be credited automatically. Applicable fees may apply.
Do **not** call this endpoint for NGN wallet funding.
***
## ๐ฑ Mobile Money Wallet Funding (GHS)
For wallets funded via `MOBILE_MONEY` (e.g. `GHS`), this endpoint must be called. The user provides their mobile money details and an authorization request will be initiated, after which the user will be prompted to authorize the transaction.
### Fetch Supported Providers
Call the utility endpoint below to fetch supported mobile money providers for the selected country and currency. Use the provider `code` as the `network` value.
```text theme={null}
GET /transaction/{method}/providers?currency={currency}&iso2={iso2}
```
**Example:**
```text theme={null}
GET /transaction/MOBILE_MONEY/providers?currency=GHS&iso2=GH
```
## Headers
| Header | Required | Description |
| - | - | - |
| `idempotencykey` | Yes | A unique value for each exchange you create. |
The `idempotencykey` header is **required**. Generate a new key for every new exchange. Only reuse a key when retrying the *same* request after a timeout or network error.
### Required Fields
| Field | Type | Description |
| - | - | - |
| `amount` | `number` | Amount to fund |
| `currency` | `string` | e.g. `GHS` |
| `iso2` | `string` | Country code, e.g. `GH` |
| `paymentMethod` | `string` | Must be `MOBILE_MONEY` |
| `phoneNumber` | `string` | Mobile money phone number |
| `network` | `string` | Provider code fetched from utility endpoint |
**Sample GHS `MOBILE_MONEY` Payload:**
```json theme={null}
{
"amount": 100,
"currency": "GHS",
"iso2": "GH",
"paymentMethod": "MOBILE_MONEY",
"phoneNumber": "+233244607135",
"network": "MTN"
}
```
***
## ๐ Mobile Money Wallet Funding (XOF & XAF)
For XOF and XAF wallets, funding is done via `MOBILE_MONEY` and requires selecting a supported country and provider.
### Supported Countries
| Currency | Countries |
| - | - |
| `XOF` | Benin (`BJ`), Ivory Coast (`CI`), Burkina Faso (`BF`), Senegal (`SN`) |
| `XAF` | Cameroon (`CM`) |
### Step 1: Select Country
The user selects the country they want to fund from. This determines the `iso2` value.
### Step 2: Fetch Mobile Money Providers
Call the utility endpoint to fetch supported mobile money providers for the selected country and currency.
```text theme={null}
GET /transaction/{method}/providers?currency={currency}&iso2={iso2}
```
**Example:**
```text theme={null}
GET /transaction/MOBILE_MONEY/providers?currency=XOF&iso2=BJ
```
**Sample Response:**
```json theme={null}
{
"success": true,
"data": [
{
"network": "MTN",
"code": "MTN_MOMO_BEN",
"name": "MTN",
"logo": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/momo/mtn.png",
"hasGateway": true
},
{
"network": "MOOV",
"code": "MOOV",
"name": "MOOV",
"logo": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/momo/moov.jpeg",
"hasGateway": false
}
],
"message": "Banks fetched successfully"
}
```
Use the provider `code` (e.g. `MTN_MOMO_BEN`) as the `network` value when funding the wallet.
### Step 3: Initiate XOF / XAF Wallet Funding
Call this endpoint with the selected provider details.
**Sample XOF `MOBILE_MONEY` Payload:**
```json theme={null}
{
"amount": 100,
"currency": "XOF",
"iso2": "BJ",
"paymentMethod": "MOBILE_MONEY",
"phoneNumber": "+22990123456",
"network": "MTN_MOMO_BEN"
}
```
***
## Notes
* This endpoint should only be used for funding methods that require payment initiation.
* For `NGN`, always fund wallets via direct bank transfer using `/wallet/balance`.
* Always fetch mobile money providers using `/transaction/{method}/providers` before funding `XOF` or `XAF` wallets.
* Unsupported currencies, countries (`iso2`), or providers will result in validation errors.
* For mobile money payments, the user will receive a prompt on their phone to enter their mobile money PIN to authorize the transaction.
# Get Rate
Source: https://docs.monirates.com/guides/get-rate
How to fetch rate
# Get Rate
Before initiating any exchange, you must first fetch a rate offer. The `_id` from the response is required as the `offerId` parameter when creating an exchange.
**Endpoint:** `GET /utility/exchange-rate`
***
## Response Overview
```json theme={null}
{
"success": true,
"data": {
"_id": "68b5a636793705d3cc1578e7",
"globalId": "8e3d5610-873b-11f0-9d44-2773f87a83fc",
"fromCurrency": {
"name": "British Pound",
"abbr": "GBP",
"symbol": "ยฃ",
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/countries/flag/250x250/gb.png",
"displayRate": 1
},
"toCurrency": {
"name": "Naira",
"abbr": "NGN",
"symbol": "โฆ",
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/countries/flag/250x250/ng.png",
"displayRate": 1966.5
},
"fromCurrencyIso2": "GB",
"toCurrencyIso2": "NG",
"rate": 1966.5,
"status": "OPEN",
"minimumAmount": 4.57,
"minimumAmountCurrency": "GBP",
"acceptedPaymentMethod": ["ZELLE", "BANK_TRANSFER", "INTERAC"],
"payoutPaymentMethod": ["BANK_TRANSFER", "WALLET"],
"paymentDetails": [
{
"accountName": "Monirates LTD",
"email": "John@gmail.com",
"paymentMethod": "ZELLE",
"iso2": "GB",
"currency": {
"name": "British Pound",
"abbr": "GBP",
"symbol": "ยฃ",
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/countries/flag/250x250/gb.png",
"bankCodeLabel": "Sort code"
},
"_id": "69a1470e4e63f3c7a557465c"
},
{
"accountName": "Monirates Ltd",
"accountNumber": "66558888",
"providerName": "TESTING BANK",
"bankCode": "777888600",
"paymentMethod": "BANK_TRANSFER",
"iso2": "GB",
"currency": {
"name": "British Pound",
"abbr": "GBP",
"symbol": "ยฃ",
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/countries/flag/250x250/gb.png",
"bankCodeLabel": "Sort code"
},
"holderCity": "London",
"holderStreet": "Walton",
"holderPostalCode": "997678",
"_id": "69c17fdaff4b48ac3c66a484"
},
{
"accountName": "Monirate Limited",
"email": "monirate@gmail.com",
"paymentMethod": "INTERAC",
"iso2": "GB",
"currency": {
"name": "British Pound",
"abbr": "GBP",
"symbol": "ยฃ",
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/countries/flag/250x250/gb.png",
"bankCodeLabel": "Sort code"
},
"_id": "69e1225780c3e59664e4cde0"
}
]
},
"message": "Rate fetched successfully"
}
```
***
## Key Response Fields
| Field | Description |
| - | - |
| `_id` | The rate offer ID. Pass this as `offerId` when creating an exchange. |
| `rate` | The exchange rate for this currency pair. |
| `minimumAmount` | The minimum amount allowed for this exchange, denominated in `minimumAmountCurrency`. |
| `status` | The current status of the rate offer. Only `OPEN` offers can be used. |
| `acceptedPaymentMethod` | The payment methods available for sending funds. See below. |
| `payoutPaymentMethod` | The payment methods available for receiving funds. See below. |
| `paymentDetails` | Monirates' receiving account details. The shape of each object varies by payment method. |
| `allowedMomoProviders` | Only present when `payoutPaymentMethod` includes `MOBILE_MONEY`. See below. |
***
## Working with `acceptedPaymentMethod`
`acceptedPaymentMethod` is an array of payment methods the user can use to send funds for this currency pair. The value you pass as `buyerDebitPaymentMethod` when creating an exchange **must** be one of the methods listed here. Passing any other value will result in a validation error.
```json theme={null}
"acceptedPaymentMethod": ["ZELLE", "BANK_TRANSFER", "INTERAC"]
```
### Special case: `STABLE_CURRENCY`
When `acceptedPaymentMethod` includes `STABLE_CURRENCY`, the `paymentDetails` array will contain one object per supported network (e.g. `TRC20`, `ERC20`, `TON`). Each object includes a `walletAddress` and a `network` field.
You must present these network options to the user and pass the selected `network` as part of `buyerDebitPaymentDetails` when creating the exchange.
```json theme={null}
{
"success": true,
"data": {
"_id": "68d52eb2e21ccf7c9cd1ea3b",
"acceptedPaymentMethod": ["STABLE_CURRENCY"],
"payoutPaymentMethod": ["BANK_TRANSFER", "WALLET"],
"paymentDetails": [
{
"network": "TRC20",
"paymentMethod": "STABLE_CURRENCY",
"walletAddress": "TXLAQ63Xg1NAzckPwKHvzw7CSEmLMEqcdj",
"iso2": "USDT",
"currency": {
"name": "Tether (USDT)",
"abbr": "USDT",
"symbol": "โฎ",
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/stablecoins/usdt.png",
"bankCodeLabel": ""
},
"_id": "6969008bb66f152dbf8f4a82"
},
{
"network": "TON",
"paymentMethod": "STABLE_CURRENCY",
"walletAddress": "rf537gydu393763g",
"iso2": "USDT",
"currency": {
"name": "Tether (USDT)",
"abbr": "USDT",
"symbol": "โฎ",
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/stablecoins/usdt.png",
"bankCodeLabel": ""
},
"_id": "69a957866604a233314a2035"
},
{
"network": "ERC20",
"paymentMethod": "STABLE_CURRENCY",
"walletAddress": "DY7eryfcfghuiuu3566tfty",
"iso2": "USDT",
"currency": {
"name": "Tether (USDT)",
"abbr": "USDT",
"symbol": "โฎ",
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/stablecoins/usdt.png",
"bankCodeLabel": ""
},
"_id": "69fa027bd41790be78f29807"
}
]
},
"message": "Rate fetched successfully"
}
```
***
## Working with `payoutPaymentMethod`
`payoutPaymentMethod` is an array of payment methods the user can use to receive funds. The value you pass as `buyerCreditPaymentMethod` when creating an exchange **must** be one of the methods listed here. Passing any other value will result in a validation error.
```json theme={null}
"payoutPaymentMethod": ["BANK_TRANSFER", "WALLET"]
```
### Special case: `MOBILE_MONEY`
When `payoutPaymentMethod` includes `MOBILE_MONEY`, the response will also contain an `allowedMomoProviders` array. If the user selects `MOBILE_MONEY` as their payout method, they must also select one of the providers from this array and pass it as part of `buyerCreditPaymentDetails`.
```json theme={null}
{
"success": true,
"data": {
"_id": "68b5b515793705d3cc1579d3",
"acceptedPaymentMethod": ["BANK_TRANSFER", "WALLET"],
"payoutPaymentMethod": ["MOBILE_MONEY"],
"allowedMomoProviders": ["VODAFONE", "MTN"],
"paymentDetails": [
{
"accountName": "MONIRATESLIMITE / JOHN DOE",
"accountNumber": "8029869754",
"providerName": "SAFE HAVEN SANDBOX BANK",
"bankCode": "999240",
"paymentMethod": "BANK_TRANSFER",
"iso2": "NG",
"currency": {
"name": "Naira",
"abbr": "NGN",
"symbol": "โฆ",
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/countries/flag/250x250/ng.png",
"bankCodeLabel": null
},
"_id": "6a01913a7a6ab126310a083b"
},
{
"paymentMethod": "WALLET",
"iso2": "NG",
"currency": {
"name": "Naira",
"abbr": "NGN",
"symbol": "โฆ",
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/countries/flag/250x250/ng.png",
"bankCodeLabel": null
},
"_id": "6a10ab975999f3497421206e"
}
]
},
"message": "Rate fetched successfully"
}
```
***
## Summary
| Scenario | What to look for | What to do |
| - | - | - |
| Standard exchange | `acceptedPaymentMethod`, `payoutPaymentMethod` | Use only listed methods for debit and credit |
| Stable currency (e.g. USDT) | `acceptedPaymentMethod` includes `STABLE_CURRENCY` | Pick a network from `paymentDetails` and pass it in `buyerDebitPaymentDetails` |
| Mobile money payout | `payoutPaymentMethod` includes `MOBILE_MONEY` | Pick a provider from `allowedMomoProviders` and pass it in `buyerCreditPaymentDetails` |
Once you have the `_id` and have identified the payment methods for your exchange, proceed to [create an exchange](guides/index).
# Create an exchange
Source: https://docs.monirates.com/guides/index
How to make an exchange
## Initiate Exchange
Before creating an exchange, you must first fetch a rate from the utility endpoint `/utility/exchange-rate`. The `_id` from that response is required as the `offerId` parameter when creating the exchange. See the [Get Rate](/guides/get-rate) guide for more details.
When making an exchange, the initiating currency โ the one the user is giving or has โ is represented by `buyerDebit`, while the target currency โ the one the user is receiving or wants โ is represented by `buyerCredit`.
```text theme={null}
POST /v1/offer/{offerId}/order
```
### Headers
| Header | Required | Description |
| - | - | - |
| `idempotencykey` | Yes | A unique value for each exchange you create. |
The `idempotencykey` header is **required**. Generate a new key for every new exchange. Only reuse a key when retrying the *same* request after a timeout or network error.
### Request Body
The request body requires the following fields:
| Field | Required | Description |
| - | - | - |
| `amount` | Yes | The amount in the initiating (debit) currency. Conversion into the credit currency is calculated based on current exchange rates and applicable fees. |
| `buyerDebitPaymentMethod` | Yes | How the user will send funds. |
| `buyerCreditPaymentMethod` | Yes | How the user will receive funds. |
| `buyerDebitPaymentDetails` | Conditional | Required unless `buyerDebitPaymentMethod` is `WALLET`. |
| `buyerCreditPaymentDetails` | Conditional | Required unless `buyerCreditPaymentMethod` is `WALLET`. |
| `narration` | No | A custom note or description attached to the transaction. |
The shape of `buyerDebitPaymentDetails` and `buyerCreditPaymentDetails` depends on the payment method specified in their corresponding buyerCredit or buyerDebit `PaymentMethod` fields.
***
## Supported Payment Methods
Each payment method (`BANK_TRANSFER`, `ACH`, `WIRE`, `MOBILE_MONEY`, `ZELLE`, `INTERAC`, `STABLE_CURRENCY`, `ALIPAY` and `WECHAT_PAY`) has its own required fields and rules, and some are limited to specific currencies. See the [Supported Payment Methods](/guides/supported-payment-methods) guide for the full list before building your request.
***
## Request Examples
Every example below needs the `idempotencykey` header. Replace `{offerId}` with the `_id` from your rate response. The payment methods and currencies in the body should match the currency pair of the rate you fetched.
```bash WALLET to BANK_TRANSFER (NGN) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/offer/{offerId}/order \
--header "Content-Type: application/json" \
--header "idempotencykey: 7c9e6679-7425-40de-944b-e07fc1f90a02" \
--header "x-api-key: " \
--data '{
"amount": 500,
"buyerDebitPaymentMethod": "WALLET",
"buyerCreditPaymentMethod": "BANK_TRANSFER",
"buyerCreditPaymentDetails": {
"accountName": "MONIRATES LIMITED",
"accountNumber": "0115847370",
"providerName": "SAFE HAVEN SANDBOX BANK",
"bankCode": "999240",
"paymentMethod": "BANK_TRANSFER",
"iso2": "NG",
"currency": "NGN"
}
}'
```
```bash WALLET to MOBILE_MONEY (GHS) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/offer/{offerId}/order \
--header "Content-Type: application/json" \
--header "idempotencykey: 7c9e6679-7425-40de-944b-e07fc1f90a03" \
--header "x-api-key: " \
--data '{
"amount": 500,
"buyerDebitPaymentMethod": "WALLET",
"buyerCreditPaymentMethod": "MOBILE_MONEY",
"buyerCreditPaymentDetails": {
"accountName": "JOHN DOE",
"accountNumber": "0541234567",
"providerName": "MTN",
"network": "MTN",
"paymentMethod": "MOBILE_MONEY",
"iso2": "GH",
"currency": "GHS"
}
}'
```
```bash BANK_TRANSFER to MOBILE_MONEY (NGN to GHS) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/offer/{offerId}/order \
--header "Content-Type: application/json" \
--header "idempotencykey: 7c9e6679-7425-40de-944b-e07fc1f90a04" \
--header "x-api-key: " \
--data '{
"amount": 50000,
"buyerDebitPaymentMethod": "BANK_TRANSFER",
"buyerCreditPaymentMethod": "MOBILE_MONEY",
"buyerDebitPaymentDetails": {
"accountName": "MONIRATES LIMITED",
"accountNumber": "0115847370",
"providerName": "SAFE HAVEN SANDBOX BANK",
"bankCode": "999240",
"paymentMethod": "BANK_TRANSFER",
"iso2": "NG",
"currency": "NGN"
},
"buyerCreditPaymentDetails": {
"accountName": "JOHN DOE",
"accountNumber": "0541234567",
"providerName": "MTN",
"network": "MTN",
"paymentMethod": "MOBILE_MONEY",
"iso2": "GH",
"currency": "GHS"
}
}'
```
```bash WALLET to WALLET theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/offer/{offerId}/order \
--header "Content-Type: application/json" \
--header "idempotencykey: 7c9e6679-7425-40de-944b-e07fc1f90a01" \
--header "x-api-key: " \
--data '{
"amount": 500,
"buyerDebitPaymentMethod": "WALLET",
"buyerCreditPaymentMethod": "WALLET",
"narration": "Wallet to wallet exchange"
}'
```
```bash MOBILE_MONEY to BANK_TRANSFER (GHS to NGN) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/offer/{offerId}/order \
--header "Content-Type: application/json" \
--header "idempotencykey: 7c9e6679-7425-40de-944b-e07fc1f90a05" \
--header "x-api-key: " \
--data '{
"amount": 500,
"buyerDebitPaymentMethod": "MOBILE_MONEY",
"buyerCreditPaymentMethod": "BANK_TRANSFER",
"buyerDebitPaymentDetails": {
"accountName": "JOHN DOE",
"accountNumber": "0541234567",
"providerName": "MTN",
"network": "MTN",
"paymentMethod": "MOBILE_MONEY",
"iso2": "GH",
"currency": "GHS"
},
"buyerCreditPaymentDetails": {
"accountName": "MONIRATES LIMITED",
"accountNumber": "0115847370",
"providerName": "SAFE HAVEN SANDBOX BANK",
"bankCode": "999240",
"paymentMethod": "BANK_TRANSFER",
"iso2": "NG",
"currency": "NGN"
}
}'
```
```bash WALLET to BANK_TRANSFER (GBP) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/offer/{offerId}/order \
--header "Content-Type: application/json" \
--header "idempotencykey: 7c9e6679-7425-40de-944b-e07fc1f90a06" \
--header "x-api-key: " \
--data '{
"amount": 500,
"buyerDebitPaymentMethod": "WALLET",
"buyerCreditPaymentMethod": "BANK_TRANSFER",
"buyerCreditPaymentDetails": {
"accountName": "JOHN DOE",
"accountNumber": "12345678",
"providerName": "040004",
"bankCode": "040004",
"paymentMethod": "BANK_TRANSFER",
"iso2": "GB",
"currency": "GBP",
"holderPostalCode": "SW1A 1AA",
"holderCity": "London",
"holderStreet": "10 Downing Street"
}
}'
```
```bash WALLET to ACH (USD) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/offer/{offerId}/order \
--header "Content-Type: application/json" \
--header "idempotencykey: 7c9e6679-7425-40de-944b-e07fc1f90a07" \
--header "x-api-key: " \
--data '{
"amount": 500,
"buyerDebitPaymentMethod": "WALLET",
"buyerCreditPaymentMethod": "ACH",
"buyerCreditPaymentDetails": {
"accountName": "JOHN DOE",
"accountNumber": "123456789012",
"providerName": "123456789",
"bankCode": "123456789",
"paymentMethod": "ACH",
"iso2": "US",
"currency": "USD"
}
}'
```
```bash WALLET to WIRE (USD) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/offer/{offerId}/order \
--header "Content-Type: application/json" \
--header "idempotencykey: 7c9e6679-7425-40de-944b-e07fc1f90a08" \
--header "x-api-key: " \
--data '{
"amount": 500,
"buyerDebitPaymentMethod": "WALLET",
"buyerCreditPaymentMethod": "WIRE",
"buyerCreditPaymentDetails": {
"accountName": "JOHN DOE",
"accountNumber": "123456789012",
"providerName": "123456789",
"bankCode": "123456789",
"paymentMethod": "WIRE",
"iso2": "US",
"currency": "USD"
}
}'
```
```bash WALLET to ZELLE (USD) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/offer/{offerId}/order \
--header "Content-Type: application/json" \
--header "idempotencykey: 7c9e6679-7425-40de-944b-e07fc1f90a09" \
--header "x-api-key: " \
--data '{
"amount": 500,
"buyerDebitPaymentMethod": "WALLET",
"buyerCreditPaymentMethod": "ZELLE",
"buyerCreditPaymentDetails": {
"accountName": "JOHN DOE",
"email": "john.doe@example.com",
"paymentMethod": "ZELLE",
"iso2": "US",
"currency": "USD"
}
}'
```
```bash WALLET to INTERAC (CAD) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/offer/{offerId}/order \
--header "Content-Type: application/json" \
--header "idempotencykey: 7c9e6679-7425-40de-944b-e07fc1f90a10" \
--header "x-api-key: " \
--data '{
"amount": 500,
"buyerDebitPaymentMethod": "WALLET",
"buyerCreditPaymentMethod": "INTERAC",
"buyerCreditPaymentDetails": {
"accountName": "JOHN DOE",
"email": "john.doe@example.com",
"paymentMethod": "INTERAC",
"iso2": "CA",
"currency": "CAD"
}
}'
```
```bash WALLET to STABLE_CURRENCY (USDT) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/offer/{offerId}/order \
--header "Content-Type: application/json" \
--header "idempotencykey: 7c9e6679-7425-40de-944b-e07fc1f90a11" \
--header "x-api-key: " \
--data '{
"amount": 500,
"buyerDebitPaymentMethod": "WALLET",
"buyerCreditPaymentMethod": "STABLE_CURRENCY",
"buyerCreditPaymentDetails": {
"walletAddress": "",
"network": "TRC20",
"paymentMethod": "STABLE_CURRENCY",
"iso2": "USDT",
"currency": "USDT"
}
}'
```
```bash BANK_TRANSFER to STABLE_CURRENCY (USDT) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/offer/{offerId}/order \
--header "Content-Type: application/json" \
--header "idempotencykey: 7c9e6679-7425-40de-944b-e07fc1f90a12" \
--header "x-api-key: " \
--data '{
"amount": 500,
"buyerDebitPaymentMethod": "BANK_TRANSFER",
"buyerCreditPaymentMethod": "STABLE_CURRENCY",
"buyerDebitPaymentDetails": {
"accountName": "MONIRATES LIMITED",
"accountNumber": "0115847370",
"providerName": "SAFE HAVEN SANDBOX BANK",
"bankCode": "999240",
"paymentMethod": "BANK_TRANSFER",
"iso2": "NG",
"currency": "NGN"
},
"buyerCreditPaymentDetails": {
"walletAddress": "",
"network": "TRC20",
"paymentMethod": "STABLE_CURRENCY",
"iso2": "USDT",
"currency": "USDT"
}
}'
```
```bash WALLET to ALIPAY (CNY) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/offer/{offerId}/order \
--header "Content-Type: application/json" \
--header "idempotencykey: 7c9e6679-7425-40de-944b-e07fc1f90a13" \
--header "x-api-key: " \
--data '{
"amount": 500,
"buyerDebitPaymentMethod": "WALLET",
"buyerCreditPaymentMethod": "ALIPAY",
"buyerCreditPaymentDetails": {
"accountName": "ZHANG WEI",
"phoneNumber": "8613800138000",
"paymentMethod": "ALIPAY",
"iso2": "CN",
"currency": "CNY"
}
}'
```
```bash WALLET to WECHAT_PAY (CNY) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/offer/{offerId}/order \
--header "Content-Type: application/json" \
--header "idempotencykey: 7c9e6679-7425-40de-944b-e07fc1f90a14" \
--header "x-api-key: " \
--data '{
"amount": 500,
"buyerDebitPaymentMethod": "WALLET",
"buyerCreditPaymentMethod": "WECHAT_PAY",
"buyerCreditPaymentDetails": {
"accountName": "ZHANG WEI",
"phoneNumber": "8613800138000",
"paymentMethod": "WECHAT_PAY",
"iso2": "CN",
"currency": "CNY"
}
}'
```
***
## Response
A successful request returns a `PENDING` exchange order. The `sellerCreditPaymentDetails` object contains Monirates' receiving account โ this is where the buyer should send funds.
```json theme={null}
{
"success": true,
"message": "Processing order",
"data": {
"_id": "6a1d57c328131baac7e08d35",
"globalId": "6f7dec30-5da0-11f1-87a3-c535699deb59",
"offerId": "68f76957fba0bdb680779e54",
"buyerGlobalId": "9f39f210-ba45-11f0-b11b-e53d26da86ed",
"fromCurrency": "NGN",
"toCurrency": "KES",
"rate": 0.0870385650474012,
"fee": 0,
"amount": 1220,
"status": "PENDING",
"buyerDebitPaymentMethod": "BANK_TRANSFER",
"buyerCreditPaymentMethod": "MOBILE_MONEY",
"buyerCreditPaymentDetails": {
"accountName": "Kwame Asamoah",
"accountNumber": "024555555555555",
"providerName": "MPESA",
"network": "MPESA",
"paymentMethod": "MOBILE_MONEY",
"iso2": "KE",
"currency": "KES",
"isUssdCode": false,
"_id": "6a1d57c328131baac7e08d36"
},
"buyerDebitPaymentDetails": {
"accountName": "Kwame Asamoah",
"accountNumber": "024555555555",
"providerName": "FIRST BANK",
"bankCode": "999024",
"paymentMethod": "BANK_TRANSFER",
"iso2": "NG",
"currency": "NGN",
"_id": "6a1d57c328131baac7e08d37"
},
"sellerCreditPaymentDetails": {
"accountName": "MONIRATESLIMITE / JOHN DOE",
"accountNumber": "8029869754",
"providerName": "SAFE HAVEN SANDBOX BANK",
"bankCode": "999240",
"paymentMethod": "BANK_TRANSFER",
"iso2": "NG",
"currency": "NGN",
"_id": "6a01913a7a6ab126310a083b"
},
"source": "BUSINESS",
"buyerMadePayment": false,
"hasBuyerPaymentProof": false,
"buyerPaymentProofUrl": null,
"paymentReferenceCode": 139683,
"createdAt": "2026-06-01T09:58:27.249Z",
"updatedAt": "2026-06-01T09:58:27.249Z"
}
}
```
### Key Response Fields
| Field | Description |
| - | - |
| `_id` | The unique ID of the created exchange order. |
| `status` | Will be `PENDING` on creation. |
| `sellerCreditPaymentDetails` | Monirates' receiving account. The buyer must send funds to this account to proceed. |
| `paymentReferenceCode` | A reference code for this transaction. |
| `buyerMadePayment` | Indicates whether the buyer has confirmed payment. Starts as `false`. |
proceed to the [Payment Made](/guides/payment-made) guide.
# Lookup Banks / Providers
Source: https://docs.monirates.com/guides/lookup-bank-provider
Retrieve available banks or mobile money providers for a given country, and verify account or wallet details before initiating a transaction.
## Overview
Before sending a payout, you'll typically want to:
1. **Fetch the list of available banks or mobile money providers** for the destination country.
2. **Verify the recipient's account or momo number** to confirm the account name before proceeding.
Both steps use a simple two-endpoint flow described below.
***
## Step 1 โ Fetch Providers
Use this endpoint to retrieve all supported banks or mobile money networks for a given transfer method and country.
```text theme={null}
GET /v1/transaction/{method}/providers
```
### Path Parameter
| Parameter | Description |
| - | - |
| `method` | Transfer method โ `BANK_TRANSFER` or `MOBILE_MONEY` |
### Query Parameters
| Parameter | Type | Required | Description |
| - | - | - | - |
| `currency` | string | Yes | ISO 4217 currency code (e.g. `NGN`, `GHS`) |
| `iso2` | string | Yes | ISO 3166-1 alpha-2 country code (e.g. `NG`, `GH`) |
### Examples
```bash Bank Transfer (NGN ยท NG) theme={null}
curl --request GET \
--url "https://dev.interface.monirates.com/v1/transaction/BANK_TRANSFER/providers?currency=NGN&iso2=NG" \
--header "x-api-key: "
```
```bash Mobile Money (GHS ยท GH) theme={null}
curl --request GET \
--url "https://dev.interface.monirates.com/v1/transaction/MOBILE_MONEY/providers?currency=GHS&iso2=GH" \
--header "x-api-key: "
```
### Responses
```json Bank Transfer theme={null}
{
"success": true,
"data": [
{ "name": "SOSA MFB", "bankCode": "090836" },
{ "name": "CEVIANT FINANCE LIMITED", "bankCode": "050043" }
]
}
```
```json Mobile Money theme={null}
{
"success": true,
"data": [
{ "name": "MTN Mobile Money", "code": "MTN" }
]
}
```
For **Bank Transfer**, hold on to the `bankCode` field โ you'll need it in the next step.
For **Mobile Money**, hold on to the `code` field โ this is what you pass as `network` when verifying.
***
## Step 2 โ Verify Account
Once you have the provider details, verify the recipient's account name before submitting a payout.
```text theme={null}
POST /v1/transaction/verify-bank-account
```
Account lookup is currently supported for **NGN** and **GHS** only. Support for additional currencies will be available soon.
### Request Body
| Field | Type | Required for | Description |
| - | - | - | - |
| `currency` | string | Both | ISO 4217 currency code (e.g. `NGN`, `GHS`) |
| `iso2` | string | Mobile Money | ISO 3166-1 alpha-2 country code (e.g. `GH`) |
| `accountNumber` | string | Bank Transfer | The recipient's bank account number |
| `bankCode` | string | Bank Transfer | The bank code from the providers list |
| `phoneNumber` | string | Mobile Money | The recipient's phone number in international format (e.g. `233...`) |
| `network` | string | Mobile Money | The provider `code` returned from the providers endpoint |
### Examples
```bash Bank Transfer (NGN) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/transaction/verify-bank-account \
--header "Content-Type: application/json" \
--header "x-api-key: " \
--data '{
"currency": "NGN",
"accountNumber": "5010480782",
"bankCode": "999240"
}'
```
```bash Mobile Money (GHS) theme={null}
curl --request POST \
--url https://dev.interface.monirates.com/v1/transaction/verify-bank-account \
--header "Content-Type: application/json" \
--header "x-api-key: " \
--data '{
"currency": "GHS",
"iso2": "GH",
"phoneNumber": "0541234567",
"network": "MTN"
}'
```
### Responses
```json Bank Transfer theme={null}
{
"success": true,
"message": "Account name resolved successfully!",
"data": {
"accountName": "MONIRATES LIMITED / JOHN DOE",
"accountNumber": "5010480782"
}
}
```
```json Mobile Money theme={null}
{
"success": true,
"message": "Account name resolved successfully!",
"data": {
"accountName": "JOHN DOE",
"accountNumber": "0598552457"
}
}
```
***
## Sandbox Testing
On the **development environment**, you can test NGN lookup with **ANY OF THE FOLLOWING** accounts provided below:
| Field | Value |
| - | - |
| `accountNumber` | `8028582375`, `5010480782`, `5010755577` |
| `bankCode` | `999240` |
On **production**, any valid Nigerian bank account number and bank code will resolve correctly.
For GHS, you can use a **real phone number and network** to test verification on both the development and production environments โ no special sandbox credentials are required.
# Payment Made
Source: https://docs.monirates.com/guides/payment-made
Confirm payment for initiated transactions has been made
After sending funds to the `sellerCreditPaymentDetails` account from your exchange order, you must notify Monirates by calling the buyer paid endpoint. This moves the order from `PENDING` to `PROCESSING`.
**Endpoint:** `POST /order/{orderId}/buyer-paid`
The `orderId` path parameter is the `_id` from the response when you [created the exchange](/guides/index).
If `buyerDebitPaymentMethod` is `WALLET`, payment confirmation is handled automatically. You do not need to call this endpoint.
***
### Headers
| Header | Required | Description |
| - | - | - |
| `idempotencykey` | Yes | A unique value for each exchange you create. |
The `idempotencykey` header is **required**. Generate a new key for every new exchange. Only reuse a key when retrying the *same* request after a timeout or network error.
## Request Body
The request body depends on the `buyerDebitPaymentMethod` of the exchange.
### MOBILE\_MONEY
When the initiating payment method is `MOBILE_MONEY`, a proof of payment image is mandatory. Upload the image to your storage provider and pass the resulting filename or URL string in `buyerPaymentProofUrl`. The image must be openable and clearly show proof of payment.
```json theme={null}
{
"buyerPaymentProofUrl": "PAYMENT_PROOF--test.j-4dcb9079-4208-4069-8a12-0e60295be8e8.jpg"
}
```
### All Other Payment Methods
For all other payment methods (e.g. `BANK_TRANSFER`, `STABLE_CURRENCY`), proof of payment is not required. Send an empty JSON body.
```json theme={null}
{}
```
***
## Response
A successful request returns the updated exchange order with `status` changed to `PROCESSING` and `buyerMadePayment` set to `true`.
```json theme={null}
{
"success": true,
"message": "Payment recorded",
"data": {
"_id": "6a1d57c328131baac7e08d35",
"globalId": "6f7dec30-5da0-11f1-87a3-c535699deb59",
"offerId": "68f76957fba0bdb680779e54",
"buyerGlobalId": "9f39f210-ba45-11f0-b11b-e53d26da86ed",
"fromCurrency": {
"name": "Naira",
"abbr": "NGN",
"symbol": "โฆ",
"displayRate": 11.49,
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/countries/flag/250x250/ng.png"
},
"toCurrency": {
"name": "Kenyan Shilling",
"abbr": "KES",
"symbol": "KSh",
"displayRate": 1,
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/countries/flag/250x250/ke.png"
},
"rate": 0.0870385650474012,
"fee": 0,
"amount": 1220,
"status": "PROCESSING",
"buyerDebitPaymentMethod": "BANK_TRANSFER",
"buyerCreditPaymentMethod": "MOBILE_MONEY",
"buyerCreditPaymentDetails": {
"accountName": "Kwame Asamoah",
"accountNumber": "024555555555555",
"providerName": "MPESA",
"network": {
"name": "MPESA",
"logo": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/momo/mpesa.png",
"code": "MPESA",
"hasGateway": false
},
"paymentMethod": "MOBILE_MONEY",
"iso2": "KE",
"currency": {
"name": "Kenyan Shilling",
"abbr": "KES",
"symbol": "KSh",
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/countries/flag/250x250/ke.png",
"bankCodeLabel": null
},
"isUssdCode": false,
"_id": "6a1d57c328131baac7e08d36"
},
"buyerDebitPaymentDetails": {
"accountName": "Kwame Asamoah",
"accountNumber": "024555555555",
"providerName": "FIRST BANK",
"bankCode": "999024",
"paymentMethod": "BANK_TRANSFER",
"iso2": "NG",
"currency": {
"name": "Naira",
"abbr": "NGN",
"symbol": "โฆ",
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/countries/flag/250x250/ng.png",
"bankCodeLabel": null
},
"_id": "6a1d57c328131baac7e08d37"
},
"sellerCreditPaymentDetails": {
"accountName": "MONIRATESLIMITE / JOHN DOE",
"accountNumber": "8029869754",
"providerName": "SAFE HAVEN SANDBOX BANK",
"bankCode": "999240",
"paymentMethod": "BANK_TRANSFER",
"iso2": "NG",
"currency": {
"name": "Naira",
"abbr": "NGN",
"symbol": "โฆ",
"flag": "https://monirate-product-design.s3.eu-west-2.amazonaws.com/countries/flag/250x250/ng.png",
"bankCodeLabel": null
},
"_id": "6a01913a7a6ab126310a083b"
},
"source": "BUSINESS",
"buyerMadePayment": true,
"hasBuyerPaymentProof": false,
"buyerPaymentProofUrl": "PAYMENT_PROOF--test.j-4dcb9079-4208-4069-8a12-0e60295be8e8.jpg",
"paymentReferenceCode": 139683,
"createdAt": "2026-06-01T09:58:27.249Z",
"updatedAt": "2026-06-01T10:06:38.991Z"
}
}
```
### Key Response Fields
| Field | Value after this call | Description |
| - | - | - |
| `status` | `PROCESSING` | Monirates has received the payment confirmation and is processing the order. |
| `buyerMadePayment` | `true` | Confirms payment notification was received. |
| `buyerPaymentProofUrl` | Filename or URL string | Only populated when a proof image was provided. |
# Stable Currency Sub-Wallet
Source: https://docs.monirates.com/guides/stable-sub-wallets
Manage stable currency wallets for sub-accounts created under a business.
## Overview
A **sub-wallet** is a stable currency wallet that belongs to a sub-account created by a business, rather than to the business's own account. The business is the **authorizer** of the sub-wallet and is the only party that can view or act on it โ a sub-account can only be accessed by the parent that created it.
Before creating a sub-wallet, the business must first create a sub-account via `POST /sub-account`. See the [Sub-Account](/guides/sub-account) documentation for details. The `subAccountId` returned from that call is required for every endpoint below.
**Supported networks:** `polygon`, `arbitrum`, `base`, `solana`
**Supported tokens:** `USDT`, `USDC`
***
## Create Sub-Wallet
Each sub-account can only have one wallet. Calling this endpoint when a wallet already exists returns a `409` error.
**Endpoint**
```text theme={null}
POST /stable-currency/sub-accounts/:subAccountId/wallet
```
**Path Parameters**
| Parameter | Type | Required | Description |
| - | - | - | - |
| `subAccountId` | `string` | โ | ID of the sub-account, returned when the sub-account was created |
**Response**
```json theme={null}
{
"success": true,
"data": {
"id": "6a60cb7e318a85d918e36c8f",
"userId": "6a60cb655a95c27344304053",
"type": "SUB_ACCOUNT",
"parentId": "6914b8de530486c362268f77",
"address": "0x62bf74e29c9bad9238594e28867f53a3b7baefe5",
"solanaAddress": "3QqtRfJeUL9Lm1dY6QBYTUMk8a4zgHMfYkcTcraNxyRi",
"createdAt": "2026-07-22T13:54:06.234Z",
"updatedAt": "2026-07-22T13:54:06.234Z"
},
"message": "Wallet created successfully"
}
```
* `type` is `SUB_ACCOUNT` for every sub-wallet.
* `parentId` is the ID of the business account that created and authorizes the sub-account.
* `address` is used for EVM-compatible networks (`polygon`, `arbitrum`, `base`).
* `solanaAddress` is used for the `solana` network.
***
## Get Balance
**Endpoint**
```text theme={null}
GET /stable-currency/sub-accounts/:subAccountId/balance
```
Returns the same response shape as the main wallet [Get Balance](/guides/stable-wallets#get-balance) endpoint โ token balances for all network/token pairs, plus a `totalBalance` summary per token.
***
## Withdraw
**Endpoint**
```text theme={null}
POST /stable-currency/sub-accounts/:subAccountId/withdraw
```
Initiates an on-chain token transfer from the sub-account's wallet to an external address. Same request body and response shape as the main wallet [Withdraw](/guides/stable-wallets#withdraw) endpoint.
A fee is deducted from every withdrawal. The `fee` amount is returned in the response and is charged in addition to the withdrawal `amount`.
***
## Transaction History
**Endpoint**
```text theme={null}
GET /stable-currency/sub-accounts/:subAccountId/transactions
```
Same query parameters and response shape as the main wallet [Transaction History](/guides/stable-wallets#transaction-history) endpoint, scoped to the sub-account.
***
## Get Single Transaction
**Endpoint**
```text theme={null}
GET /stable-currency/sub-accounts/:subAccountId/transaction/:transactionId
```
Same response shape as the main wallet [Get Single Transaction](/guides/stable-wallets#get-single-transaction) endpoint.
***
## Funding in Test Environments
There is no dev-fund endpoint for sub-account wallets. To simulate a deposit in a non-production environment, withdraw from your own main wallet to the sub-account's address on the desired network (using the fund-dev flow on the main wallet first, if you need test tokens to withdraw).
***
## Access Control
A sub-wallet can only be viewed or acted on by the business (parent account) that created its sub-account. Requests scoped to a `subAccountId` that does not belong to the authenticated business return an authorization error.
# Stable Currency Wallet
Source: https://docs.monirates.com/guides/stable-wallets
Manage stable currency wallets, check balances, and move funds across supported networks.
## Overview
The Stable Currency Wallet API lets users create a custodial wallet, receive deposits, check token balances across supported networks, and initiate withdrawals. Each user gets exactly one wallet tied to their account, with a dedicated address on each supported chain.
**Supported networks:** `polygon`, `arbitrum`, `base`, `solana`
**Supported tokens:** `USDT`, `USDC`
***
## Create Wallet
Each user can only have one wallet. Calling this endpoint when a wallet already exists returns a `409` error.
**Endpoint**
```text theme={null}
POST /v1/stable-currency/wallet
```
On success, a wallet is provisioned with an address on each supported chain, and the addresses are registered for deposit monitoring automatically.
**Response**
```json theme={null}
{
"success": true,
"data": {
"id": "6a60cb58318a85d918e36c8c",
"userId": "6914b8de530486c362268f77",
"type": "BUSINESS",
"address": "0x9488bb0a83a8c1f312c46aa655d30ec56afdc298",
"solanaAddress": "CmMGUEDoPRyYiP3kpaogDseH4s5m8XAfBJ7jx7UB3nyU",
"createdAt": "2026-07-22T13:53:28.472Z",
"updatedAt": "2026-07-22T13:53:28.472Z"
},
"message": "Wallet created successfully"
}
```
* `address` is used for EVM-compatible networks (`polygon`, `arbitrum`, `base`).
- `solanaAddress` is used for the `solana` network.
***
## Get Balance
**Endpoint**
```text theme={null}
GET /v1/stable-currency/balance
```
Returns token balances for all network/token pairs, plus a `totalBalance` summary across all networks for each token. When `available` is `false`, that token is not yet supported on that network โ treat the balance as `0` and do not display it to users.
**Response**
```json theme={null}
{
"success": true,
"data": {
"address": "0x1568e8dde63809608c38b07ec8acb99de9cdcfce",
"tronAddress": "TT3gMBES5wGnngdUowiKngruq72eUWEHui",
"solanaAddress": "9xkSc4LXAeaEELk6wnMyJqcka4Z29hPB9RGeHsWFZeky",
"totalBalance": {
"USDT": "398",
"USDC": "500"
},
"balances": [
{
"network": "polygon",
"token": "USDT",
"balance": "0",
"available": false
},
{
"network": "polygon",
"token": "USDC",
"balance": "0",
"available": false
},
{
"network": "arbitrum",
"token": "USDT",
"balance": "0",
"available": false
},
{
"network": "arbitrum",
"token": "USDC",
"balance": "0",
"available": false
},
{
"network": "base",
"token": "USDT",
"balance": "0",
"available": true
},
{
"network": "base",
"token": "USDC",
"balance": "0",
"available": true
},
{
"network": "solana",
"token": "USDT",
"balance": "398",
"available": true
},
{
"network": "solana",
"token": "USDC",
"balance": "0",
"available": true
}
]
},
"message": "Balance fetched successfully"
}
```
Filter to `available: true` entries before rendering balances in your UI. Use `totalBalance` when you just need an aggregate figure per token.
***
## Withdraw
**Endpoint**
```text theme={null}
POST /v1/stable-currency/withdraw
```
Initiates an on-chain token transfer from the user's wallet to an external address. The transaction is recorded immediately with a `PROCESSING` status and confirmed asynchronously via webhook.
A fee is deducted from every withdrawal. The `fee` amount is returned in the response and is charged in addition to the withdrawal `amount`.
```text theme={null}
POST /v1/offer/{offerId}/order
```
### Headers
| Header | Required | Description |
| - | - | - |
| `idempotencykey` | Yes | A unique value for each exchange you create. |
The `idempotencykey` header is **required**. Generate a new key for every new exchange. Only reuse a key when retrying the *same* request after a timeout or network error.
**Request Body**
| Field | Type | Required | Description |
| - | - | - | - |
| `token` | `string` | โ | Token to send. One of `USDT`, `USDC` |
| `network` | `string` | โ | Network to use. One of `polygon`, `arbitrum`, `base`, `solana` |
| `amount` | `string` | โ | Amount as a decimal string, e.g. `"50"` |
| `toAddress` | `string` | โ | Destination address, in the format expected by the chosen network |
**Example Request**
```json theme={null}
{
"token": "USDC",
"network": "base",
"amount": "100.00",
"toAddress": "0xRecipientAddressHere"
}
```
**Response**
```json theme={null}
{
"success": true,
"data": {
"id": "64f1a2b3c4d9e6f7a8b9c0d2",
"walletId": "64f1a1c3c4d5e6f7a8b9c0d1",
"txHash": "0xabc123...",
"userId": "64e0f1a2b3c4d5e6f7a8b9c0",
"token": "USDC",
"network": "base",
"amount": "100",
"fee": "2",
"type": "WITHDRAWAL",
"status": "PENDING",
"from": "0x6f7a5457784e52eacc1fcf14bcdc070caaaa70a0",
"to": "0xrecipientaddresshere",
"blockNumber": null,
"createdAt": "2024-01-15T10:35:00.000Z",
"updatedAt": "2024-01-15T10:35:00.000Z"
},
"message": "Withdrawal initiated successfully"
}
```
The API validates that sufficient balance exists to cover both the `amount` and the `fee` before broadcasting. Attempting to withdraw more than the available balance returns an error.
***
## Transaction History
**Endpoint**
```text theme={null}
GET /v1/stable-currency/transactions
```
Returns a paginated list of all stable currency transactions (deposits and withdrawals) for the authenticated user.
**Query Parameters**
| Parameter | Type | Required | Description |
| - | - | - | - |
| `page` | `number` | โ | Page number. Defaults to `1` |
| `limit` | `number` | โ | Results per page. Defaults to `10` |
| `tokenType` | `string` | โ | Filter by token: `USDT` or `USDC` |
| `network` | `string` | โ | Filter by network: `polygon`, `arbitrum`, `base`, `solana` |
| `type` | `string` | โ | Filter by type: `DEPOSIT` or `WITHDRAWAL` |
**Response**
```json theme={null}
{
"success": true,
"data": {
"data": [ /* array of transaction objects */ ],
"pageCount": 5,
"pageId": 1,
"limit": 10,
"totalCount": 47
},
"message": "Crypto transactions fetched successfully"
}
```
***
## Get Single Transaction
**Endpoint**
```text theme={null}
GET /v1/stable-currency/transactions/:transactionId
```
Fetches a single transaction by its ID. The transaction must belong to the authenticated user.
**Path Parameters**
| Parameter | Type | Required | Description |
| - | - | - | - |
| `transactionId` | `string` | โ | MongoDB ObjectId of the transaction |
**Response**
```json theme={null}
{
"success": true,
"data": {
"id": "64f1a2b3c4d560f7a8b9c0d2",
"walletId": "64f1a2bh74d5e6f7a8b9c0d1",
"txHash": "0xabc123...",
"userId": "64e0f1a2b3c9d5e6f7a8b9c0",
"token": "USDC",
"network": "base",
"amount": "100",
"fee": "2",
"type": "WITHDRAWAL",
"status": "CONFIRMED",
"from": "0x6f7a54577e9e52ebce1fcf14bcdc070caaaa70a0",
"to": "0xrecipientaddresshere",
"blockNumber": "12345678",
"createdAt": "2024-01-15T10:35:00.000Z",
"updatedAt": "2024-01-15T10:36:00.000Z"
},
"message": "Crypto transaction fetched successfully"
}
```
`fee` is only present on `WITHDRAWAL` transactions.
***
## Dev: Fund Wallet
This endpoint is only available in non-production environments. Calling it in production returns a `400` error.
**Endpoint**
```text theme={null}
POST /v1/stable-currency/fund-dev-wallet
```
Seeds a wallet with test tokens from the treasury wallet. Useful for simulating deposits with a real on-chain transaction. Capped at `1000` per request.
**Request Body**
| Field | Type | Required | Description |
| - | - | - | - |
| `token` | `string` | โ | Token to fund: `USDT` or `USDC` |
| `network` | `string` | โ | Network to fund on |
| `amount` | `string` | โ | Amount to fund, max `"1000"` |
**Example Request**
```json theme={null}
{
"token": "USDT",
"network": "solana",
"amount": "1000"
}
```
**Response**
```json theme={null}
{
"success": true,
"data": {
"txHash": "66a2UxE3CFTbwAsjiaxAvYJxJMYohLbyj52VFvYiL51Ksn9Js1PpSmHPqRczvBRHHHztPqfbtc7GSSPW2JhuPpm1"
},
"message": "Dev funded 1000 USDT on solana successfully. Wallet will be credited after on-chain confirmation."
}
```
***
## Transaction Statuses
| Status | Description |
| - | - |
| `PROCESSING` | Transaction initiated and being processed |
| `PENDING` | Transaction broadcast, awaiting on-chain confirmation |
| `CONFIRMED` | Transaction confirmed on-chain |
# Supported Payment Methods
Source: https://docs.monirates.com/guides/supported-payment-methods
Required fields and rules for each supported payment method
These rules apply to both `buyerDebitPaymentDetails` and `buyerCreditPaymentDetails` and also across all endpoints that accept payment detail objects. Always ensure the selected payment method is valid for the chosen currency โ invalid or mismatched field combinations will result in validation errors.
***
## 1. BANK\_TRANSFER
Typically used for currencies such as `NGN`, `USD`, `GBP`, `EUR`, `CAD`, etc.
**Required fields:** `accountName`, `accountNumber`, `bankCode`, `providerName`, `currency`, `iso2`, `paymentMethod`
**Additional required fields (GBP & EUR only):** `holderPostalCode`, `holderCity`, `holderStreet`
* `bankCode` is required. Omit the `network` field entirely.
* For `NGN`, set `providerName` to the name of the bank (e.g. `Access Bank`, `GTBank`).
* For currencies that use routing or sort codes (e.g. `USD`, `GBP`, `EUR`), set `bankCode` to the appropriate routing/sort code and `providerName` to the same code or the name of the financial institution.
* For `GBP` and `EUR`, the additional address fields (`holderPostalCode`, `holderCity`, `holderStreet`) are mandatory.
* For `NGN` and `CNY`, fetch supported banks and their `bankCode` values from `/transaction/{method}/providers` (replace `{method}` with `BANK_TRANSFER`).
* To verify an account name for `NGN` bank transfers, call `/transaction/verify-bank-account`.
***
## 2. ACH
U.S. domestic transfers via the Automated Clearing House network.
**Required fields:** `accountName`, `accountNumber`, `bankCode`, `providerName`, `currency`, `iso2`, `paymentMethod`
* Supported for `USD` only.
* Same field rules as `BANK_TRANSFER`: `bankCode` is required and should be the routing number; `providerName` is the routing number or the bank's name. Omit `network` entirely.
***
## 3. WIRE
U.S. wire transfers.
**Required fields:** `accountName`, `accountNumber`, `bankCode`, `providerName`, `currency`, `iso2`, `paymentMethod`
* Supported for `USD` only.
* Same field rules as `BANK_TRANSFER`: `bankCode` is required and should be the routing number; `providerName` is the routing number or the bank's name. Omit `network` entirely.
***
## 4. MOBILE\_MONEY
Typically used for currencies such as `GHS`, `MWK`, `KES`, `XOF`, `UGX`, etc.
**Required fields:** `accountName`, `accountNumber`, `network`, `providerName`, `currency`, `iso2`, `paymentMethod`
* Omit `bankCode` entirely. The `network` field is required and must match `providerName` (e.g. `MTN`, `Airtel`, `Vodafone`).
* Fetch supported mobile money providers for a specific country from `/transaction/{method}/providers` (replace `{method}` with `MOBILE_MONEY`).
***
## 5. ZELLE
Used for U.S.-based transfers via Zelle.
**Required fields:** `accountName`, `email`, `currency`, `iso2`, `paymentMethod`
* The `email` must belong to a valid Zelle-enabled U.S. bank account.
* Omit `bankCode` and `network` entirely.
***
## 6. INTERAC
Used for Canadian email-based transfers via Interac e-Transfer.
**Required fields:** `accountName`, `email`, `currency`, `iso2`, `paymentMethod`
* Supported for `CAD` only.
* Omit `bankCode` and `network` entirely.
***
## 7. STABLE\_CURRENCY
Used for blockchain-based stablecoin transfers such as `USDT`, `USDC`, or `BUSD`.
**Required fields:** `walletAddress`, `network`, `currency`, `iso2`, `paymentMethod`
* Valid networks: `TRC20`, `ERC20`, `BEP20`, `SOL`, `TON`.
* `currency` must be one of `USDT`, `USDC`, or `BUSD`. The `iso2` field should match the `currency` field.
* Omit `bankCode`, `accountName`, and `email`.
* For `buyerDebitPaymentDetails`, `walletAddress` is the wallet address you are sending funds from.
* For the `network` value, refer to the `paymentDetails` object in the `/utility/exchange-rate` response โ use the `network` value from there.
***
## 8. ALIPAY
Used for Chinese Yuan (`CNY`) payments via Alipay.
**Required fields:** `accountName`, `phoneNumber`, `currency`, `iso2`, `paymentMethod`
* Supported for `CNY` only.
* `phoneNumber` is the user's Alipay account identifier.
* Omit `bankCode`, `network`, and `email`.
***
## 9. WECHAT\_PAY
Used for Chinese Yuan (`CNY`) payments via WeChat Pay.
**Required fields:** `accountName`, `phoneNumber`, `currency`, `iso2`, `paymentMethod`
* Supported for `CNY` only.
* `phoneNumber` is the user's WeChat Pay account identifier.
* Omit `bankCode`, `network`, and `email`.
***
## Quick Reference
| Payment Method | bankCode | network | email | phoneNumber | walletAddress | Currency scope |
| - | - | - | - | - | - | - |
| `BANK_TRANSFER` | Required | Omit | Omit | Omit | Omit | Multi-currency |
| `ACH` | Required | Omit | Omit | Omit | Omit | USD only |
| `WIRE` | Required | Omit | Omit | Omit | Omit | USD only |
| `MOBILE_MONEY` | Omit | Required | Omit | Omit | Omit | Multi-currency |
| `ZELLE` | Omit | Omit | Required | Omit | Omit | USD only |
| `INTERAC` | Omit | Omit | Required | Omit | Omit | CAD only |
| `STABLE_CURRENCY` | Omit | Required | Omit | Omit | Required | USDT/USDC/BUSD |
| `ALIPAY` | Omit | Omit | Omit | Required | Omit | CNY only |
| `WECHAT_PAY` | Omit | Omit | Omit | Required | Omit | CNY only |
# Create Exchange from Payment Link
Source: https://docs.monirates.com/guides/untitled-page
How to calculate a rate and create an exchange order from a payment link
When a payer opens a payment link, they need to calculate how much they will send in their own currency, then create an exchange. This is a two-step process: fetch the rate first, then create the exchange.
***
## Step 1: Fetch the Payment Link Rate
**Endpoint:** `GET /utility/payment-link-rate`
This endpoint calculates the equivalent amount in the payer's currency for a given payment link. The `amount` parameter should be set to the payment link's original amount.
* `toCurrency` and `toCurrencyIso2` represent the currency and ISO2 code of the payment link (the receiver's currency).
* `fromCurrency` and `fromCurrencyIso2` represent the payer's currency and ISO2 code.
**Example:** A payment link is created for `200 GHS` by a receiver in Ghana. The payer is in Nigeria using `NGN`. The request parameters would be:
| Parameter | Value |
| - | - |
| `fromCurrency` | `NGN` |
| `fromCurrencyIso2` | `NG` |
| `toCurrency` | `GHS` |
| `toCurrencyIso2` | `GH` |
| `amount` | `200` |
### Response
```json theme={null}
{
"success": true,
"data": {
"displayAmount": "123.84",
"orderAmount": 123.83216789,
"offerId": "67d830049d46873b7891dd0f"
},
"message": "payment link rate fetched successfully"
}
```
| Field | Description |
| - | - |
| `displayAmount` | Formatted amount for UI display only. Do not use this for the exchange request. |
| `orderAmount` | The exact amount to pass as `amount` when creating the exchange. Use the full value. |
| `offerId` | Required when creating the exchange. Pass this as the `offerId` path parameter. |
***
## Step 2: Create the Exchange
**Endpoint:** `POST /offer/{offerId}/payment-request/order`
Use the `offerId` from the rate response as the path parameter and the full `orderAmount` as the `amount` field in the request body.
The `buyerCreditPaymentDetails` should be automatically mapped from the receiver's payout configuration returned when the payment link was retrieved via `/payment-link/pay` โ including `currency`, `currencyIso2`, and payment details. This ensures the receiver's payout method stays consistent with the original payment link setup.
The `buyerDebitPaymentDetails` must be provided by the payer and should include all required fields for their chosen payment method.
Refer to the [Supported Payment Methods](/guides/supported-payment-methods) guide for the required fields per payment method.
### Request Body
```json theme={null}
{
"amount": 123.83216789,
"buyerDebitPaymentMethod": "MOBILE_MONEY",
"buyerCreditPaymentMethod": "BANK_TRANSFER",
"buyerCreditPaymentDetails": {
"accountName": "MONIRATES LIMITED",
"accountNumber": "0115847370",
"providerName": "SAFE HAVEN SANDBOX BANK",
"paymentMethod": "BANK_TRANSFER",
"iso2": "NG",
"currency": "NGN",
"bankCode": "999240"
},
"buyerDebitPaymentDetails": {
"accountName": "MONIRATES LIMITED",
"accountNumber": "0115847370",
"providerName": "MTN",
"paymentMethod": "MOBILE_MONEY",
"iso2": "GH",
"currency": "GHS",
"network": "MTN"
}
}
```
### Fields
| Field | Required | Description |
| - | - | - |
| `amount` | Yes | The full `orderAmount` from the rate response. |
| `buyerDebitPaymentMethod` | Yes | How the payer will send funds. |
| `buyerCreditPaymentMethod` | Yes | How the receiver will receive funds. |
| `buyerDebitPaymentDetails` | Yes | Payment details for the payer. Must match the selected debit payment method. |
| `buyerCreditPaymentDetails` | Yes | Payment details for the receiver. Mapped from the payment link's payout configuration. |
***
## Step 3: Confirm Payment
Once the exchange is successfully created, call the buyer paid endpoint to notify the system that payment has been made.
**Endpoint:** `POST /order/{orderId}/payment-request/buyer-paid`
The `orderId` is the `_id` from the exchange creation response. See the [Payment Made](/guides/payment-made) guide for how to structure the request body based on the debit payment method used.
# Virtual One Time Account
Source: https://docs.monirates.com/guides/virtual-one-time-account
How to use the virtual one time account
A virtual one-time account is another way to collect NGN from users. Each account is generated on demand, valid for a limited duration, and tied to a specific amount.
Virtual one-time accounts are limited to **NGN** only. You must have an existing NGN wallet before creating one.
**Endpoint:** `POST /transaction/collection/virtual-account`
***
## Request Body
| Field | Required | Description |
| - | - | - |
| `amount` | Yes | The amount to be collected in NGN. |
| `validFor` | No | Duration in seconds the virtual account remains valid (e.g. `3600` for 1 hour). Defaults to 15 minutes if not provided. |
```json theme={null}
{
"amount": 5000,
"validFor": 3600
}
```
***
## Sandbox vs. Production
| | Sandbox | Production |
| - | - | - |
| Funding | Account is automatically funded on creation | You fund the account yourself |
| Amount limit | Maximum of **โฆ10,000** per virtual account | No restriction |
1. In sandbox, creating a virtual account with an amount greater than โฆ10,000 will throw a validation error.
2. In sandbox, the account generated is automatically funded.
3. Fees may apply.
# Wallet Balance
Source: https://docs.monirates.com/guides/wallet
Retrieve all wallets associated with the authenticated user along with their respective balances
This endpoint retrieves all wallets associated with the authenticated user along with their respective balances.
***
## Overview
Each wallet object contains the following information:
| Field | Description |
| - | - |
| `balance` | Current available balance |
| `heldBalance` | Balance currently on hold |
| `incomingBalance` | Balance pending from incoming transactions |
| `currency` | Currency details for the wallet |
| `bankDetails` | Bank account details, if applicable |
This endpoint is useful for displaying a user's wallet overview across multiple currencies.
# Withdraw Funds to Bank
Source: https://docs.monirates.com/guides/withdraw-funds-from-bank
Endpoint reference for withdrawing Nigerian Naira via bank transfer
## NGN Bank Transfer / Withdrawal
This endpoint currently supports `NGN` (Nigerian Naira) wallet withdrawals.
***
## How to Perform a Bank Transfer
1. Ensure the user has sufficient balance in their `NGN` wallet.
2. Retrieve the list of supported Nigerian banks and their respective `bankCode` values by calling the utility endpoint: `/transaction/{method}/providers`
3. Pass the following query parameters to the utility endpoint:
| Parameter | Value |
| - | - |
| `method` | `BANK_TRANSFER` |
| `currency` | `NGN` |
| `iso2` | `NG` |
4. Use the returned `bankCode` when initiating a transfer.
***
## Headers
| Header | Required | Description |
| - | - | - |
| `idempotencykey` | Yes | A unique value for each exchange you create. |
The `idempotencykey` header is **required**. Generate a new key for every new exchange. Only reuse a key when retrying the *same* request after a timeout or network error.
## Required Fields
| Field | Description |
| - | - |
| `currency` | Must be `NGN` |
| `amount` | Amount to transfer from the wallet |
| `accountNumber` | Destination bank account number |
| `bankCode` | Bank code of the destination bank |
| `accountName` | Name on the destination bank account |
| `bankName` | Name of the destination bank |
## Optional Fields
| Field | Description |
| - | - |
| `narration` | Transaction narration or description |
***
## Sample Request Payload
```json theme={null}
{
"currency": "NGN",
"amount": 15000,
"narration": "Refund",
"accountNumber": "5010755577",
"bankCode": "999240",
"accountName": "MONIRATESLIMITE / JOHN DOE",
"bankName": "SAFE HAVEN SANDBOX BANK"
}
```
***
## Notes
* This endpoint is only for `NGN` bank transfers.
* Fees may apply and will be deducted from the wallet balance.
* Transfers are subject to bank processing times.
* Invalid bank codes or insufficient balance will result in validation errors.
# Withdraw to Mobile Money
Source: https://docs.monirates.com/guides/withdraw-funds-to-mobile-money
Endpoint reference for withdrawing funds to mobile money accounts across supported currencies
## Mobile Money Transfer
This endpoint supports wallet withdrawals to mobile money accounts for supported currencies.
***
## Supported Currencies
| Currency | Country/Region |
| - | - |
| `GHS` | Ghana |
| `XOF` | Benin, Ivory Coast, Burkina Faso, Senegal |
| `XAF` | Cameroon |
***
## Transfer Flow
### Step 1: Ensure Sufficient Balance
Ensure the user has sufficient wallet balance for the selected currency before initiating a transfer.
### Step 2: Fetch Supported Mobile Money Providers
Retrieve the list of supported mobile money providers for the selected country and currency by calling the utility endpoint:
```text theme={null}
GET /transaction/{method}/providers?currency={currency}&iso2={iso2}
```
**Example:**
```text theme={null}
GET /transaction/MOBILE_MONEY/providers?currency=XOF&iso2=BJ
```
Use the returned provider `code` as the value for the `network` field when initiating the transfer.
***
## Headers
| Header | Required | Description |
| - | - | - |
| `idempotencykey` | Yes | A unique value for each exchange you create. |
The `idempotencykey` header is **required**. Generate a new key for every new exchange. Only reuse a key when retrying the *same* request after a timeout or network error.
## Fields
### Required
| Field | Description |
| - | - |
| `currency` | Wallet currency โ `GHS`, `XOF`, or `XAF` |
| `amount` | Amount to transfer |
| `phoneNumber` | Recipient mobile money number |
| `network` | Mobile money provider code (e.g. `MTN`, `MTN_MOMO_BEN`) |
### Conditionally Required
| Field | Description |
| - | - |
| `iso2` | Required when currency is `XOF` or `XAF`. Must match the selected country (e.g. `BJ`, `CI`, `BF`, `SN`, `CM`) |
### Optional
| Field | Description |
| - | - |
| `narration` | Transaction description |
***
## Sample Request Payloads
### GHS Mobile Money Transfer
```json theme={null}
{
"currency": "GHS",
"amount": 10,
"narration": "Gift",
"phoneNumber": "+233237867135",
"network": "MTN"
}
```
### XOF Mobile Money Transfer
```json theme={null}
{
"currency": "XOF",
"iso2": "BJ",
"amount": 10,
"narration": "Refund",
"phoneNumber": "+22990123456",
"network": "MTN_MOMO_BEN"
}
```
***
## Notes
* Fees may apply and will be deducted from the wallet balance.
* For `XOF` and `XAF`, the `iso2` field is mandatory and must match the selected country.
* Always fetch providers from `/transaction/{method}/providers` before initiating transfers.
* Transfers are subject to mobile network processing times.
* Invalid phone numbers, unsupported providers, or incorrect country codes will result in validation errors.
# Sub-Account
Source: https://docs.monirates.com/untitled-page
Create and manage sub-accounts under a business, ahead of provisioning a sub-wallet for each.
## Overview
A **sub-account** represents an individual user that a business creates and manages under its own business account. Once a sub-account exists, the business can provision a [sub-wallet](/guides/stable-sub-wallets) for it using the returned `_id` as the `subAccountId`.
***
## Create Sub-Account
**Endpoint**
```text theme={null}
POST /sub-account
```
**Request Body**
| Field | Type | Required | Description |
| - | - | - | - |
| `name` | `string` | โ | Full name of the sub-account holder |
| `email` | `string` | โ | Email address of the sub-account holder |
| `dob` | `string` | โ | Date of birth, in `YYYY-MM-DD` format |
**Example Request**
```json theme={null}
{
"name": "John Doe",
"email": "Johndoe@gmail.com",
"dob": "1996-03-29"
}
```
**Response**
```json theme={null}
{
"success": true,
"message": "Sub-account created successfully!",
"data": {
"businessId": "6914b8de530486c362268f77",
"globalId": "069032f2-7183-48fb-922b-358b6cde284a",
"name": "John Doe",
"email": "Johndoe@gmail.com",
"dob": "1996-03-29T00:00:00.000Z",
"type": "INDIVIDUAL",
"_id": "6a60cb655a95c57344604053",
"createdAt": "2026-07-22T13:53:41.447Z",
"updatedAt": "2026-07-22T13:53:41.447Z",
"__v": 0
}
}
```
Use the `_id` from this response as the `subAccountId` when creating a [sub-wallet](/guides/stable-sub-wallets#create-sub-wallet) for this sub-account.
***
## Get All Sub-Accounts
**Endpoint**
```text theme={null}
GET /sub-accounts
```
Returns a paginated list of all sub-accounts created by the authenticated business.
**Query Parameters**
| Parameter | Type | Required | Description |
| - | - | - | - |
| `page` | `number` | โ | Page number. Minimum `1`. Defaults to `1` |
| `limit` | `number` | โ | Results per page. Between `1` and `100`. Defaults to `20` |
**Response**
```json theme={null}
{
"success": true,
"message": "Sub-accounts fetched successfully!",
"data": {
"subAccounts": [
{
"_id": "6a5f6323acae291f105475db",
"businessId": "690b476f530486c362268753",
"globalId": "60891a16-2907-46f5-be99-4c06ab57a62f",
"name": "John Doe",
"email": "Johndoe@gmail.com",
"dob": "1996-03-29T00:00:00.000Z",
"type": "INDIVIDUAL",
"createdAt": "2026-07-21T12:16:35.220Z",
"updatedAt": "2026-07-21T12:16:35.220Z",
"__v": 0
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 5,
"pages": 1
}
}
}
```
***
## Get Single Sub-Account
**Endpoint**
```text theme={null}
GET /sub-account/:subAccountId
```
Fetches a single sub-account by its ID. The sub-account must belong to the authenticated business.
**Path Parameters**
| Parameter | Type | Required | Description |
| - | - | - | - |
| `subAccountId` | `string` | โ | ID of the sub-account (the `_id` returned when it was created) |
**Response**
```json theme={null}
{
"success": true,
"message": "Sub-account fetched successfully!",
"data": {
"_id": "6a5f6323acae291f105475db",
"businessId": "690b476f530486c362268753",
"globalId": "60891a16-2907-46f5-be99-4c06ab57a62f",
"name": "John Doe",
"email": "Johndoe@gmail.com",
"dob": "1996-03-29T00:00:00.000Z",
"type": "INDIVIDUAL",
"createdAt": "2026-07-21T12:16:35.220Z",
"updatedAt": "2026-07-21T12:16:35.220Z",
"__v": 0
}
}
```