fetch('https://api.yoursite.com/api/payout/create', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_TOKEN',
'X-App-ID': 'YOUR_APP_ID',
'X-Secret-Key': 'YOUR_SECRET_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
bankAccountName: "John Doe",
bankAccountNumber: "1234567890",
ifscCode: "SBIN0001234",
amount: 5000,
callbackUrl: "https://yoursite.com/callback"
})
})