API Reference
Complete API reference with interactive examples.
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/v1Sandbox:
https://sandbox-api.sync2books.com/v1(coming soon)
Authentication
All API requests require authentication using the X-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
Rate limit headers:
X-RateLimit-Limit- Maximum requests per windowX-RateLimit-Remaining- Remaining requests in current windowX-RateLimit-Reset- Unix timestamp when limit resets
Error Codes
200
Success
201
Created
400
Bad Request (validation error)
401
Unauthorized (invalid API key)
404
Not Found
429
Too Many Requests (rate limit exceeded)
500
Internal Server Error
Response Format
Success Response
Error Response
SDKs and Libraries
React -
@sync2books/reactVue -
@sync2books/vueAngular -
@sync2books/angular(coming soon)Svelte -
@sync2books/svelte(coming soon)
Support
Email: [email protected]
Documentation: This GitBook
Status Page: status.sync2books.com
Ready to explore? Visit the Swagger UI to try the API interactively.
Last updated