- Access to Datafund's e-racuni.com account
- Admin rights to enable Web Services API
- Log into e-racuni.com
- Go to Nastavitve (Settings) > Nastavitve organizacije (Organization Settings)
- Find Spletne storitve (Web Services) section
- Click Aktiviraj (Activate) to enable Web Services
- Generate a unique Web Services authentication token
You need three credentials:
| Credential | Where to find |
|---|---|
| Username | Your e-racuni user account (or create dedicated API user) |
| Secret Key | API password for the user |
| Organization Token | Generated in Web Services settings |
Add credentials to .datacore/env/.env:
# e-racuni.com API credentials
ERACUNI_USERNAME=your_api_username
ERACUNI_SECRET_KEY=your_secret_key
ERACUNI_ORG_TOKEN=your_organization_token
ERACUNI_ENDPOINT=https://e-racuni.com/WebServicesSI/APImkdir -p 1-datafund/knowledge/accounting/{invoices,payables/pending,payables/paid,vendors,analysis}Run /sync-accounting to verify API connection works.
To include financial summary in your personal /today briefing, add to 0-personal/.datacore/settings.local.yaml:
daily:
include_accounting:
enabled: true
spaces: ["1-datafund"]- Verify username and secret key are correct
- Check organization token matches your database
- Ensure user has appropriate API privileges
- API allows 1 request/second with 4-request burst
- Wait and retry, or use Reporting API for bulk data
- Contact e-racuni admin to activate Web Services
- Generate new organization token after activation
- Developer Panel: https://e-racuni.com/obracuni/developer
- API Reference: https://e-racuni.com/obracuni/ApiDocumentation
- Slovenian endpoint: https://e-racuni.com/WebServicesSI/API