Interactive API Documentation
For the complete, interactive API reference, visit our Swagger UI: 🔗 https://api.sync2books.com/docs The Swagger UI provides:- ✅ Interactive testing - Try API calls directly in your browser
- ✅ Request/response examples - See real examples for each endpoint
- ✅ Schema definitions - Understand request and response formats
- ✅ Authentication - Test with your API key
Base URL
- Production:
https://api.sync2books.com - Sandbox:
https://sandbox-api.sync2books.com(coming soon)
Authentication
All API requests require authentication using theX-API-Key header:
Endpoints Overview
Expenses
POST /expenses/{connectionId}- Create expense(s) and queue for syncGET /expenses/{expenseId}- Get a single expenseGET /expenses/connection/{connectionId}- Get expenses by connection
Sync
GET /sync/batches/{syncBatchId}- Get sync batch statusGET /sync/companies/{companyId}/batches- List sync batches for a companyPOST /sync/batches/{syncBatchId}/retry- Retry failed sync itemsGET /sync/batches/{syncBatchId}/failed-items- Get failed sync items
Attachments
POST /connections/{connectionId}/syncs/{syncId}/transactions/{transactionId}/attachments- Upload attachment
Bills
POST /bills/{connectionId}- Create bill(s) and queue for syncGET /bills/{billId}- Get a single bill
Invoices
POST /invoices/{connectionId}- Create invoice(s) and queue for syncGET /invoices/{invoiceId}- Get a single invoice
Bill Payments
POST /bill-payments/{connectionId}- Create bill payment(s) and queue for sync
Rate Limits
- Standard: 100 requests per minute per API key
- Burst: Up to 200 requests per minute for short bursts
X-RateLimit-Limit- Maximum requests per windowX-RateLimit-Remaining- Remaining requests in current windowX-RateLimit-Reset- Unix timestamp when limit resets
Error Codes
Response Format
Success Response
Error Response
SDKs and Libraries
- React -
@sync2books/react - Vue -
@sync2books/vue - Angular -
@sync2books/angular(coming soon) - Svelte -
@sync2books/svelte(coming soon)
Support
- Email: support@sync2books.com
- Documentation: This GitBook
- Status Page: status.sync2books.com
Ready to explore? Visit the Swagger UI to try the API interactively.