BLOPAY API

Accept UPI payments on your website or app. Money goes straight to your own UPI ID.

How it works

  1. Turn on API access in the BLO app (Settings → API access) and copy your API key.
  2. Your server creates a payment → you get a UPI QR, a UPI link and a hosted checkout page.
  3. The customer pays with any UPI app to your UPI ID.
  4. BLO on your phone sees the payment alert (UPI app, bank app or bank SMS) and confirms it → status becomes success and your webhook is called.
  5. If it is not paid before expiry, status becomes 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.

Authentication

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

POST/api/v1/payments

FieldRequiredDescription
amountyesAmount in INR, e.g. 499 or 499.50
order_idnoYour order reference. Same order_id returns the same pending/paid payment.
notenoShown in the customer's UPI app (max 80 chars)
customer_namenoFor your records
vpanoWhich of your UPI IDs to receive on (default: first)
callback_urlnoWebhook for this payment (otherwise your default webhook URL)
return_urlnoCheckout page redirects here after success/failure with ?payment_id=&order_id=&status=
expiry_minutesno2–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.

GET/api/v1/payments/create

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

GET/api/v1/payments/{id}

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"

GET/api/v1/payments

List recent payments. Filters: status, order_id, limit (max 100).

GET/api/v1/me

Your account, UPI IDs and whether your BLO phone is online (device_online).

Webhooks

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 example

<?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']);

Errors

HTTPerrorMeaning
401unauthorizedMissing or wrong API key
422invalid_amount / invalid_vpa / invalid_url / no_upi_idCheck the request
429too_many_pending100 pending payments of the same amount; wait for some to finish
404not_foundUnknown payment / endpoint

Good to know

BLOPaying through BLOPAY Gateway