Quickbooks IPP v3销售税问题

时间:2013-10-10 16:06:00

标签: intuit-partner-platform

我们正在使用IPP v3构建一个应用程序,该应用程序将我们的SaaS应用程序的发票同步到QBOE(希望是QBD)。遇到的问题是使用快速书中创建的发票复制发票上的销售。

具体来说,我们的发票可以包含不征税的行项目(每个州的税项和税率都不同)。州,市和县税也很多次,其中一些适用于某些项目而不适用于其他项目。

对于IPP v3美国版本,税收必须是发票的全球税?

如果我们可以覆盖发票的总税额,我认为所有这些都可以解决。 Documentations似乎表明API支持它。但是,我的所有尝试都被忽略了。它不是税或默认税率(百分比)。这意味着我们无法覆盖总数或输入固定税。

另一种选择是在名为“Tax Name”的发票中添加额外的行和值。发票总额是正确的,但快速书上的税务报告不会?

我非常想要一个直截了当的答案,例如“税额无法通过API覆盖”,以确保。

我还想知道Intuit是否计划在不久的将来支持该功能? API中的字段如“PercentBased”(可以设置为true或false)似乎表示可以设置固定金额。但是当我尝试使用它们时,这些字段完全被忽略了。

任何有关此问题的帮助或未来指导都将非常感谢,因为它与QBOE / QBD的IPP v3有关。

这是我们的XML请求

<?xml version='1.0' encoding='utf-8'?>
<IntuitBatchRequest xmlns:ns2="http://www.intuit.com/sb/cdm/qbo"     
xmlns="http://schema.intuit.com/finance/v3">
<BatchItemRequest bId="bid1" operation="create">
<Invoice>
<DocNumber>2459999</DocNumber>
<TxnDate>2012-12-10</TxnDate>
<GlobalTaxCalculation>TaxIncluded</GlobalTaxCalculation>
<Line>
<DetailType>SalesItemLineDetail</DetailType>
<Amount>200</Amount>
<SalesItemLineDetail>
<TaxCodeRef>TAX</TaxCodeRef>
<ServiceDate>2012-12-10</ServiceDate>
</SalesItemLineDetail>
<Description>Test</Description>
<ItemRef>1</ItemRef>
</Line>
<CustomerRef>66</CustomerRef>
<TxnTaxDetail>
<TaxLine>
<DetailType>TaxLineDetail</DetailType>
<Amount>13.00</Amount>
<TaxLineDetail>
<NetAmountTaxable>200.00</NetAmountTaxable>
<TaxPercent>6.50</TaxPercent>
<TaxRateRef>1</TaxRateRef>
<PercentBased>true</PercentBased>
</TaxLineDetail>
</TaxLine>
</TxnTaxDetail>
</Invoice>
</BatchItemRequest>
</IntuitBatchRequest>

1 个答案:

答案 0 :(得分:1)

您可以在TxnTaxDetail中覆盖税道中的税额 - 例如: 包括税率@ 20%,16.67 = 3.33。我们希望该请求包含以下税务明细

“TxnTaxDetail”:{ “TotalTax”:3.33, “TaxLine”:[{ “金额”:3.33, “DetailType”: “TaxLineDetail”, “TaxLineDetail”:{ “TaxRateRef”:{ “值”:“4 “},” PercentBased “:真实的,” TaxPercent “:20,” NetAmountTaxable“:16.67 “GlobalTaxCalculation”: “TaxIncludes”,...

请参阅 - https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v3/020_key_concepts/0700_other_topics#TxnTaxDetail

enter image description here

修改 添加示例请求和响应xml。只需设置以下标记即可。

<TxnTaxDetail>
<TxnTaxCodeRef>
<TotalTax>
</TxnTaxDetail>

不要将税道设置为QBO根据请求中发送的详细信息重新计算税额。因此,作为回应,您将根据指定的TaxPercent获得重新计算的金额。

申请样本 -

    <?xml version="1.0"?>
<Invoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schema.intuit.com/finance/v3">
 <TxnDate>2013-10-11+05:30</TxnDate>
  <PrivateNote>This is a private note</PrivateNote>
  <Line>
    <Description>Invoice line description.</Description>
<Amount>900</Amount>
<DetailType>SalesItemLineDetail</DetailType>
<SalesItemLineDetail>
  <ItemRef name="Bat">2</ItemRef>
  <UnitPrice>90</UnitPrice>
  <Qty>10</Qty>
  <TaxCodeRef>TAX</TaxCodeRef>
  <ServiceDate>2013-10-11+05:30</ServiceDate>
</SalesItemLineDetail>
  </Line>
  <TxnTaxDetail>
<TxnTaxCodeRef name="StateSalesTax">8</TxnTaxCodeRef>
<TotalTax>450</TotalTax>

  </TxnTaxDetail>
  <AutoDocNumber>true</AutoDocNumber>
  <CustomerRef name="5748584cc7d64bb18a0e">23</CustomerRef>
  <BillAddr>
<Line1>123 Main St.</Line1>
<Line2>Unit 506</Line2>
<City>Brockton</City>
<Country>United States</Country>
<CountrySubDivisionCode>MA</CountrySubDivisionCode>
<PostalCode>02301</PostalCode>
<Note>Billing Address Note</Note>
  </BillAddr>
  <ShipAddr>
<Line1>100 Fifth Ave.</Line1>
<City>Waltham</City>
<Country>United States</Country>
<CountrySubDivisionCode>MA</CountrySubDivisionCode>
<PostalCode>02452</PostalCode>
<Note>Shipping Address Note</Note>
  </ShipAddr>
  <SalesTermRef name="Due on receipt">1</SalesTermRef>
  <DueDate>2013-11-10+05:30</DueDate>
  <GlobalTaxCalculation>TaxInclusive</GlobalTaxCalculation>
  <ARAccountRef name="Accounts Receivable (A/R)">32</ARAccountRef>
</Invoice>

回应样本 -

<IntuitResponse xmlns="http://schema.intuit.com/finance/v3" time="2013-10-18T01:50:19.576-07:00">
  <Invoice domain="QBO" sparse="false">
    <Id>50</Id>
    <SyncToken>0</SyncToken>
    <MetaData>
  <CreateTime>2013-10-18T01:50:20-07:00</CreateTime>
  <LastUpdatedTime>2013-10-18T01:50:20-07:00</LastUpdatedTime>
</MetaData>
<DocNumber>1037</DocNumber>
<TxnDate>2013-10-11</TxnDate>
<PrivateNote>This is a private note</PrivateNote>
<Line>
  <Id>1</Id>
  <LineNum>1</LineNum>
  <Description>Invoice line test</Description>
  <Amount>900.00</Amount>
  <DetailType>SalesItemLineDetail</DetailType>
  <SalesItemLineDetail>
    <ItemRef name="Bat">2</ItemRef>
    <UnitPrice>90</UnitPrice>
    <Qty>10</Qty>
    <TaxCodeRef>TAX</TaxCodeRef>
    <ServiceDate>2013-10-11</ServiceDate>
  </SalesItemLineDetail>
</Line>
<Line>
  <Amount>900.00</Amount>
  <DetailType>SubTotalLineDetail</DetailType>
  <SubTotalLineDetail />
</Line>
<TxnTaxDetail>
  <TxnTaxCodeRef>8</TxnTaxCodeRef>
  <TotalTax>450.00</TotalTax>
  <TaxLine>
    <Amount>450.00</Amount>
    <DetailType>TaxLineDetail</DetailType>
    <TaxLineDetail>
      <TaxRateRef>18</TaxRateRef>
      <PercentBased>true</PercentBased>
      <TaxPercent>2.5</TaxPercent>
      <NetAmountTaxable>900.00</NetAmountTaxable>
    </TaxLineDetail>
  </TaxLine>
</TxnTaxDetail>
<CustomerRef name="5748584cc7d64bb18a0e">23</CustomerRef>
<BillAddr>
  <Id>78</Id>
  <Line1>123 Main St.</Line1>
  <Line2>Unit 506</Line2>
  <City>Brockton</City>
  <Country>United States</Country>
  <CountrySubDivisionCode>MA</CountrySubDivisionCode>
  <PostalCode>02301</PostalCode>
  <Lat>42.0829092</Lat>
  <Long>-71.01995200000002</Long>
</BillAddr>
<ShipAddr>
  <Id>79</Id>
  <Line1>100 Fifth Ave.</Line1>
  <City>Waltham</City>
  <Country>United States</Country>
  <CountrySubDivisionCode>MA</CountrySubDivisionCode>
  <PostalCode>02452</PostalCode>
  <Lat>42.3933303</Lat>
  <Long>-71.256777</Long>
</ShipAddr>
<SalesTermRef>1</SalesTermRef>
<DueDate>2013-11-10</DueDate>
<TotalAmt>1350.00</TotalAmt>
<ApplyTaxAfterDiscount>false</ApplyTaxAfterDiscount>
<PrintStatus>NeedToPrint</PrintStatus>
<EmailStatus>NotSet</EmailStatus>
<Balance>1350.00</Balance>
<Deposit>0</Deposit>
<AllowIPNPayment>false</AllowIPNPayment>
<AllowOnlinePayment>false</AllowOnlinePayment>
  </Invoice>
    </IntuitResponse>
Global的

编辑 -

好的,我重新测试了这个fr Global。 我可以覆盖个别税收线的金额,然后是最终的税务金额 - 这是发票更新请求 - 我更改了以下标签 -

<TxnTaxDetail>
<TotalTax>2.90</TotalTax>

然后在其中一个税道

<TaxLine>

<Amount>0.70</Amount>

然后在最终发票金额

<TotalAmt>79.90</TotalAmt>

<Balance>79.90</Balance>

<Invoice xmlns="http://schema.intuit.com/finance/v3" domain="QBO" sparse="false">
<Id>1</Id>
<SyncToken>0</SyncToken>
<MetaData>
    <CreateTime>2015-01-30T09:32:06-08:00</CreateTime>
    <LastUpdatedTime>2015-01-30T09:32:06-08:00</LastUpdatedTime>
</MetaData>
<DocNumber>1001</DocNumber>
<TxnDate>2015-01-30</TxnDate>
<CurrencyRef name="Canadian Dollar">CAD</CurrencyRef>
<Line>
    <Id>1</Id>
    <LineNum>1</LineNum>
    <Amount>33.00</Amount>
    <DetailType>SalesItemLineDetail</DetailType>
    <SalesItemLineDetail>
        <ItemRef name="Hours">2</ItemRef>
        <UnitPrice>33</UnitPrice>
        <Qty>1</Qty>
        <TaxCodeRef>7</TaxCodeRef>
    </SalesItemLineDetail>
</Line>
<Line>
    <Id>2</Id>
    <LineNum>2</LineNum>
    <Amount>44.00</Amount>
    <DetailType>SalesItemLineDetail</DetailType>
    <SalesItemLineDetail>
        <ItemRef name="Sales">1</ItemRef>
        <UnitPrice>44</UnitPrice>
        <Qty>1</Qty>
        <TaxCodeRef>5</TaxCodeRef>
    </SalesItemLineDetail>
</Line>
<Line>
    <Amount>77.00</Amount>
    <DetailType>SubTotalLineDetail</DetailType>
    <SubTotalLineDetail />
</Line>
<TxnTaxDetail>
    <TotalTax>2.90</TotalTax>
    <TaxLine>
        <Amount>2.20</Amount>
        <DetailType>TaxLineDetail</DetailType>
        <TaxLineDetail>
            <TaxRateRef>6</TaxRateRef>
            <PercentBased>true</PercentBased>
            <TaxPercent>5</TaxPercent>
            <NetAmountTaxable>44.00</NetAmountTaxable>
        </TaxLineDetail>
    </TaxLine>
    <TaxLine>
        <Amount>0.70</Amount>
        <DetailType>TaxLineDetail</DetailType>
        <TaxLineDetail>
            <TaxRateRef>15</TaxRateRef>
            <PercentBased>true</PercentBased>
            <TaxPercent>2</TaxPercent>
            <NetAmountTaxable>33.00</NetAmountTaxable>
        </TaxLineDetail>
    </TaxLine>
</TxnTaxDetail>
<CustomerRef name="dd">1</CustomerRef>
<SalesTermRef>3</SalesTermRef>
<DueDate>2015-03-01</DueDate>
<GlobalTaxCalculation>TaxExcluded</GlobalTaxCalculation>
<TotalAmt>79.90</TotalAmt>
<PrintStatus>NotSet</PrintStatus>
<EmailStatus>NotSet</EmailStatus>
<Balance>79.90</Balance>
<Deposit>0</Deposit>
<AllowIPNPayment>false</AllowIPNPayment>
<AllowOnlinePayment>false</AllowOnlinePayment>
<AllowOnlineCreditCardPayment>false</AllowOnlineCreditCardPayment>
<AllowOnlineACHPayment>false</AllowOnlineACHPayment>