
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
billogram-api-client
Advanced tools
A promise-based client for Billogram's API.
Example usage:
import Billogram from 'billogram-api-client'
const client = new Billogram({
username: API_USER,
password: API_PASSWORD
})
/* inside async function */
const billogram = await client.billograms.find(id)
Create an API user within the Billogram UI.
Import the package and create a client with your user credentials:
import Billogram from 'billogram-api-client'
const client = new Billogram({
username: 'your-api-user',
password: 'your-api-password',
})
All methods are namespaced under the objects they relate to: billograms, customers, and items.
All methods return the resource they are acting upon, with the exception of client.billograms.pdf().
So for example if you want to find a customer by their customer number you would use:
const customer = await client.customers.find(1)
If you wanted to create an item you would use:
const item = await client.items.create({ ...itemData })
Each method returns a promise so you can use either then/catch or async/await.
client.billograms
.remind(billogramId, {
method: 'Email',
message: 'Please pay me.'
})
.then(data => console.log('Reminder sent:', data))
.catch(error => console.error('Could not send reminder:', error))
/* or */
async function sendReminder(billogramId) {
const billogram = await client.billograms.remind(billogramId, {
method: 'Email',
message: 'Please pay me.'
})
}
Pass a config object as the second argument to the Billogram constructor with sandbox: true.
const client = new Billogram({
username: 'sandbox-api-user',
password: 'sandbox-api-password',
}, {
sandbox: true
})
These methods map all api endpoints listed at:
client.billograms.create(data)
client.billograms.list(params)
client.billograms.find(id)
client.billograms.update(id, data)
client.billograms.send(id, data)
client.billograms.sell(id)
client.billograms.resend(id, data)
client.billograms.remind(id, data)
client.billograms.collect(id)
client.billograms.payment(id, data)
client.billograms.credit(id, data)
client.billograms.writeoff(id)
client.billograms.writedown(id)
client.billograms.revertWritedown(id)
client.billograms.respite(id, data)
client.billograms.removeRespite(id)
client.billograms.message(id, data)
client.billograms.attach(id, data)
client.billograms.pdf(id, params)
These methods map to the Customer endpoints listed here:
client.customers.create(data)
client.customers.list(params)
client.customers.find(customerNumber)
client.customers.update(customerNumber, data)
These methods map to the Item endpoints listed here:
client.items.create(data)
client.items.list(params)
client.items.find(itemNumber)
client.items.update(itemNumber, data)
client.items.delete(itemNumber)
Register or login to the Sandbox.
Create a .env file in the root directory with your sandbox user credientials with the following keys:
TEST_API_USER=your-api-user
TEST_API_PASSWORD=your-api-password
TEST_API_EMAIL=your@email.com (optional)
You can optionally add your email to get the customer emails.
If you haven't already install packages npm run install and run:
npm run test
FAQs
Promise-based client for Billogram's API.
We found that billogram-api-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.