Modular Developer API Documentation

Separate endpoints and code snippets for Payment Gateway, 55+ Services, and WhatsApp API

Your Services API Key: db_srv_live_xxxx (Pass in X-API-KEY header)
POST /api/v1/service/apply.php
Execute Service & Generate Instant PDF
curl -X POST "https://api.digitalbihar.net/api/v1/service/apply.php" \
  -H "X-API-KEY: db_srv_live_xxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "service_code": "BIRTH_NEW",
    "customer_name": "Rahul Sharma",
    "customer_phone": "9876543210",
    "form_data": {
      "full_name": "Rahul Sharma",
      "dob": "2012-08-15",
      "gender": "Male",
      "birth_place": "Sadar Hospital Purnia"
    }
  }'
POST /api/v1/pan_find.php
Aadhaar to PAN Find API
curl -X POST "https://api.digitalbihar.net/api/v1/pan_find.php" \
  -H "X-API-KEY: db_srv_live_xxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "aadhaar_no": "987654321098",
    "customer_name": "Rahul Sharma"
  }'
Your Payment Gateway API Key: db_pay_live_xxxx (Pass in X-API-KEY header)
POST /api/v1/payment/create.php
Create Dynamic UPI Payment Order & QR Code

Generates instant dynamic UPI QR Code, intent link, and sets webhook for auto-credit.

curl -X POST "https://api.digitalbihar.net/api/v1/payment/create.php" \
  -H "X-API-KEY: db_pay_live_xxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 500,
    "customer_name": "Rahul Sharma"
  }'
Your WhatsApp API Key: db_wa_live_xxxx (Pass in X-API-KEY header)
POST /api/v1/whatsapp/send_message.php
Send WhatsApp Message & PDF Receipt

Delivers automated WhatsApp text notifications and PDF links directly to customer's WhatsApp.

curl -X POST "https://api.digitalbihar.net/api/v1/whatsapp/send_message.php" \
  -H "X-API-KEY: db_wa_live_xxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "mobile": "9876543210",
    "message": "Your PAN Card application DB-PAN-260822-1029 is successfully completed! Download: https://printportal.digitalbihar.net/generate_pdf.php?id=12"
  }'