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 writing your code by cloning this project and adjusting the
webhook.js
Use the supporting functions available in the utils directory.
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.