0.1.0 • Published 3 years ago

node-eposnow v0.1.0

Weekly downloads
183
License
MIT
Repository
-
Last release
3 years ago

NPM version

node-eposnow

Simple Node.js wrapper for EPOSNOW API.

Getting Started

Installation


npm install node-eposnow

Setup

Basically require node-eposnow and create a new instance with new NodeEPOSNow().

If you already have your token, then you can create instance using new NodeEPOSNow(accessToken) OR you can set token using eposnow.setAccessToken(accessToken).

Example


const NodeEPOSNow = require("node-eposnow");
..
const eposnow = new NodeEPOSNow(accessToken);
// OR
const eposnow = new NodeEPOSNow();
eposnow.setAccessToken(accessToken);
const brands = await eposnow.v4.brand.list();
..

Pagination

Each LIST request supports 200 response items per page. You can retrieve next page with passing an object includes 'page' key.

Example


const brands = await eposnow.v4.brand.list({page: 2});
..

Available Functions

EndpointFunctionUsageDetail
Authenticationauthenticate(api_key, api_secret)Detail
v2/TransactionLISTv2.transaction.list()Detail
v2/TransactionGETv2.transaction.get(Id)Detail
v2/TransactionCREATEv2.transaction.create(body)Detail
v2/TransactionUPDATEv2.transaction.update(body)Detail
v2/TransactionDELETEv2.transaction.delete(body)Detail
v2/TransactionItemLISTv2.transactionitem.list()Detail
v2/TransactionItemGETv2.transactionitem.get(Id)Detail
v2/TransactionItemCREATEv2.transactionitem.create(body)Detail
v2/TransactionItemUPDATEv2.transactionitem.update(body)Detail
v2/TransactionItemDELETEv2.transactionitem.delete(body)Detail
v4/BrandLISTv4.brand.list()Detail
v4/BrandGETv4.brand.get(Id)Detail
v4/BrandCREATEv4.brand.create(body)Detail
v4/BrandUPDATEv4.brand.update(body)Detail
v4/BrandDELETEv4.brand.delete(body)Detail
v4/CategoryLISTv4.category.list()Detail
v4/CategoryGETv4.category.get(Id)Detail
v4/CategoryCREATEv4.category.create(body)Detail
v4/CategoryUPDATEv4.category.update(body)Detail
v4/CategoryDELETEv4.category.delete(body)Detail
v4/CategoryReferenceCodeLISTv4.categoryreferencecode.list()Detail
v4/CategoryReferenceCodeGETv4.categoryreferencecode.get(Id)Detail
v4/CategoryReferenceCodeCREATEv4.categoryreferencecode.create(body)Detail
v4/CategoryReferenceCodeUPDATEv4.categoryreferencecode.update(body)Detail
v4/CategoryReferenceCodeDELETEv4.categoryreferencecode.delete(body)Detail
v4/ColourLISTv4.colour.list()Detail
v4/ColourGETv4.colour.get(Id)Detail
v4/LocationLISTv4.location.list()Detail
v4/LocationGETv4.location.get(Id)Detail
v4/MultipleChoiceNoteLISTv4.multiplechoicenote.list()Detail
v4/MultipleChoiceNoteGETv4.multiplechoicenote.get(Id)Detail
v4/MultipleChoiceProductLISTv4.multiplechoiceproduct.list()Detail
v4/MultipleChoiceProductGETv4.multiplechoiceproduct.get(Id)Detail
v4/MultipleChoiceProductCREATEv4.multiplechoiceproduct.create(body)Detail
v4/MultipleChoiceProductUPDATEv4.multiplechoiceproduct.update(body)Detail
v4/MultipleChoiceProductDELETEv4.multiplechoiceproduct.delete(body)Detail
v4/MultipleChoiceProduct/GroupLISTv4.multiplechoiceproductgroup.list()Detail
v4/MultipleChoiceProduct/GroupGETv4.multiplechoiceproductgroup.get(Id)Detail
v4/MultipleChoiceProduct/GroupCREATEv4.multiplechoiceproductgroup.create(body)Detail
v4/MultipleChoiceProduct/GroupUPDATEv4.multiplechoiceproductgroup.update(body)Detail
v4/MultipleChoiceProduct/GroupDELETEv4.multiplechoiceproductgroup.delete(body)Detail
v4/PopupNoteLISTv4.popupnote.list()Detail
v4/PopupNoteGETv4.popupnote.get(Id)Detail
v4/PopupNoteCREATEv4.popupnote.create(body)Detail
v4/PopupNoteUPDATEv4.popupnote.update(body)Detail
v4/PopupNoteDELETEv4.popupnote.delete(body)Detail
v4/ProductLISTv4.product.list()Detail
v4/ProductGETv4.product.get(Id)Detail
v4/ProductCREATEv4.product.create(body)Detail
v4/ProductUPDATEv4.product.update(body)Detail
v4/ProductDELETEv4.product.delete(body)Detail
v4/ProductCompositionLISTv4.productcomposition.list()Detail
v4/ProductCompositionGETv4.productcomposition.get(Id)Detail
v4/ProductCompositionCREATEv4.productcomposition.create(body)Detail
v4/ProductCompositionUPDATEv4.productcomposition.update(body)Detail
v4/ProductCompositionDELETEv4.productcomposition.delete(body)Detail
v4/TagLISTv4.tag.list()Detail
v4/TagGETv4.tag.get(Id)Detail
v4/TagCREATEv4.tag.create(body)Detail
v4/TagUPDATEv4.tag.update(body)Detail
v4/TagDELETEv4.tag.delete(body)Detail
v4/CustomerAddressLISTv4.customeraddress.list()Detail
v4/CustomerAddressGETv4.customeraddress.get(Id)Detail
v4/CustomerAddressCREATEv4.customeraddress.create(body)Detail
v4/CustomerAddressUPDATEv4.customeraddress.update(body)Detail
v4/CustomerAddressDELETEv4.customeraddress.delete(body)Detail
v4/CustomerLISTv4.customer.list()Detail
v4/CustomerGETv4.customer.get(Id)Detail
v4/CustomerCREATEv4.customer.create(body)Detail
v4/CustomerUPDATEv4.customer.update(body)Detail
v4/CustomerDELETEv4.customer.delete(body)Detail
v4/Customer/GetByEmailGETv4.customer.get(email=)Detail
v4/CustomerPointsCREATEv4.customerpoints.create(body)Detail
v4/CustomerReferenceCodeLISTv4.customerreferencecode.list()Detail
v4/CustomerReferenceCodeGETv4.customerreferencecode.get(Id)Detail
v4/CustomerReferenceCodeCREATEv4.customerreferencecode.create(body)Detail
v4/CustomerReferenceCodeUPDATEv4.customerreferencecode.update(body)Detail
v4/CustomerReferenceCodeDELETEv4.customerreferencecode.delete(body)Detail
v4/DiscountReasonLISTv4.discountreason.list()Detail
v4/DiscountReasonGETv4.discountreason.get(Id)Detail
v4/DiscountReasonCREATEv4.discountreason.create(body)Detail
v4/DiscountReasonUPDATEv4.discountreason.update(body)Detail
v4/DiscountReasonDELETEv4.discountreason.delete(body)Detail
v4/Report/AverageProductSalesLISTv4.reportaverageproductsales.list()Detail
v4/Report/AverageProductSalesGETv4.reportaverageproductsales.get(Id)Detail
v4/Report/AverageProductSalesCREATEv4.reportaverageproductsales.create(body)Detail
v4/Report/AverageProductSalesUPDATEv4.reportaverageproductsales.update(body)Detail
v4/Report/AverageProductSalesDELETEv4.reportaverageproductsales.delete(body)Detail
v4/RefundReasonLISTv4.refundreason.list()Detail
v4/RefundReasonGETv4.refundreason.get(Id)Detail
v4/RefundReasonCREATEv4.refundreason.create(body)Detail
v4/RefundReasonUPDATEv4.refundreason.update(body)Detail
v4/RefundReasonDELETEv4.refundreason.delete(body)Detail
v4/TaxGroupLISTv4.taxgroup.list()Detail
v4/TaxGroupGETv4.taxgroup.get(Id)Detail
v4/TaxGroupCREATEv4.taxgroup.create(body)Detail
v4/TaxGroupUPDATEv4.taxgroup.update(body)Detail
v4/TaxGroupDELETEv4.taxgroup.delete(body)Detail
v4/TenderTypeLISTv4.tendertype.list()Detail
v4/TenderTypeGETv4.tendertype.get(Id)Detail
v4/TenderTypeCREATEv4.tendertype.create(body)Detail
v4/TransactionLISTv4.transaction.list()Detail
v4/TransactionGETv4.transaction.get(Id)Detail
v4/TransactionCREATEv4.transaction.create(body)Detail
v4/TransactionUPDATEv4.transaction.update(body)Detail
v4/TransactionDELETEv4.transaction.delete(body)Detail
v4/TransactionReferenceCodeLISTv4.transactionreferencecode.list()Detail
v4/TransactionReferenceCodeGETv4.transactionreferencecode.get(Id)Detail
v4/TransactionReferenceCodeCREATEv4.transactionreferencecode.create(body)Detail
v4/TransactionReferenceCodeUPDATEv4.transactionreferencecode.update(body)Detail
v4/TransactionReferenceCodeDELETEv4.transactionreferencecode.delete(body)Detail
v4/RoleLISTv4.role.list()Detail
v4/RoleGETv4.role.get(Id)Detail
v4/StaffLISTv4.staff.list()Detail
v4/StaffGETv4.staff.get(Id)Detail
v4/StaffCREATEv4.staff.create(body)Detail
v4/StaffUPDATEv4.staff.update(body)Detail
v4/StaffDELETEv4.staff.delete(body)Detail
v4/StaffReferenceCodeLISTv4.staffreferencecode.list()Detail
v4/StaffReferenceCodeGETv4.staffreferencecode.get(Id)Detail
v4/StaffReferenceCodeCREATEv4.staffreferencecode.create(body)Detail
v4/StaffReferenceCodeUPDATEv4.staffreferencecode.update(body)Detail
v4/StaffReferenceCodeDELETEv4.staffreferencecode.delete(body)Detail
v4/TablePlanLISTv4.tableplan.list()Detail
v4/TablePlanGETv4.tableplan.get(Id)Detail

Contributing

If you want to contribute to a project and make it better, your help is very welcome.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

0.1.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

4 years ago

0.0.2

5 years ago

0.0.1

5 years ago