Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Which query to use for getting a customer's credit balance

Featured Replies

Can someone please steer me in the right direction for getting the current available credits balance of a customer?

I have Credit Memos and Invoices being created in QB Desktop via the plugin and the next step is to apply any balance of available credits or partial payments to an invoice when generating it. I think I figured out how to do that but after looking at Intuits Developers API documentation online I'm not sure how to just request a balance. Is the General Summary Report query where I need to start?

Thanks in advance!

-Kent

Interesting question. GeneralSummaryReport won't have the detail you need, and I don't have a definitive answer on whether a GeneralDetailReport can address this. I suspect it would because it's really flexible, and might well be the answer if you're good at setting up the query and even better at parsing the response. Last time I checked, the plug-in functions that would simplify parsing a General Report response didn't work as expected. If you know how to use xPath filtering, however, the General Reports are amazingly useful and might well fit the bill.

You can't use the CreditMemoQueryRq and ReceivePaymentQueryRq to get you there directly because neither query allows you to filter for a balance—CreditRemaining and UnusedPayment elements, respectively. You could, however, run the CreditMemoQueryRq and ReceivePaymentQueryRq queries and parse the XML response using xPath filtering to identify only the CreditMemos and ReceivePayments where CreditRemaining and UnusedPayment values are > 0. That would have a shorter learning curve than parsing a General Report Response.

Regardless of your method for identifying unused credits and payments, you'd then create a ReceivePaymentModRq or ReceivePaymentAddRq request to applied the ReceivePayment and/or CM ( you can't apply the CM directly, it's done via ReceivePayment ) to the new Invoice(s). Applying payments via the API requires some skilled juggling, as there are potentially a lot of balls in the air—think about discounts, CreditMemos, short pays, etc.

HTH!

Geoffrey Gerhard
Creative Solutions Incorporated
14000 Creekside Drive
Matthews, NC 28105
704.814.6852

  • Author

Thanks Geoffrey, that's very helpful in getting me started. Intuit's QB Desktop API Reference documentation on getting balances is not very helpful.

Cheers! -Kent

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.