/saft-api

Start a REST API based on a SAF-T (Portuguese) XML file to easily query its data.

Primary LanguageJavaScript

saft-api

Start a REST API based on a SAF-T (Portuguese) XML file to easily query its data.

Remarks

Using the tool

# install dependencies
yarn

# Build the src
yarn build

# parse SAFT-T file - checks if valid
#yarn parse -s <file>
yarn parse -s demo-files/SAFT_DEMO_01-01-2018_31-12-2018.xml

# run the server 
yarn serve

Endpoints

Endpoint Description
/Header Company information
/GeneralLedgerEntries Transaction information
/GeneralLedgerAccounts Accounts information
/Customer List of customers
/Supplier List of suppliers
/Product List of products
/TaxTableEntry Tax deduction categories
/SalesInvoicesInfo Aggregated information for invoices
/SalesInvoices List of invoices
/StockMovementsInfo Aggregated informatino for stock movements
/StockMovements List of stock movements

Note: created as a helper tool for a university project, not meant for productions apps.

Contributors

Thanks to