Topic: How to correctly add multiple lines to an invoice?

I am trying to add multiple lines to an invoice, but it gives me an incorrect reference number. I am adding multipe lines by reusing this code multiple times, which should not have problems because it sets each important variable to a fresh object each time.

REDACTED, read last post

The API sends back an error (same one) even If I use this code just once. The only thing I changed from the example is removed setUnitPrice() and replaced it with setRate().

Item reference 18 does exist, and it's a service if that makes a difference...

Here's the error:

REDACTED, read last post

Should I use different variables each time?

Thank you!!!

Last edited by andynazay153 (2016-05-13 17:55:48)

Re: How to correctly add multiple lines to an invoice?

Please View > Source in your browser and post the full XML request and XML response.

Re: How to correctly add multiple lines to an invoice?

Here:

REDACTED

Last edited by andynazay153 (2016-05-13 17:55:09)

Re: How to correctly add multiple lines to an invoice?

LOL I spent all day on it yesterday, turns out i forgot to remove the example's customer reference number :facepalm:

You really should make this api foolproof with better errors, or is that controlled by quickbooks?

Thanks for making this, God bless!

Last edited by andynazay153 (2016-05-13 17:56:10)

Re: How to correctly add multiple lines to an invoice?

The errors come directly from Intuit.

Re: How to correctly add multiple lines to an invoice?

Amoxicilline Clavulanate Potassium Tablets Tanning Amoxicillin  effets indesirables levitra Cialis For Sale Usa

Re: How to correctly add multiple lines to an invoice?

Traditional Chinese medicine has also studied the effects of natural compounds to treat allergies and have found out that a compound called FAHF-2 could work. tamoxifen sigma Other studies have shown many different mechanisms of action, ranging from serotonin-like effects to anti-inflammatory effects.

Re: How to correctly add multiple lines to an invoice?

ticagrelor will increase the level or effect of lemborexant by affecting hepatic intestinal enzyme CYP3A4 metabolism tadalafil generic vs cialis FOXO3a localization was evaluated by separation of nuclear and cytosolic proteins, and p21 and p27 overexpression was evaluated in total cell extracts