Sync Transactions
Overview
Sync lifecycle
┌─────────────┐
│ PENDING │ ← Expense created, waiting to sync
└──────┬──────┘
│
▼
┌─────────────┐
│ PROCESSING │ ← Currently syncing to accounting system
└──────┬──────┘
│
├─────────▶ ┌─────────────┐
│ │ SUCCESS │ ← Synced successfully
│ └──────────────┘
│
└─────────▶ ┌─────────────┐
│ FAILED │ ← Sync failed (can retry)
└──────────────┘Getting sync batch status
Endpoint
Request
Response
Batch status values
Status
Description
Item status values
Status
Description
Listing sync batches
Get all batches for a company
Query parameters
Example
Response
Handling failed syncs
Get failed items
Example
Response
Retry failed items
Request body
Example
Response
Polling strategy
Recommended approach
Example implementation (JavaScript)
Webhooks
Common error messages
Error Message
Cause
Solution
Best practices
Read next
Last updated