import Limitry from '@limitry/sdk';const client = new Limitry({ apiKey: process.env['LIMITRY_API_KEY'], // This is the default and can be omitted});const response = await client.balances.credit({ amount: 1, customerId: 'x', description: 'description', name: 'x',});console.log(response.balance);
Creates a credit transaction and increases the balance. If the balance doesn’t exist, it will be auto-created.
POST
/
balances
/
credit
JavaScript
Copy
import Limitry from '@limitry/sdk';const client = new Limitry({ apiKey: process.env['LIMITRY_API_KEY'], // This is the default and can be omitted});const response = await client.balances.credit({ amount: 1, customerId: 'x', description: 'description', name: 'x',});console.log(response.balance);