I'm working in QBXML and trying to apply a payment to specific invoice in a ReceivePaymentAddRq. I'm getting the, apparently quite common, "Object TxnID specified in the request cannot be found". Most other forums threads on this topic are resolved once the ARAccountRef field is added to the request, that didn't seem to make a difference for me.
I've queried the invoice for TxnID 68B4-1290718970 and verified the following:
My request's ARAccountRef ListID matches what is in the QueryRet
My request's CustomerRef ListID matches what is in the QueryRet
My XML request is below. What am I missing?
Thanks
<QBXML>
<QBXMLMsgsRq onError = "continueOnError">
<ReceivePaymentAddRq requestID = "0">
<ReceivePaymentAdd>
<CustomerRef>
<ListID>80000111-1286514304</ListID>
</CustomerRef>
<ARAccountRef>
<ListID>80000091-1273734429</ListID>
</ARAccountRef>
<TxnDate>2010-11-10</TxnDate>
<RefNumber>2999 </RefNumber>
<TotalAmount>15.95</TotalAmount>
<PaymentMethodRef>
<ListID>80000002-1273560098</ListID>
</PaymentMethodRef>
<Memo>_32T0DE94J</Memo>
<DepositToAccountRef>
<ListID>80000090-1273734138</ListID>
</DepositToAccountRef>
<AppliedToTxnAdd>
<TxnID>68B4-1290718970</TxnID>
<PaymentAmount>15.95</PaymentAmount>
</AppliedToTxnAdd>
</ReceivePaymentAdd>
</ReceivePaymentAddRq>
</QBXMLMsgsRq>
</QBXML>
For anyone else's reference, the question was already answered over here:
https://idnforums.intuit.com/messageview.aspx?catid=7&threadid=14923&enterthread=y
Updated answer now that Intuit have taken down their own forums:
There are a couple of common reasons for the error you're seeing:
The object you're referring to (68B4-1290718970) might not exist. Are you 100% positive this transaction exists?
The object you're referring to might not be something you can apply a payment to. You apply payments to Invoices. Is the object you're referring to an invoice?
The object you're referring to might not have the same currency that the payment has. Are you using multi-currency with QuickBooks, and do the currencies match?
The object you're referring to may not have a matching A/R account with the payment. This is especially common if you have multiple A/R accounts in QuickBooks, and you're not explicitly specifying which A/R account to use when creating the invoice or payment. Do the A/R accounts for the invoice and the payment match?
The object that you're referring to might not have an open balance (e.g. it might already be paid). Does the object that you're referring to have a balance of at least 15.95? (the amount you tried to apply)
Related
I am using PHP and trying to integrate webconnector to synchronize my item details with Quickbooks destop.
What I don't understand is that how to map an Item that is already in Quickbooks to the same Item that I am trying to update from my Website. I don't have the Reference number of any of the Items that are already present in the Quickbooks.
One solution that I can think of it to delete all the existing record and then add them again so you will get there reference number in return. But this is not feasible.
QuickBooks for Windows has a dual primary key system, where you can refer to objects by either FullName, or by ListID.
So, something like this is perfectly valid when creating an invoice, and requires no ListID values to be present:
<InvoiceLineAdd>
...
<ItemRef>
<FullName>Your Item Name Here</FullName>
</ItemRef>
...
</InvoiceLineAdd>
You can also do an ItemQuery at any time to get the ListIDs for anything you don't already have. e.g. do this to get all of your item ListID and FullName values from your existing items:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="7.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<ItemQueryRq requestID="SXRlbVF1ZXJ5fDEyMA==" >
</ItemQueryRq>
</QBXMLMsgsRq>
</QBXML>
Soooo...
I don't have the Reference number of any of the Items that are already present in the Quickbooks.
You don't need them... but if you really do want to use them, do a query to get them.
One solution that I can think of it to delete all the existing record and then add them again so you will get there reference number in return.
Good golly no! Query for them! Or don't even use the ListID, and use the FullName instead.
I'm new here, so please bear with me if I am posting to the wrong place.
When using the OAuth console, I am not able to retrieve all the fields under 'Honors & Awards' (URL: http://api.linkedin.com/v1/people/~/honor-awards). It appears I am only able to retrieve the id, name and issuer attributes.
<honors-awards total="2">
<honor-award>
<id>2</id>
<name>Test Honors</name>
<issuer>体育爱好者协会</issuer>
</honor-award>
<honor-award>
<id>3</id>
<name>Test Honors2</name>
<issuer>TS</issuer>
</honor-award>
</honors-awards>
Also, under the profile fields documentations, certifications appears to have 6 attributes in total, but when returning the XML when using http://api.linkedin.com/v1/people/~/certifications as the URL in the OAuth console, it only returns the following:
<certifications total="1">
<certification>
<id>4</id>
<name>Test Certification</name>
</certification>
</certifications>
Might there be something wrong that I am doing? Any comment would be greatly appreciated. Thanks!
I had the same problem. For some reason you have to specify fields for all the children of some collections. See examples of getting the syntax here:
How to Retrieve all possible information about a LinkedIn Account
If you use the JS API, it will be specified in the .fields such as:
.fields(["id", "firstName", "lastName", "certifications:(id,name,authority:(name),number,start-date,end-date)"])
I'm trying to figure this out with Intuit's somewhat lacking documentation.
Here is what I have:
Customer purchases something (I create an Invoice) [Adds an amount to AR]
We charge their credit card through an outside process (Not Intuit) (I create a Payment) [Moves the amount from AR to the merchant account]
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!
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.
I've gotten frustrated with the .NET DevKit and am now considering switching my app over to XML. But I'm still having trouble figuring out how to perform very basic queries.
How can I retrieve a QBD Sales Order by the order number? This is the "Sales Order Number" in the QBD UI, "RefNumber" in the SDK, and "DocNumber" in IPP.
Just in case somebody needs me to explain the use case for looking up a record by the human-readable unique ID: I'm integrating with a system where we don't have the luxury of storing a QB transaction ID after importing a sales order. So if that system wants to query QB later to check the status of a sales order, it needs to do so by that system's unique order #.
I already have links to all the documentation; thanks. I just need to know how to perform this query. Similarly, I need to do it for Invoices and POs.
I need the same thing for Items, the use case being that if we're importing items from another system, we need to query the QB item list by name to see if we already have that item in QB.
For ITEMS, you can use ItemConsolidated and a NameContains filter. For example, the XML would look something like:
POST https://services.intuit.com/sb/itemconsolidated/v2/<realmID>
...
<?xml version="1.0" encoding="UTF-8"?>
<ItemConsolidatedQuery xmlns="http://www.intuit.com/sb/cdm/v2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.intuit.com/sb/cdm/v2 RestDataFilter.xsd ">
<NameContains>Your item name goes here</NameContains>
</ItemConsolidatedQuery>
It won't be perfect, because Intuit only supports "NameContains" (the item name contains the string you specify) rather than "NameEquals", but you can then loop through what you get back and filter it client-side from there.
For SALES ORDERS, unfortunately, Intuit Data Services doesn't support querying by DocNumber at this time.
Instead, a work-around for your situation might be to query for all sales orders, and then cache the Id and DocNumber value of each in your application. When you need to look something up, look up the Id in the cache, and then query by Id value. It's not pretty... but it's really the only way you can do what you're describing.
I write a code to integrate a shopping cart with quickbooks, using quickbooks web connector. The problem is when i try to find out if there is a customer in quickbooks filtered by name and email. I tried with this:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="9.0"?>
<QBXML>
<QBXMLMsgsRq onError="continueOnError">
<CustomerQueryRq>
<FullName>Mladen Petrov</FullName>
<Email>bksi#abf.cd</Email>
</CustomerQueryRq>
</QBXMLMsgsRq>
</QBXML>
But it returned me an error. Is there a way to find quickbooks customer by Name and email, or i have to get all the QB customers and somehow store them to my db with their QB ids?
Quickbooks isn't terribly robust on finding customers. The only filter that exists, really, is name. There are some where you can find users by various things on their invoices but little on their actual data you would expect (address, email, etc). So what you do is search on name and loop through the full result list to find the record you want. Not efficient but it works. There is a way to paginate the results so you don't kill your machine chewing through dozens of results.
There's an older writeup of how to paginate your results here
http://www.consolibyte.com/wiki/doku.php/quickbooks_qbxml_customerquery_with_iterators
Be sure to consult the OSR on what fields are supported. Email is not a defined field for that type of request.
https://static.developer.intuit.com/qbSDK-current/common/newosr/index.html
Fullname yes, email address no.
You will need to pull the full or filtered list and parse through it looking for the email address.
Thanks guys. I found another usable solution:
In the field FullName i put FullName (Email). That way i have unique user by full name and email. Other fields (First, Last Name and Contact are filled properly).
But just be sure that fullName + email are below 41 chars (this is the field limit).
Looks like you can search by email address now: "Select * From Customer Where PrimaryEmailAddr = 'email#example.com'"
This is based on API v3
Is it easy to use Name filter or NameRange Filter to query the customer with their unique customer name
"<NameFilter> <!-- optional -->
<!-- MatchCriterion may have one of the following values: StartsWith, Contains, EndsWith -->
<MatchCriterion >ENUMTYPE</MatchCriterion> <!-- required -->
<Name >STRTYPE</Name> <!-- required -->
</NameFilter>
<!-- OR -->
<NameRangeFilter> <!-- optional -->
<FromName >STRTYPE</FromName> <!-- optional -->
<ToName >STRTYPE</ToName> <!-- optional -->
</NameRangeFilter>"
Example:
"
StartsWith
MladenPetrov
Mladen Petrov
"
In the reponse check with the email id is it correct or not
..