Developer Resources
Everything you need to integrate B21's powerful financial technology into your applications
Get Started in Minutes
Our comprehensive APIs and SDKs make it easy to add payment processing, money transfers, and financial services to your application.
API Documentation
Comprehensive documentation for all our APIs with detailed examples, parameters, and response formats.
SDKs & Libraries
Official SDKs and libraries for popular programming languages to speed up your integration.
Webhooks
Real-time notifications for transaction updates, account changes, and other important events.
Code Examples
Ready-to-use code samples and tutorials for common integration scenarios.
Sandbox Environment
Test your integration safely with our sandbox environment before going live.
Developer Support
Get help from our technical team and connect with other developers in our community.
Quick Integration Examples
// Initialize B21 SDK const B21 = require('@b21/sdk'); const client = new B21({ apiKey: 'your_api_key_here', environment: 'sandbox' // or 'production' }); // Process a payment const payment = await client.payments.create({ amount: '1000.00', currency: 'NGN', customer: { email: 'customer@example.com', name: 'John Doe' }, description: 'Payment for order #12345' }); console.log('Payment created:', payment.id);
// Initialize B21 SDK require_once 'vendor/autoload.php'; use B21\B21Client; $client = new B21Client([ 'api_key' => 'your_api_key_here', 'environment' => 'sandbox' // or 'production' ]); // Process a payment $payment = $client->payments->create([ 'amount' => '1000.00', 'currency' => 'NGN', 'customer' => [ 'email' => 'customer@example.com', 'name' => 'John Doe' ], 'description' => 'Payment for order #12345' ]); echo 'Payment created: ' . $payment['id'];
# Initialize B21 SDK import b21 client = b21.Client( api_key='your_api_key_here', environment='sandbox' # or 'production' ) # Process a payment payment = client.payments.create({ 'amount': '1000.00', 'currency': 'NGN', 'customer': { 'email': 'customer@example.com', 'name': 'John Doe' }, 'description': 'Payment for order #12345' }) print(f'Payment created: {payment["id"]}')
# Process a payment using cURL curl -X POST https://api.b21.net/v1/payments \ -H "Authorization: Bearer your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "amount": "1000.00", "currency": "NGN", "customer": { "email": "customer@example.com", "name": "John Doe" }, "description": "Payment for order #12345" }'
Popular API Endpoints
Payments
Transfers
Accounts
Developer Tools
Join Our Developer Community
Connect with thousands of developers building amazing applications with B21's APIs.