Skip to main content
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
  • Sandbox: https://sandbox-api.sync2books.com (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 sync
  • GET /expenses/{expenseId} - Get a single expense
  • GET /expenses/connection/{connectionId} - Get expenses by connection

Sync

  • GET /sync/batches/{syncBatchId} - Get sync batch status
  • GET /sync/companies/{companyId}/batches - List sync batches for a company
  • POST /sync/batches/{syncBatchId}/retry - Retry failed sync items
  • GET /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 sync
  • GET /bills/{billId} - Get a single bill

Invoices

  • POST /invoices/{connectionId} - Create invoice(s) and queue for sync
  • GET /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 window
  • X-RateLimit-Remaining - Remaining requests in current window
  • X-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


Ready to explore? Visit the Swagger UI to try the API interactively.