Overview
When implementing your Expenses solution, you need to:- Create a company - Represent your SMB customer in Sync2Books
- Create an accounting connection - Connect to your customer’s accounting software
- Configure expense mapping - Set up default accounts, suppliers, and tax rates
- Create expense transactions - Submit expenses for sync
- Monitor sync status - Track the sync process and handle any errors
Prerequisites
Before you begin, ensure you have:- ✅ API Key — your application’s API key from the Sync2Books Dashboard. Getting and using your key (and the optional request signature) is covered once in Authentication.
- ✅ Access to accounting software — your customer’s QuickBooks, Xero, or Sage account credentials.
Authentication, the company/connection object model, and the asynchronous sync flow
are shared across every Sync2Books product. If you haven’t already, skim
Core concepts — this guide builds directly on it.
Step 1: Create a company
Within Expenses, a company represents your SMB customer that manages their expenses using your application. To create it, use our Create company endpoint. It returns a JSON response containing the companyid. You will use this id to establish a connection to an accounting software.
Request
Response
Step 2: Create accounting connection
Next, use the authorization URL returned when creating a company to connect the company to an accounting data source via one of our integrations. This will allow you to synchronize data with that source.QuickBooks Online
- Open the
authUrlfrom the company creation response in a browser - Complete the OAuth authorization flow with QuickBooks
- After authorization, the connection is automatically created
Response
Step 3: Configure expense mapping (optional)
Before creating expenses, you can configure default mappings at the company level. This ensures expenses are automatically categorized correctly even if specific references are omitted.Request
Step 4: Create your first expense
Now that you have a company and connection set up, you can create expense transactions:Request
Response
syncBatchId that you can use to monitor the sync status.
Step 5: Monitor sync status
Use thesyncBatchId to monitor the sync progress:
Request
Response
Recap
You have created the structure of key objects required by Sync2Books Expenses: a company and its connection to an accounting data source. You’ve also created and synced your first expense transaction.Read next
- Configure customer - Learn how to set up companies and connections
- Map transactions - Configure expense mapping preferences
- Create transactions - Learn how to create expense transactions
- Sync transactions - Understand the sync process
- Upload receipts - Attach files to expenses