Payouts
South African Rand (ZAR) Payouts
Learn how to integrate Mavapay payouts for South African Rand (ZAR)
This guide explains how to integrate Mavapay’s payout functionality for sending money to South African bank accounts.
Overview
The ZAR payout process involves the following steps:
- Get the list of supported South African banks
- Create a quote for the amount you want to pay out
- Pay the generated lightning invoice
- Receive webhook notifications for payment status
Prerequisites
Before you begin, ensure you have:
- Created a Mavapay account
- Obtained your API key
- Set up your webhook endpoint
- 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 South African banks:
Creating a Quote
Important Notes:
- All amounts are in cents (1 ZAR = 100 cents)
- To send 3,000 ZAR, use amount = 300000 cents
- The minimum amount for ZAR payouts is $2
Sample response:
Understanding the Quote Response
usdToTargetCurrencyRate
: Price of 1 USD in ZARexchangeRate
: Price of 1 BTC in ZARamountInSourceCurrency
: Total amount in SATS to be paid (including fees)amountInTargetCurrency
: Total amount in cents to be sent to recipienttransactionFeesInSourceCurrency
: Fees in SATS (included in amountInSourceCurrency)transactionFeesInTargetCurrency
: Fees in centsexpiry
: Invoice validity (5 minutes)customerInternalFee
: Currently disabled for ZAR payments
Webhook Events
You’ll receive two webhook events:
payment.received
- When the lightning payment is receivedpayment.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 ZAR rates:
Sample response:
Testing
Use our staging environment for testing:
Test bank account details:
- Account Number:
1352900000
- Bank: CAPITEC BANK
- Account Holder: Ricki Tester
Note: All test environment invoices are signet invoices.
Support
If you need help with integration:
- Email: info@mavapay.co
- Documentation: https://docs.mavapay.co
- API Reference: https://docs.mavapay.co/api-reference