ERP & Accounting Integration
Guide
Connect Glance with your ERP or accounting system to keep financial data synchronized.
Data Export
Use the Reports API to export financial data:
POST /reports/income— Revenue and expense summaryPOST /reports/expenses— Detailed expense reportPOST /reports/documents— All document data for a periodPOST /reports/maam— VAT report for tax filing
Custom Fields for Mapping
Use Custom Fields to store ERP-specific IDs on clients and products:
{
"name": "ERP Customer ID",
"type": "TEXT",
"entityTypes": [
"ENTITIES"
],
"isRequired": false
}Sync Strategy
Poll the change feed rather than a date range. A date window re-reads everything in it on every pass and still misses a document that was cancelled or settled without its date moving:
- Call
GET /documentswithupdatedSinceonce, then follow thecursorit returns on every pass after that — see Incremental Sync - Match documents to your ERP records by
externalId— set it to your own id when you create the document, and look it back up withGET /documents/by-external-id/:externalId - Send an
Idempotency-Keyon every create, so a retry after a timeout cannot issue a second document - Use
GET /settingsfor the VAT rate and company details - Use the Reports API for period-end reconciliation
Or skip the polling. Subscribe to
document.created and document.status_changed and let Glance push the changes to you — see Webhooks. Keep the cursor sweep as a backstop for anything a failed delivery dropped.