IPP QBO UK v3 - Trouble adding Journal Entry with TaxCodeRef - intuit-partner-platform

Trying to get a journal entry to save in QBO UK using TaxCodeRef but keep getting the same error message back. I have set the TaxApplicableOn correctly. I did a query of a manually entered journal entry and it shows the element TaxAmount however I don't know this value at runtime. How can I get a journal entry to save when setting a TaxCodeRef?
Here's my XML request and response.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<outgoing><?xml version="1.0" encoding="UTF-8"?>
<JournalEntry xmlns:ns2="http://www.intuit.com/sb/cdm/qbo" xmlns="http://schema.intuit.com/finance/v3">
<TxnDate>2014-03-05</TxnDate>
<PrivateNote>Invoice</PrivateNote>
<DocNumber>102</DocNumber>
<Adjustment>false</Adjustment>
<Line>
<Desc>Credit Sales</Desc>
<Amount>150</Amount>
<DetailType>JournalEntryLineDetail</DetailType>
<JournalEntryLineDetail>
<PostingType>Credit</PostingType>
<AccountRef>1</AccountRef>
<ClassRef></ClassRef>
<DepartmentRef></DepartmentRef>
<BillableStatus></BillableStatus>
<TaxCodeRef>3</TaxCodeRef>
<TaxApplicableOn>Credit</TaxApplicableOn>
</JournalEntryLineDetail>
</Line>
<Line>
<Desc>Debit Accounts Receivable</Desc>
<Amount>150.00</Amount>
<DetailType>JournalEntryLineDetail</DetailType>
<JournalEntryLineDetail>
<PostingType>Debit</PostingType>
<Entity>
<Type>Customer</Type>
<EntityRef>21</EntityRef>
</Entity>
<AccountRef>52</AccountRef>
<ClassRef></ClassRef>
<DepartmentRef></DepartmentRef>
<BillableStatus></BillableStatus>
<TaxCodeRef>3</TaxCodeRef>
<TaxApplicableOn>Debit</TaxApplicableOn>
</JournalEntryLineDetail>
</Line>
</JournalEntry>
</outgoing>
<returns><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<IntuitResponse xmlns="http://schema.intuit.com/finance/v3" time="2014-03-17T07:21:39.545-07:00">
<Fault type="ValidationFault">
<Error code="2270" element="TaxApplicableOn">
<Message>TaxApplicableon missing or invalid</Message>
<Detail>TaxApplicableOn null is required and valid values are Credit or Debit</Detail>
</Error>
<Error code="2270" element="TaxApplicableOn">
<Message>TaxApplicableon missing or invalid</Message>
<Detail>TaxApplicableOn null is required and valid values are Credit or Debit</Detail>
</Error>
</Fault>
</IntuitResponse>
</returns>

I created a Journal Entry from QBO UI and selected Sales Check box on the line item.
Here is the response.
Looks like the error message is wrong. Valid value is Sales or Purchase(if Sales box is not selected). Let me get some more details around this.
<JournalEntry domain="QBO" sparse="false">
<Id>29</Id>
<SyncToken>0</SyncToken>
<MetaData>
<CreateTime>2014-03-17T22:29:18-07:00</CreateTime>
<LastUpdatedTime>2014-03-17T22:29:18-07:00</LastUpdatedTime>
</MetaData>
<DocNumber>DocNu2</DocNumber>
<TxnDate>2014-03-18</TxnDate>
<CurrencyRef name="British Pound Sterling">GBP</CurrencyRef>
<ExchangeRate>1</ExchangeRate>
<Line>
<Id>0</Id>
<Description>ff</Description>
<Amount>24.00</Amount>
<DetailType>JournalEntryLineDetail</DetailType>
<JournalEntryLineDetail>
<PostingType>Debit</PostingType>
<Entity>
<Type>Customer</Type>
<EntityRef name="toto">1</EntityRef>
</Entity>
<AccountRef name="Debtors">50</AccountRef>
<TaxCodeRef>3</TaxCodeRef>
<TaxApplicableOn>Sales</TaxApplicableOn>
<TaxAmount>4.80</TaxAmount>
</JournalEntryLineDetail>
</Line>
<Line>
<Id>1</Id>
<Description>ff</Description>
<Amount>28.80</Amount>
<DetailType>JournalEntryLineDetail</DetailType>
<JournalEntryLineDetail>
<PostingType>Credit</PostingType>
<Entity>
<Type>Customer</Type>
<EntityRef name="toto">1</EntityRef>
</Entity>
<AccountRef name="Savings">59</AccountRef>
<TaxCodeRef>9</TaxCodeRef>
<TaxApplicableOn>Sales</TaxApplicableOn>
<TaxAmount>0.00</TaxAmount>
</JournalEntryLineDetail>
</Line>
<TxnTaxDetail>
<TaxLine>
<Amount>4.80</Amount>
<DetailType>TaxLineDetail</DetailType>
<TaxLineDetail>
<TaxRateRef>4</TaxRateRef>
<PercentBased>true</PercentBased>
<TaxPercent>20</TaxPercent>
<NetAmountTaxable>24.00</NetAmountTaxable>
</TaxLineDetail>
</TaxLine>
<TaxLine>
<Amount>0</Amount>
<DetailType>TaxLineDetail</DetailType>
<TaxLineDetail>
<TaxRateRef>15</TaxRateRef>
<PercentBased>true</PercentBased>
<TaxPercent>0</TaxPercent>
<NetAmountTaxable>-28.80</NetAmountTaxable>
</TaxLineDetail>
</TaxLine>
</TxnTaxDetail>
<Adjustment>false</Adjustment>
</JournalEntry>
I see that the docs here-
https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/030_entity_services_reference/journalentry
mention that it is a type of TaxApplicableOnEnum which has valid values as sales or purchase.

Related

Powershell Make a Dymo LabelWriter 450 Label

I made a label and then opened it in notepad and got the following.
<?xml version="1.0" encoding="utf-8"?>
<DieCutLabel Version="8.0" Units="twips" MediaType="Default">
<PaperOrientation>Landscape</PaperOrientation>
<Id>Small30336</Id>
<IsOutlined>false</IsOutlined>
<PaperName>30336 1 in x 2-1/8 in</PaperName>
<DrawCommands>
<RoundRectangle X="0" Y="0" Width="1440" Height="3060" Rx="180" Ry="180" />
</DrawCommands>
<ObjectInfo>
<TextObject>
<Name>TEXT</Name>
<ForeColor Alpha="255" Red="0" Green="0" Blue="0" />
<BackColor Alpha="0" Red="255" Green="255" Blue="255" />
<LinkedObjectName />
<Rotation>Rotation0</Rotation>
<IsMirrored>False</IsMirrored>
<IsVariable>False</IsVariable>
<GroupID>-1</GroupID>
<IsOutlined>False</IsOutlined>
<HorizontalAlignment>Center</HorizontalAlignment>
<VerticalAlignment>Top</VerticalAlignment>
<TextFitMode>ShrinkToFit</TextFitMode>
<UseFullFontHeight>True</UseFullFontHeight>
<Verticalized>False</Verticalized>
<StyledText>
<Element>
<String xml:space="preserve">Hello
World</String>
<Attributes>
<Font Family="Arial" Size="12" Bold="False" Italic="False" Underline="False" Strikeout="False" />
<ForeColor Alpha="255" Red="0" Green="0" Blue="0" HueScale="100" />
</Attributes>
</Element>
</StyledText>
</TextObject>
<Bounds X="130" Y="147" Width="2798" Height="1188" />
</ObjectInfo>
so what I attempted to do is use powershell to make the same label and print it automatically per below
$Word = "Hello"
$Word1 = "World"
#"
<?xml version="1.0" encoding="utf-8"?>
<DieCutLabel Version="8.0" Units="twips" MediaType="Default">
<PaperOrientation>Landscape</PaperOrientation>
<Id>Small30336</Id>
<IsOutlined>false</IsOutlined>
<PaperName>30336 1 in x 2-1/8 in</PaperName>
<DrawCommands>
<RoundRectangle X="0" Y="0" Width="1440" Height="3060" Rx="180" Ry="180" />
</DrawCommands>
<ObjectInfo>
<TextObject>
<Name>TEXT</Name>
<ForeColor Alpha="255" Red="0" Green="0" Blue="0" />
<BackColor Alpha="0" Red="255" Green="255" Blue="255" />
<LinkedObjectName />
<Rotation>Rotation0</Rotation>
<IsMirrored>False</IsMirrored>
<IsVariable>False</IsVariable>
<GroupID>-1</GroupID>
<IsOutlined>False</IsOutlined>
<HorizontalAlignment>Center</HorizontalAlignment>
<VerticalAlignment>Top</VerticalAlignment>
<TextFitMode>ShrinkToFit</TextFitMode>
<UseFullFontHeight>True</UseFullFontHeight>
<Verticalized>False</Verticalized>
<StyledText>
<Element>
<String xml:space="preserve">$Word
$Word1 </String>
<Attributes>
<Font Family="Arial" Size="12" Bold="False" Italic="False" Underline="False" Strikeout="False" />
<ForeColor Alpha="255" Red="0" Green="0" Blue="0" HueScale="100" />
</Attributes>
</Element>
</StyledText>
</TextObject>
<Bounds X="130" Y="147" Width="2798" Height="1188" />
</ObjectInfo>
</DieCutLabel>
"#>Save.label
& ".\PrintLabel.exe" Save.label
is there a way to make this work or a better way to do this ?
it will print but a default label in the examples and not the one i want to say hello world (on two different lines)
i tried to add full links to each but it does the same thing.

How can I enclose values with double quotes in PDI?

I want to create a csv file as output,but there are some NULL in the stream. I set the Text file output config like this:
content tab:
separator --> ,
enclosure: --> "
force the enclosure around fields? --> yes
fields tab:
Null --> ""
I use the Kettle 6.0 version, using the above config, the Null values are getting replaced by """""" string, if I don't set the default value "" for the Null in the fields tab, the Null values will not be enclosed by the double quotes in the output csv file. How can I generate a CSV file with the correct output?
Thanks in advance.
Here's your solution:
Don't force the enclosure in the Text file output
Remove "" from fields --> Null
Use my example. It will do what you want:
<?xml version="1.0" encoding="UTF-8"?>
<transformation-steps>
<steps>
<step>
<name>Data Grid</name>
<type>DataGrid</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<field>
<name>Something</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<length>-1</length>
<precision>-1</precision>
<set_empty_string>N</set_empty_string>
</field>
</fields>
<data>
<line> <item>asda</item> </line>
<line> <item/> </line>
<line> <item>sadasd</item> </line>
<line> <item/> </line>
<line> <item>asdads</item> </line>
</data>
<cluster_schema/>
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
<xloc>159</xloc>
<yloc>125</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Text file output</name>
<type>TextFileOutput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<separator>;</separator>
<enclosure/>
<enclosure_forced>N</enclosure_forced>
<enclosure_fix_disabled>N</enclosure_fix_disabled>
<header>Y</header>
<footer>N</footer>
<format>DOS</format>
<compression>None</compression>
<encoding/>
<endedLine/>
<fileNameInField>N</fileNameInField>
<fileNameField/>
<create_parent_folder>Y</create_parent_folder>
<file>
<name>${Internal.Transformation.Filename.Directory}\file.txt</name>
<is_command>N</is_command>
<servlet_output>N</servlet_output>
<do_not_open_new_file_init>N</do_not_open_new_file_init>
<extention>csv</extention>
<append>N</append>
<split>N</split>
<haspartno>N</haspartno>
<add_date>N</add_date>
<add_time>N</add_time>
<SpecifyFormat>N</SpecifyFormat>
<date_time_format/>
<add_to_result_filenames>Y</add_to_result_filenames>
<pad>N</pad>
<fast_dump>N</fast_dump>
<splitevery>0</splitevery>
</file>
<fields>
<field>
<name>quotes_bounded_something</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<trim_type>none</trim_type>
<length>-1</length>
<precision>-1</precision>
</field>
</fields>
<cluster_schema/>
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
<xloc>547</xloc>
<yloc>126</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Calculator</name>
<type>Calculator</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<calculation><field_name>quotes</field_name>
<calc_type>CONSTANT</calc_type>
<field_a>"</field_a>
<field_b/>
<field_c/>
<value_type>String</value_type>
<value_length>-1</value_length>
<value_precision>-1</value_precision>
<remove>N</remove>
<conversion_mask/>
<decimal_symbol/>
<grouping_symbol/>
<currency_symbol/>
</calculation>
<calculation><field_name>prefixed_field</field_name>
<calc_type>ADD</calc_type>
<field_a>quotes</field_a>
<field_b>Something</field_b>
<field_c/>
<value_type>String</value_type>
<value_length>-1</value_length>
<value_precision>-1</value_precision>
<remove>N</remove>
<conversion_mask/>
<decimal_symbol/>
<grouping_symbol/>
<currency_symbol/>
</calculation>
<calculation><field_name>quotes_bounded_something</field_name>
<calc_type>ADD</calc_type>
<field_a>prefixed_field</field_a>
<field_b>quotes</field_b>
<field_c/>
<value_type>String</value_type>
<value_length>-1</value_length>
<value_precision>-1</value_precision>
<remove>N</remove>
<conversion_mask/>
<decimal_symbol/>
<grouping_symbol/>
<currency_symbol/>
</calculation>
<cluster_schema/>
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
<xloc>279</xloc>
<yloc>125</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>If field value is null</name>
<type>IfNull</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<replaceAllByValue/>
<replaceAllMask/>
<selectFields>Y</selectFields>
<selectValuesType>N</selectValuesType>
<setEmptyStringAll>N</setEmptyStringAll>
<valuetypes>
</valuetypes>
<fields>
<field>
<name>quotes_bounded_something</name>
<value>""</value>
<mask/>
<set_empty_string>N</set_empty_string>
</field>
</fields>
<cluster_schema/>
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
<xloc>399</xloc>
<yloc>125</yloc>
<draw>Y</draw>
</GUI>
</step>
</steps>
<order>
<hop> <from>Data Grid</from><to>Calculator</to><enabled>Y</enabled> </hop>
<hop> <from>Calculator</from><to>If field value is null</to><enabled>Y</enabled> </hop>
<hop> <from>If field value is null</from><to>Text file output</to><enabled>Y</enabled> </hop>
</order>
<notepads>
</notepads>
<step_error_handling>
</step_error_handling>
</transformation-steps>

IPP QBO v3 UK - trouble adding invoice

The following code was working a few weeks ago but now I get an error message. Any ideas? Note this is QuickBooks Online United Kingdom edition.
I'm adding additional information here so that I can save the form. Without adding this additional information I am unable to post this question.
<outgoing><?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns:ns2="http://www.intuit.com/sb/cdm/qbo" xmlns="http://schema.intuit.com/finance/v3">
<CustomerId>1</CustomerId>
<CustomerRef>1</CustomerRef>
<SalesTermRef>3</SalesTermRef>
<DocNumber>101</DocNumber>
<CustomerMemo>Thank you for your order!</CustomerMemo>
<TxnDate>2014-03-05</TxnDate>
<PrivateNote>Special Handling</PrivateNote>
<BillEmail>
<Address>janice#johnson.com</Address>
</BillEmail>
<PrintStatus>NotSet</PrintStatus>
<EmailStatus>NeedToSend</EmailStatus>
<ApplyTaxAfterDiscount></ApplyTaxAfterDiscount>
<ShipDate>2014-03-05</ShipDate>
<TrackingNum>1Z9999W99999999999</TrackingNum>
<BillAddr>
<Line1>110 Main Street</Line1>
<Line2>Suite 2000</Line2>
<Line3></Line3>
<Line4></Line4>
<City>Dallas</City>
<CountrySubDivisionCode>TX</CountrySubDivisionCode>
<PostalCode>99875</PostalCode>
<Country></Country>
</BillAddr>
<ShipAddr>
<Line1>110 Main Street</Line1>
<Line2>Suite 2000</Line2>
<Line3></Line3>
<Line4></Line4>
<City>Dallas</City>
<CountrySubDivisionCode>TX</CountrySubDivisionCode>
<PostalCode>99875</PostalCode>
<Country></Country>
</ShipAddr>
<Line>
<Description>Blue MP3 Player</Description>
<Amount>110.00</Amount>
<DetailType>SalesItemLineDetail</DetailType>
<SalesItemLineDetail>
<ItemRef>3</ItemRef>
<Qty>2</Qty>
<UnitPrice>55</UnitPrice>
<TaxCodeRef>3</TaxCodeRef>
</SalesItemLineDetail>
</Line>
<Line>
<Description></Description>
<Amount></Amount>
<DetailType>DiscountLineDetail</DetailType>
<DiscountLineDetail>
<PercentBased>true</PercentBased>
<DiscountPercent>0.0200</DiscountPercent>
</DiscountLineDetail>
</Line>
<Line>
<Description></Description>
<Amount>12.00</Amount>
<DetailType>SalesItemLineDetail</DetailType>
<SalesItemLineDetail>
<ItemRef>SHIPPING_ITEM_ID</ItemRef>
<Qty></Qty>
<UnitPrice></UnitPrice>
<TaxCodeRef>3</TaxCodeRef>
</SalesItemLineDetail>
</Line>
</Invoice>
</outgoing>
<returns><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<IntuitResponse xmlns="http://schema.intuit.com/finance/v3" time="2014-04-17T11:42:01.411-07:00">
<Fault type="ValidationFault">
<Error code="6440" element="">
<Message>Transaction Detail Information Required</Message>
<Detail>You must select a product/service or an account for each split line with either an amount or a billable customer.</Detail>
</Error>
</Fault>
</IntuitResponse>
</returns>
Found the answer. In QBO preferences I had to enable shipping.

Invoice is missing the "TotalAmt" field

We are using the Intuit API V2 to import Invoices from QuickBooks Online.
We expect the "TotalAmt" field to be present on all the invoices.
There are a couple of invoices that at one point in the past had the "TotalAmt" present but now the "TotalAmt" field is missing and the "Balance" is equal to 0.
Is this a bug or expected behavior?
Edit: this is one of the responses we got from the QuickBooks API (I changed only the indentation and replaced real data with 3 dots):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Invoice xmlns="http://www.intuit.com/sb/cdm/v2" xmlns:qbo="http://www.intuit.com/sb/cdm/qbo" xmlns:qbp="http://www.intuit. com/sb/cdm/qbopayroll/v1">
<Id idDomain="QBO">36673</Id>
<SyncToken>1</SyncToken>
<MetaData>
<CreateTime>2013-04-10T15:24:03-07:00</CreateTime>
<LastUpdatedTime>2013-04-11T08:32:11-07:00</LastUpdatedTime>
</MetaData>
<Header>
<DocNumber>...</DocNumber>
<TxnDate>2013-04-10-07:00</TxnDate>
<Note>...</Note>
<CustomerId idDomain="QBO">464</CustomerId>
<ToBePrinted>true</ToBePrinted>
<ToBeEmailed>false</ToBeEmailed>
<SalesTermId idDomain="QBO">1</SalesTermId>
<DueDate>2013-04-10-07:00</DueDate>
<BillAddr>
<Line1>...</Line1>
<City>...</City>
<CountrySubDivisionCode>...</CountrySubDivisionCode>
<PostalCode>...</PostalCode>
<Tag>CUSTOMER</Tag>
</BillAddr>
<ShipAddr>
<Line1>...</Line1>
<City>...</City>
<CountrySubDivisionCode>...</CountrySubDivisionCode>
<PostalCode>...</PostalCode>
<Tag>CUSTOMER</Tag>
</ShipAddr>
<ShipMethodId idDomain="QBO"/>
<Balance>0.00</Balance>
<DiscountTaxable>true</DiscountTaxable>
</Header>
<Line>
<Desc>...</Desc>
<Taxable>false</Taxable>
<ItemId idDomain="QBO">5</ItemId>
<UnitPrice>450</UnitPrice>
<Qty>1</Qty>
</Line>
</Invoice>
<Balance>0.00</Balance>
It indicates the amount associated with that invoice is 0. In this case, response XML doesn't include any "TotalAmt" field.
There can be couple of cases where 'TotalAmt' doesn't get included.
1.
I had created an invoice with amount as 0. PFB that invoice record in QBO and the corresponding response XML.
<Invoice xmlns="http://www.intuit.com/sb/cdm/v2" xmlns:qbp="http://www.intuit.com/sb/cdm/qbopayroll/v1" xmlns:qbo="http://www.intuit.com/sb/cdm/qbo">
<Id idDomain="QBO">50</Id>
<SyncToken>0</SyncToken>
<MetaData>
<CreateTime>2013-07-01T01:59:37-07:00</CreateTime>
<LastUpdatedTime>2013-07-01T01:59:37-07:00</LastUpdatedTime>
</MetaData>
<Header>
<DocNumber>1016</DocNumber>
<TxnDate>2013-07-01-07:00</TxnDate>
<CustomerId idDomain="QBO">6</CustomerId>
<ToBePrinted>false</ToBePrinted>
<ToBeEmailed>true</ToBeEmailed>
<SalesTermId idDomain="QBO">3</SalesTermId>
<DueDate>2013-07-31-07:00</DueDate>
<BillAddr>
<Line1>Park Avenue NY</Line1>
...
</BillAddr>
<ShipAddr>
<Line1>Park Avenue NY</Line1>
...
</ShipAddr>
<BillEmail>john_doe#digitalinsight.mint.com</BillEmail>
<ShipMethodId idDomain="QBO" />
<Balance>0.00</Balance>
<DiscountTaxable>true</DiscountTaxable>
</Header>
<Line>
<Desc>Beer HB</Desc>
<Taxable>true</Taxable>
<ItemId idDomain="QBO">4</ItemId>
</Line>
</Invoice>
2.
If you don't pass any value in the 'Amount' field of tag
or
If you skip that field altogether.
PFB sample request and response.
Request
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Invoice xmlns="http://www.intuit.com/sb/cdm/v2" xmlns:ns2="http://www.intuit.com/sb/cdm/qbopayroll/v1" xmlns:ns3="http://www.intuit.com/sb/cdm/qbo">
<Header>
<Msg>Testing</Msg>
<CustomerId>6</CustomerId>
</Header>
<Line>
<Desc>Pens</Desc>
<Amount></Amount>
<Taxable>true</Taxable>
<ItemId>3</ItemId>
<UnitPrice>450</UnitPrice>
<Qty>1</Qty>
</Line>
</Invoice>
Response
<Invoice xmlns="http://www.intuit.com/sb/cdm/v2" xmlns:qbp="http://www.intuit.com/sb/cdm/qbopayroll/v1" xmlns:qbo="http://www.intuit.com/sb/cdm/qbo">
<Id idDomain="QBO">57</Id>
<SyncToken>0</SyncToken>
<MetaData>
<CreateTime>2013-07-01T02:48:48-07:00</CreateTime>
<LastUpdatedTime>2013-07-01T02:48:48-07:00</LastUpdatedTime>
</MetaData>
<Header>
<DocNumber>1022</DocNumber>
<TxnDate>2013-07-01-07:00</TxnDate>
<Msg>Testing</Msg>
<CustomerId idDomain="QBO">6</CustomerId>
<ToBePrinted>false</ToBePrinted>
<ToBeEmailed>false</ToBeEmailed>
<DueDate>2013-07-01-07:00</DueDate>
<BillAddr>
<Line1>Park Avenue NY</Line1>
...
</BillAddr>
<ShipAddr>
<Line1>Park Avenue NY</Line1>
...
</ShipAddr>
<ShipMethodId idDomain="QBO" />
<Balance>0.00</Balance>
<DiscountTaxable>true</DiscountTaxable>
</Header>
<Line>
<Desc>Pens</Desc>
<Taxable>true</Taxable>
<ItemId idDomain="QBO">3</ItemId>
<UnitPrice>450</UnitPrice>
<Qty>1</Qty>
</Line>
</Invoice>
I guess, the second one is applicable in your case.
Please let me know if it answers your qts.
Thanks
It looks like the Amount in the Line is not being set. The Amount is a required field that needs to be set. Here is the doc: https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0400_quickbooks_online/invoice
The total amount field will be calculated
thanks
Jarred

IPP Taxable Line

Using the C# API for QuickBooks Desktop, how do I mark lines as taxable? Here is my code:
InvoiceLine qboInvoiceLine = new InvoiceLine();
qboInvoiceLine.Amount = order.ShippingExclTax;
qboInvoiceLine.AmountSpecified = true;
qboInvoiceLine.Taxable = false;
qboInvoiceLine.TaxableSpecified = false;
My XML fails to specify the taxable element:
<?xml version="1.0" encoding="utf-8"?>
<Add xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" RequestId="8313fa49e42f432cacfcade7b0787a7a" FullResponse="true" xmlns="http://www.intuit.com/sb/cdm/v2"><ExternalRealmId>310582310</ExternalRealmId>
<Object xsi:type="Invoice">
<Header>
<DocNumber>1</DocNumber>
<TxnDate>2013-05-18T17:54:52.668263-04:00</TxnDate>
<CustomerName>Web Store</CustomerName>
<ShipAddr>
<Line1>John Smith</Line1>
<Line2>21 West 52nd Street</Line2>
<Line3 />
<City>New York</City>
<Country>United States</Country>
<CountrySubDivisionCode>New York</CountrySubDivisionCode>
<PostalCode>10021</PostalCode>
</ShipAddr>
<DiscountAmt>0</DiscountAmt>
</Header>
<Line>
<Amount>1.0000</Amount>
<ItemName>TestShoe123</ItemName>
<UnitPrice>1.0000</UnitPrice>
<Qty>1</Qty>
</Line>
<Line>
<Amount>0.0000</Amount>
<ItemName>In-Store Pickup</ItemName>
<UnitPrice>0.0000</UnitPrice>
<Qty>1</Qty>
</Line>
I needed to assign SalesTaxCodeName to "Tax" or "Non", instead of Taxable as true or false.