Guide for the integration developer
Connect your own software to Hesabu ERP safely, using API keys and webhooks.
Your role
You build connections between Hesabu ERP and other systems, such as a website, an app or accounting tools, without risking the live data.
Before you start
- Agree with the administrator what the integration must do, and which records it reads or writes.
- Ask support whether the workspace has a test copy you can use. Do not experiment on the live data.
Get access
- Ask the administrator to create a dedicated user for the integration, with only the roles it needs. See Permissions and restricting access.
- On that user, generate the API key and secret, and store them in a secrets manager or environment variable. See API keys and webhooks.
- Send
Authorization: token <api_key>:<api_secret>with each request, over HTTPS.
Build and test
- Start with read-only calls to confirm access.
- Test creating and updating records with test documents, and delete them after.
- For events leaving Hesabu ERP, use Webhooks, and check the Webhook Request Log.
- Handle errors and timeouts, and retry safely, so a document is not created twice.
Go live
- Review the integration with the administrator.
- Set up monitoring. Check the Error Log now and then. See Backups, logs and security.
- Document what it does, who owns it and how to turn it off.
Security
- Never put keys in front-end code or in a shared chat.
- Regenerate keys if they may have leaked, and when a project ends.
- Do not send more data than the other system needs.
Payments
For online payments, ask support which gateway setup is prepared for your workspace before building your own. See Payment gateways.
Who to ask
The administrator for users and keys, and Hesabu ERP support for anything on the server side.