Top

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

POST /v1/payments Create a new payment
GET /v1/payments/{id} Retrieve payment details
GET /v1/payments List all payments

Transfers

POST /v1/transfers Create a money transfer
GET /v1/transfers/{id} Get transfer status

Accounts

GET /v1/account Get account information
GET /v1/account/balance Check account balance

Developer Tools

API Explorer

Interactive tool to test API endpoints directly from your browser.

Try Now

API Keys

Manage your API keys and configure access permissions.

Manage Keys

Analytics Dashboard

Monitor API usage, performance metrics, and error rates.

View Dashboard

Error Logs

Debug integration issues with detailed error logs and traces.

View Logs

Join Our Developer Community

Connect with thousands of developers building amazing applications with B21's APIs.

5,000+ Developers
50+ Countries
1M+ API Calls/Month
99.9% Uptime