API Documentation
Full reference with examples and error codes.
View DocsBuild with RESTful APIs, webhooks, SDKs and a full sandbox environment.
BytePay exposes REST APIs for payments, payouts, wallet operations and merchant integrations. All requests use JSON and HTTPS.
Base URL: https://bytepay.online/api
Authorization: Bearer sk_live_xxxxxxxx
Content-Type: application/json
X-Environment: production | sandboxReceive real-time notifications for payment success, payout completion and refunds. Verify signatures using your webhook secret.
{
"event": "payment.success",
"trx_id": "TXNXXXXXXXX",
"amount": 5000,
"currency": "NGN",
"status": "completed"
}Full reference with examples and error codes.
View DocsPHP, JavaScript and cURL starter kits.
Download SDKsTest payments and payouts without real money.
Get Sandbox Keyscurl -X POST https://bytepay.online/api/initiate-payment \
-H "Authorization: Bearer sk_test_xxx" \
-H "Content-Type: application/json" \
-d '{
"payment_amount": 10000,
"currency_code": "NGN",
"ref_trx": "order_001",
"customer_email": "buyer@example.com",
"ipn_url": "https://yoursite.com/webhook"
}'