Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.12 KB

README.md

File metadata and controls

26 lines (21 loc) · 1.12 KB

Example NodeJS Rossum Webhook

Example Rossum webhook that implements a simple check. It parses annotation structure and extracts field values (amount_total_tax and tax_detail_tax). Then it checks that values match and returns a warning message if not.

An example annotation also used for testing:

test/data/sample-data.json

Start

Start writing your code by cloning this project and adjusting the

webhook.js

Use the supporting functions available in the utils directory.

Webhook setup

You can find more information about webhooks at our Developer Hub. To set the webhook up, use the attached Dockerfile and our guide. You can also configure a Rossum queue to use the webhook via UI or using our API. Or you can use elisctl tool as described in the guide.

To use the webhook for production, run via HTTPS using, for example, Nginx proxy with Let's encrypt TLS/SSL certificate.