
success and your webhook is called.failed (reason expired).Keep BLO installed and UPI app alerts turned on, on the phone that receives the payments. Each pending payment gets a unique amount (e.g. ₹500.00, ₹500.01) so payments can be matched exactly; always charge the returned amount.
Send your key in a header: X-API-Key: blo_live_xxx (or Authorization: Bearer blo_live_xxx). For quick GET integrations you can pass ?api_key=, but keep keys on your server, never in browser code.
Base URL: https://blopay.noxinfotech.com
| Field | Required | Description |
|---|---|---|
| amount | yes | Amount in INR, e.g. 499 or 499.50 |
| order_id | no | Your order reference. Same order_id returns the same pending/paid payment. |
| note | no | Shown in the customer's UPI app (max 80 chars) |
| customer_name | no | For your records |
| vpa | no | Which of your UPI IDs to receive on (default: first) |
| callback_url | no | Webhook for this payment (otherwise your default webhook URL) |
| return_url | no | Checkout page redirects here after success/failure with ?payment_id=&order_id=&status= |
| expiry_minutes | no | 2–60, default 15 |
curl -X POST https://blopay.noxinfotech.com/api/v1/payments \
-H "X-API-Key: blo_live_xxx" -H "Content-Type: application/json" \
-d '{"amount": 499, "order_id": "ORD1001", "note": "Order ORD1001", "return_url": "https://yoursite.com/thanks"}'
{
"ok": true,
"payment": {
"id": "pay_3f1c9a7b0d2e4f6a8b1c",
"status": "pending",
"amount": "499.00",
"amount_requested": "499.00",
"currency": "INR",
"order_id": "ORD1001",
"vpa": "shop@okaxis",
"upi_link": "upi://pay?pa=shop%40okaxis&pn=...&am=499.00&cu=INR",
"qr_svg_url": "https://blopay.noxinfotech.com/qr/pay_3f1c9a7b0d2e4f6a8b1c.svg",
"checkout_url": "https://blopay.noxinfotech.com/pay/pay_3f1c9a7b0d2e4f6a8b1c",
"expires_at": "2026-12-01T12:15:00Z"
}
}
Show checkout_url (simplest), or embed qr_svg_url as an image, or open upi_link on mobile.
Same as POST, with query parameters (for simple integrations):
GET https://blopay.noxinfotech.com/api/v1/payments/create?api_key=blo_live_xxx&amount=250&order_id=ORD1002
Returns the payment. status is pending, success or failed. On success: payer_name, source (Google Pay, PhonePe, Bank SMS…) and paid_at.
curl https://blopay.noxinfotech.com/api/v1/payments/pay_3f1c9a7b0d2e4f6a8b1c -H "X-API-Key: blo_live_xxx"
List recent payments. Filters: status, order_id, limit (max 100).
Your account, UPI IDs and whether your BLO phone is online (device_online).
On success or failure BLOPAY POSTs JSON to your callback_url (or the default webhook URL set in the app):
{ "event": "payment.success", "payment": { "id": "pay_…", "status": "success", "amount": "499.00", "order_id": "ORD1001", "payer_name": "Arun G Krishnan", ... }, "sent_at": "…" }
Verify the X-BLOPAY-Signature header (HMAC-SHA256 of the raw body with your webhook secret):
<?php
$raw = file_get_contents('php://input');
$sig = $_SERVER['HTTP_X_BLOPAY_SIGNATURE'] ?? '';
$ok = hash_equals('sha256=' . hash_hmac('sha256', $raw, 'whsec_xxx'), $sig);
if (!$ok) { http_response_code(401); exit; }
$e = json_decode($raw, true);
if ($e['event'] === 'payment.success') { /* mark order $e['payment']['order_id'] as paid */ }
http_response_code(200);
// Node.js (Express)
const crypto = require('crypto');
app.post('/blopay', express.raw({type: 'application/json'}), (req, res) => {
const sig = 'sha256=' + crypto.createHmac('sha256', 'whsec_xxx').update(req.body).digest('hex');
if (sig !== req.get('X-BLOPAY-Signature')) return res.sendStatus(401);
const e = JSON.parse(req.body);
// e.event === 'payment.success'
res.sendStatus(200);
});
Failed deliveries are retried up to 6 times. Always confirm with GET /api/v1/payments/{id} before shipping.
<?php
$ch = curl_init('https://blopay.noxinfotech.com/api/v1/payments');
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: blo_live_xxx', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode(['amount' => 499, 'order_id' => 'ORD1001', 'return_url' => 'https://yoursite.com/thanks'])]);
$res = json_decode(curl_exec($ch), true);
header('Location: ' . $res['payment']['checkout_url']);
| HTTP | error | Meaning |
|---|---|---|
| 401 | unauthorized | Missing or wrong API key |
| 422 | invalid_amount / invalid_vpa / invalid_url / no_upi_id | Check the request |
| 429 | too_many_pending | 100 pending payments of the same amount; wait for some to finish |
| 404 | not_found | Unknown payment / endpoint |
Paying through BLOPAY Gateway