Separate endpoints and code snippets for Payment Gateway, 55+ Services, and WhatsApp API
db_srv_live_xxxx (Pass in X-API-KEY header)
/api/v1/service/apply.php
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"
}
}'
/api/v1/pan_find.php
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"
}'
db_pay_live_xxxx (Pass in X-API-KEY header)
/api/v1/payment/create.php
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"
}'
db_wa_live_xxxx (Pass in X-API-KEY header)
/api/v1/whatsapp/send_message.php
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"
}'