2025-02-01
UPI API Integration Guide for Developers
Integrating UPI payments is simple with the InPay API. This guide covers creating payments, handling webhooks, and sending payouts.
1. Create a Pay-in
curl -X POST https://inpay.45.63.23.31.nip.io/api/v1/payin -H "Authorization: Bearer ip_live_YOUR_KEY" -d '{"amount": 1000, "method": "upi", "payerName": "Rahul"}'
2. Send a Payout
curl -X POST https://inpay.45.63.23.31.nip.io/api/v1/payout -H "Authorization: Bearer ip_live_YOUR_KEY" -d '{"amount": 500, "ifsc": "HDFC0000001", "accountNo": "50100123456789", "accountName": "Rahul Sharma"}'