Your user authorizes your application to access their accounting service (e.g., QuickBooks Online, NetSuite) via an OAuth or similar authorization flow through Merge Link.
The following steps will cover the business logic you will need to configure in your backend to interact with Merge’s Unified API. “Settings” or “Master” data refers to all information related to vendors, accounts, and (in some cases) tracking categories. To do this, we will access four endpoints:
classification and parent_account fields to compile account types and hierarchy!Retrieve all transactions in your customer’s ERP/Accounting platform related to spend by compiling data from the below endpoints:
type query param = ACCOUNTS_PAYABLE to filter to only bills.Using the transactions retrieved in the prior step, you’ll be able to paint a full picture of your customer’s spend. You’ll be able to aggregate by Date, General Ledger Account, Vendor, Class, Department, Location, and more.
After the initial pull of data, you’ll need to keep your data up to date by regularly fetching data from Merge. The modified_after query parameter can be utilized on all of Merge’s GET endpoints to keep these subsequent processes more efficient. For a full overview of Merge’s syncing best practices, see our guide here!
Webhooks can be utilized to make this process more efficient.