Skip to main content
This guide explains how to integrate Mavapay’s payout functionality for sending money to Nigerian bank accounts.

Overview

The NGN payout process involves the following steps:
  1. Get the list of supported Nigerian banks
  2. Validate the recipient’s bank account details
  3. Create a quote for the amount you want to pay out
  4. Pay the generated lightning invoice
  5. Receive webhook notifications for payment status

Prerequisites

Before you begin, ensure you have:
  1. Created a Mavapay account
  2. Obtained your API key
  3. Set up your webhook endpoint
  4. Verified your business account

Authentication

All API requests must include your API key in the header:

Getting Bank List

First, retrieve the list of supported Nigerian banks:
Sample response:

Validating Bank Account

Before creating a quote, validate the recipient’s bank account details:
Sample response:

Creating a Quote

Important Notes:
  • All amounts are in Kobo (1 NGN = 100 Kobo)
  • Minimum payout amount is 2000 NGN
  • To send 3000 NGN, use amount = 300000 Kobo
Sample response:

Understanding the Quote Response

  • usdToTargetCurrencyRate: Price of 1 USD in NGN
  • exchangeRate: Price of 1 BTC in NGN
  • amountInSourceCurrency: Total amount in SATS to be paid (including fees)
  • amountInTargetCurrency: Total amount in Kobo to be sent to recipient
  • transactionFeesInSourceCurrency: Fees in SATS (included in amountInSourceCurrency)
  • transactionFeesInTargetCurrency: Fees in Kobo
  • expiry: Invoice validity (5 minutes)
  • customerInternalFee: Optional extra fee you can charge (in SATS)

Webhook Events

You’ll receive two webhook events:
  1. payment.received - When the lightning payment is received
  2. payment.sent - When the money is sent to the recipient’s bank account

payment.received Event

payment.sent Event

Checking Transaction Status

You can query transactions using the payment hash, orderId, or transaction ID:

Getting Price Rates

To get current NGN rates:
Sample response:

Testing

Use our staging environment for testing:
Test bank account details:
  • Account Number: 0149200000
  • Bank: GTBANK PLC
  • Bank Code: 000013
Note: All test environment invoices are signet invoices.

Support

If you need help with integration: