Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending Estimate/Invoice Default Tax Code and Taxable Items using API V3, Customer NOT using AST #223

Open
cantrellsolutions opened this issue Sep 27, 2018 · 0 comments

Comments

@cantrellsolutions
Copy link

cantrellsolutions commented Sep 27, 2018

So we have a QB Online Customer - we are trying to get the tax information to populate correctly. They are NOT using AST for tax, they are using the original tax setup for QB Online.

We are able to run this exact code against our testing QB Online account (which has AST enabled) and the taxable item on this estimate has "Tax" checked correctly. Unfortunately AST doesn't have the county option for each customer like non-AST, so we can't verify that the default tax code for the customer is working on our end.

We've been working on this issue for the last 2 weeks - so any insight or help you could give would be . . . helpful!! :)

Full Post information below

Request [POST https://quickbooks.api.intuit.com/v3/company/XXXXXXXXXX/estimate?requestid=XXXXXXXXX&minorversion=6 HTTP/1.1
Content-Type: application/xml
Authorization: OAuth realm="", oauth_signature_method="HMAC-SHA1", oauth_signature="XXXXXXX",  oauth_nonce="XXXXX", oauth_timestamp="1538080129", oauth_token="XXXXXXXXXXX", oauth_consumer_key="XXXXXXXXXXX", oauth_version="1.0"
Content-Length: 1371

<Estimate xmlns="http://schema.intuit.com/finance/v3">
	<TxnDate>2018-09-27</TxnDate>
	<CustomerRef>4422</CustomerRef>
	<DocNumber>178501</DocNumber>
	<CustomField xmlns="http://schema.intuit.com/finance/v3">
		<DefinitionId>1</DefinitionId>
		<Name>LeaseName</Name>
		<Type>StringType</Type>
		<StringValue>XXXXXXXXXXX</StringValue>
	</CustomField>
	<Line xmlns="http://schema.intuit.com/finance/v3">
		<Amount>220</Amount>
		<DetailType>SalesItemLineDetail</DetailType>
		<Description>Hauled L/W - Hauled 20 bbls FW to location</Description>
		<TaxCodeRef>false</TaxCodeRef>
		<SalesItemLineDetail xmlns="http://schema.intuit.com/finance/v3">
			<ItemRef>146</ItemRef>
			<UnitPrice>110.00</UnitPrice>
			<Qty>2</Qty>
			<ServiceDate>2018-09-27</ServiceDate>
		</SalesItemLineDetail>
	</Line>
	<Line xmlns="http://schema.intuit.com/finance/v3">
		<Amount>12</Amount>
		<DetailType>SalesItemLineDetail</DetailType>
		<Description>Fresh Water </Description>
		<TaxCodeRef>TAX</TaxCodeRef>
		<SalesItemLineDetail xmlns="http://schema.intuit.com/finance/v3">
			<ItemRef>48</ItemRef>
			<UnitPrice>0.60</UnitPrice>
			<Qty>20</Qty>
			<ServiceDate>2018-09-27</ServiceDate>
		</SalesItemLineDetail>
	</Line>
	<TxnTaxDetail xmlns="http://schema.intuit.com/finance/v3">
		<TxnTaxCodeRef>45</TxnTaxCodeRef>
	</TxnTaxDetail>
</Estimate>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant