Skip to main content
The Accounting API writes bookkeeping data — expenses, bills, invoices, and bill payments — into a connected accounting system (QuickBooks Online, Xero, Sage, Dynamics 365 Business Central, or Odoo) on behalf of your customer.
This is a separate product from the Compliance API (eTIMS), which exists to make Kenyan invoices tax-compliant with KRA. See Which API do I need? if you’re not sure which applies to you. It has its own API keys, base URL and docs: see the eTIMS API tab.

Base URL & authentication

  • Production: https://api.sync2books.com
  • Sandbox: https://sandbox-api.sync2books.com (coming soon)
Every request is authenticated with your API key in the X-API-Key header — see Authentication for the optional request signature too.

Resources at a glance

Almost every write is asynchronous: you get a syncBatchId back immediately, and confirm the outcome via the Sync endpoints — see The sync model.

Response format

Success
Error

Rate limits

  • Standard: 100 requests/minute per API key
  • Burst: up to 200 requests/minute for short bursts
Headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset. See Errors & rate limits for the full model.

SDKs and libraries

  • React — @sync2books/react
  • Vue — @sync2books/vue
  • Angular — @sync2books/angular (coming soon)
  • Svelte — @sync2books/svelte (coming soon)

Endpoints

Every endpoint below is generated from the live OpenAPI spec — expand one, fill in your API key once, and try it directly against production or sandbox.