This project is a sample implementation of a webhook that checks the validity of A-Cube signature.
To run it, first install dependencies with
npm install
Compile Typescript code with
npx tsc
Then start the server with
npm start
The server should now be running on port 3000.
In the /scripts folder you can find some bash scripts to connect to A-CUBE APIs.
To use them copy .env file into .env.local
and change the values as needed.
To run most of these scripts you need to install jq.
There is also a Ruby example that you can run with:
ruby ./scripts/script.rb <a_fiscal_id>
You can find a Python example as well. Run it with:
python3 ./scripts/script.py <a_fiscal_id>