
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
@plasma-platform/service-balances
Advanced tools
Full documentation
install:
npm i @plasma-platform/service-balances -S
Balances Micro Service API
url string service urltoken (string | null) user access tocken if available (optional, default null)Creates new document based on your user_id ("transactions" scope is needed)
(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.createNewDocument();
})();
Returns object response
Return link to upload your file ("transactions" scope is needed)
(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.getLinkAmazonS3Uploader();
})();
Returns object response
Returns taxpayer own document by his access_token ("transactions" scope is required)
(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.requestTaxpayerDocument();
})();
Returns object response
Create taxpayer info or update existent one
args object object with arguments
args.type number taxpayer info type (required)args.countryId string Char code of "Country or Country Residence" (required)args.countryId2 string? Char code of "Country citizenship or Country incorporation"args.stateId string? Char code of "State / Province ID"args.city string? Cityargs.zip string? ZIP-codeargs.address string? Street & apt. or suite no.args.address2 string? Permanent residence addressargs.personNumberType string? Tax Number for individual (e.g. "Foreign Tax ID Number")args.companyNumberType string? Tax Number for Corporation (e.g. "Employer Identification Number(EIN)")args.taxIdNumber string? Tax ID number (XXX-XX-XXXX)args.taxClassification string? Tax classificationargs.name string? Name (shown on your income tax return)args.businessName string? Business nameargs.organizationName string? Name of organizationargs.disregardedEntity string? Name of disregarded entityargs.chapter3Status string? Chapter 3 statusargs.signature string? Signatureargs.residenceNumbers string? Residence numbers (optional) (not implemented yet)(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.createTaxpayerDocument({});
})();
Returns object response
Check balance of the specified user
id string user id(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.checkBalanceByUserId();
})();
Returns array array with balances info
Returns taxpayer own information by his access_token
(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.requestTaxpayerInfo();
})();
Returns array array with balances info
Returns taxpayer own information by his access_token
id string Transaction unique ID(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.requestTransactionInfo('1');
})();
Returns array array with balances info
Request Transactions list of authenticated user by balance type
args Object? object of params
(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.requestTransactionInfo('1');
})();
Returns array array with balances info
Request balance of authenticated user by type or default
balanceType string? type of balance needed (vendor|bonus)(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.requestBalances();
})();
Returns array array with balances info
Creates new payment method ("transactions" scope is needed)
args object object with arguments
args.paymentMethod number Payment method (paypal, wire, skrill, payoneer) (required)args.email string? E-mail (required for paypal & skrill)args.fullName string? First & last name (required for wire)args.address string? Address (required for wire)args.country string? Country char code (required for wire)args.swiftCode string? SWIFT-code (required for wire)args.bankAccountId string? Bank account number (required for wire)args.bankName string? Bank name (required for wire)args.bankAddress string? Bank address (required for wire)args.payonnerId string? (required for payoneer)(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.createPaymentMethod({});
})();
Returns object response
Updates existed payment method ("transactions" scope is needed)
args object object with arguments
args.paymentMethod number Payment method (paypal, wire, skrill, payoneer) (required)args.email string? E-mail (required for paypal & skrill)args.fullName string? First & last name (required for wire)args.address string? Address (required for wire)args.country string? Country char code (required for wire)args.swiftCode string? SWIFT-code (required for wire)args.bankAccountId string? Bank account number (required for wire)args.bankName string? Bank name (required for wire)args.bankAddress string? Bank address (required for wire)args.payonnerId string? (required for payoneer)(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.createPaymentMethod({});
})();
Returns object response
Creates new withdraw request ("transactions" scope is needed)
args object object with arguments
(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.createWithdrawRequest({});
})();
Returns object response
Get all user payment methods ("transactions" scope is needed)
(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.requestUserPaymentMethods();
})();
Returns array array with balances info
Return user own last withdraw request ("transactions" scope is needed)
(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.requestUserPaymentMethods();
})();
Returns array array with balances info
Return all withdraws
(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.requestWithdraws();
})();
Returns array array with balances info
Transaction - Request balance of order for balance_type
(async () => {
const balancesService = new BalancesService('http://service-balances.dev/api/v2/');
const request = await balancesService.getBalanceByOrderId(params);
})();
Returns Promise<any>
Update auto withdrawal
(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.updateAutoWithdrawal();
})();
Returns object response
Withdraw - Get withdrawal information for user
(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.getWithdrawalInfo();
})();
Returns object object with withdrawal info
Withdraw - Get withdrawal invoice information
(async () => {
const balancesService = new BalancesService('https://jsonplaceholder.typicode.com/', 'dsugsahfdkljhafljkdfhajkldshfad');
const balances = await balancesService.getWithdrawalInvoice();
})();
Returns object object with invoice info
FAQs
SDK for service balances
We found that @plasma-platform/service-balances demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.