Sync MySQL payments to QuickBooks customers and receipts

DatabaseAccountingRecipe Tools

What it does

When a new or updated row appears in a MySQL payments table, this automation searches QuickBooks for that customer. It creates or updates the customer, then builds a sales receipt with line items from the table data.

Who it's for

Accounting teams who sync payment records from MySQL to QuickBooks without manual entry.

Apps used

How teams use this

Automate customer and receipt creation

New payment rows in MySQL automatically create customers and sales receipts in QuickBooks with line items, eliminating manual data entry and keeping both systems in sync.

Update existing customer records

When a payment row is updated in MySQL, the automation finds the existing QuickBooks customer and refreshes the record instead of creating a duplicate.

Add custom line item filtering

Extend the automation to filter items by category or status before adding them to the sales receipt, so only relevant line items are included in QuickBooks.

Sync payments from other MySQL tables

Retarget this automation to monitor a different MySQL payments table by changing the table name, keeping the same customer and receipt creation logic.

How it works

  1. Monitor the payments table. A new row is added or an existing row is updated in the view_active_payments_afstlouis table in MySQL.
  2. Search for the customer. Search QuickBooks for a customer matching the display name from the MySQL row so the right record is found or created.
  3. Create or update the customer. If the customer does not exist, create it in QuickBooks. If it does exist, update the record with the latest data from MySQL.
  4. Build and create the sales receipt. Loop through each item in the MySQL row, search QuickBooks for matching items, accumulate them into a line items list, then create the sales receipt with all line items.