merit-aktiva
v0.1.6
Published
Merit Aktiva accounting software API wrapper
Downloads
35
Readme
Merit Aktiva Node.js Library
An unofficial Node.js API wrapper for Merit Aktiva
accounting software written in TypeScript
. Provides convenient typesafe access to the Merit Aktiva API from applications written in server-side JavaScript.
Progress on library
When the Library exposes tooling for ALL Merit Aktiva API endpoints, the version will be bumped to 1.0.0
This is the list of endpoints not yet included in the package:
- ~~Authentication~~
- Sales Invoices
- ~~Get list of sales invoices~~
- ~~Get sales invoice details~~
- ~~Delete Invoice~~
- Create Sales Invoice
- ~~Create Sales Invoice~~
- Create Sales Invoice with multiple payments
- Create Sales Invoice of Estonian e-invoice standard 1.2
- Send Sales Invoice by e-mail
- Send Sales Invoice as e-invoice
- Get Sales Invoice PDF
- Create Credit Invoice
- Sales Offers
- Get List of Sales Offers
- Create Sales Offer
- Set Offer status
- Create Invoice from SalesOffer
- Get sales offer details
- Update sales offer
- Recurring Invoices
- Create Recurring Invoice
- Get Recurring Invoices clients address list
- Send Indication Values
- Get list of Recurring Invoices
- Get Recurring Invoice details
- Purchase Invoices
- Get list of purchase invoices
- Get purchase invoice details
- Delete Purchase Invoice
- Create Purchase Invoice
- Create Purchase Invoice Waiting Approval
- Create Purchase Invoice Wating Approval of Estonian e-invoice standard 1.2
- Inventory Movements
- Get list of locations
- Send Inventory Movements
- Get List of Inventory Movements
- Payments
- List of Payments
- List of Payment Types
- Create Payment of sales invoice
- Create Payment of purchase invoice
- Create Payment of sales offer
- Create payment of sales offer
- Delete Payment
- Bank statement import
- Send Settlement
- General Ledger Transactions
- Creating General Ledger Transactions
- Get list of GL Transactions
- Getting GL Transaction Details
- Getting GL Transactions Full Details
- Fixed asset
- List Fixed asset locations
- Responsible employee list
- Send Fixed assets
- Get Fixed assets
- ~~Tax list~~
- Send Tax
- Customers
- ~~Get Customer List~~
- ~~Create Customer~~
- ~~Update Customer~~
- Create Customergroup
- Get Customergroups
- Vendors
- Get Vendor List
- Create Vendor
- Update Vendor
- Create Vendorgroup
- Get Vendorgroup List
- Accounts List
- Project List
- Cost Centers List
- Dimensions
- Get Dimensions List
- Add Dimensions
- Add Dimensions values
- Departments List
- Sales prices and discounts
- Send prices
- Send discounts
- Get prices
- Get discounts
- Get Price
- Units of Measure
- Units of Measure List
- Send units of measure
- Banks List
- Financial Years
- Items
- ~~Item List~~
- Item Groups
- Add Items
- Add Item groups
- Update Item
- Reports
- Customer Debts Report
- Customer Payment Report
- Statement of Profit or Loss
- Statement of Financial Position
- Get Inventory Report
- Sales Report
- Purchase Report
Installation
Install the package with:
npm install merit-aktiva
or
pnpm install merit-aktiva
Usage
This package needs to be configured with a companies Merit API id and key
import merit, {type MeritConfig, type CreateSalesInvoiceParams} from "merit-aktiva";
const config : MeritConfig = {
apiId: "...",
apiKey: "...",
};
const aktiva = merit(config);
const payload: CreateSalesInvoiceParams = {
//...
};
const response = await aktiva.createSalesInvoice(payload)
console.log(response.InvoiceId)
Release History
See CHANGELOG.md
for more information.
License
Distributed under the MIT license. See LICENSE.md
for more information.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request