Question

I'm trying to figure this out with Intuit's somewhat lacking documentation.

Here is what I have:

  1. Customer purchases something (I create an Invoice) [Adds an amount to AR]
  2. We charge their credit card through an outside process (Not Intuit) (I create a Payment) [Moves the amount from AR to the merchant account]
  3. Customer returns all or part of the thing (I create a credit memo) [removes an amount from AR]

The credit memo creates a credit for the invoice but does not (cannot) reverse the charge in the merchant account. How do I process a return when I am not using Intuit's credit card processing service?

Thanks!

Was it helpful?

Solution

When using the ARCreditCardRefund request with the SDK, you must provide one or more Credit Memo TxnID values to link your refund to.

From the QuickBooks SDK documentation (starts on page 317, has several pages devoted to this topic):

You link this refund to the target credit memo using the RefundAppliedToTxnAdd aggregate.
You must link to at least one of these transactions; you can link to as many as you want.
The TxnID is unique among these transactions, so you don’t (in fact you can’t) specify a
transaction type.

The XML looks something like this:

<RefundAppliedToTxnAdd> <!-- required, may repeat -->
  <TxnID>IDTYPE</TxnID> <!-- required -->
  <RefundAmount>AMTTYPE</RefundAmount> <!-- required -->
</RefundAppliedToTxnAdd>

It's also worth quoting this part of the docs:

The ARAcountRef is also optional. If you omit it, the default Accounts Receivable account is used. Make sure this account matches the ARAccountRef in the credit memo transactions you are linking to.

To expand a bit more on that - if you don't specify the A/R account and the default is not the one your credit memo belongs to, or if you specify an A/R account that's different from the one your credit memo belongs to, you will get an error back indicating that the transaction could not be found. That could very well be what you're running into.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top