Get Balance
Endpoint: /balance
Request type: GET
const axios = require('axios');
const apiKey = 'YOUR_API_KEY';
axios.get('https://rocheap.com/business/api/balance', {
headers: {
'rocheap-api-key': apiKey
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error:', error);
});
Expected response:
{ success: true, balance: 2.1 }